Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Can we bind one datareader wid two dropdown list?

Answer Posted / anup kumar

yes, it is posible. by using NextResult() method of
sqldatareader.

sqlcommand cmd = new sqlcommand("select id from emp ; select
dptid from dpt",YourConnection);
//check connection status and open the connection
if(rdr.hasrows)
{
//read id from emp
}
if (rdr.HasRows() == true)
{
//read dptid from dpt
}
//close the connection

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the data providers in ADO.NET framework?

969


What are the benefits of using of ADO.NET in .NET 4.0?

979


Why do we use sqldataadapter?

904


Explain the overview of ado.net architecture?

935


Define atomicity?

971


How do I delete a row from a DataTable?

1071


What Is Difference Between Ado And Ado.net?

972


Define data access layer?

899


Explain ado.net features?

984


What is ambient transaction?

884


What is a string variable?

864


How to generate a single aggregate?

939


Is ado.net an orm?

903


What is the difference between DataReader and DataSet in ADO.NET?

1072


What is the difference between the clone() and copy() methods of the dataset class?

1011