ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  ASP.NET
 
 


 

 
 Visual Basic interview questions  Visual Basic Interview Questions
 C Sharp interview questions  C Sharp Interview Questions
 ASP.NET interview questions  ASP.NET Interview Questions
 VB.NET interview questions  VB.NET Interview Questions
 COM+ interview questions  COM+ Interview Questions
 ADO.NET interview questions  ADO.NET Interview Questions
 IIS interview questions  IIS Interview Questions
 MTS interview questions  MTS Interview Questions
 Crystal Reports interview questions  Crystal Reports Interview Questions
 BizTalk interview questions  BizTalk Interview Questions
 Dot Net interview questions  Dot Net Interview Questions
 Exchange Server interview questions  Exchange Server Interview Questions
 SharePoint interview questions  SharePoint Interview Questions
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions
Question
How to retrieve data row by row from a DataTable?
Thanks In advance  
PriyaPP
 Question Submitted By :: Priyapp
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How to retrieve data row by row from a DataTable? Thanks In advance PriyaPP
Answer
# 1
foreach(Datarow dr in table.rows)
{
  string str =  dr[0].ToString();
  string str1 =  dr["columnName"].ToString();

}
 
Is This Answer Correct ?    7 Yes 1 No
Guest
 
  Re: How to retrieve data row by row from a DataTable? Thanks In advance PriyaPP
Answer
# 2
In C# 

foreach(DataRow dr in dt.rows) //dt is Data table
{

 string ABC= dr["Coloumn_Name"].Tostring;

}
 
Is This Answer Correct ?    1 Yes 1 No
Digvijay
 
 
 
  Re: How to retrieve data row by row from a DataTable? Thanks In advance PriyaPP
Answer
# 3
best way to retrieve data is-
//dtTable is Data table
//dtrow id Data Row object


string str;
foreach(DataRow dtrow in dtTable.rows) 
{

 str= dtrow ["emp_Name"].Tostring();
//emp_Name is the column name

// now use str variable as you want to manipulate.
}
 
Is This Answer Correct ?    2 Yes 0 No
Suyash Deep
 

 
 
 
Other ASP.NET Interview Questions
 
  Question Asked @ Answers
 
If you want a certain ASP.NET function executed on MouseOver for a certain button. Where do you add an event handler?  1
what is diference between the .net1.0 & .net2.0 ? EMax2
what is the difference between server.Transfer and response.redirect in .net  1
About Windows/Forms Authentication  1
What r Callbacks in ASP.NET?  1
How do you manage session in ASP and ASP.NET ? Microsoft1
hi .net gurus here is my question " how does impersonate in asp.net works? explain with good example" Wipro2
What is .Net3.0 and .Net3.5? Describe something about that Features..  1
33) You create English, French, and German versions of your ASP.NET application. You have separate resource files for each language version. You need to deploy the appropriate resource file based on the language settings of the server. What should you do? A . Create an installer and set the Installer.Context property for each version of your application. B . Create an installer that has a launch condition to verify the locale settings. C . Create an installer that has a custom action to install only location-specific files. D . Create an installer that has an MsiConfigureProduct function to install the appropriate version. Syntax-Softtech2
What is the difference between <%#%> and <%=%>? IBS4
Difference between .NET and previous version? Microsoft1
In try catch blocks one is normal catch block and another is sqlcatchexception block Microsoft3
What is JIT, what are types of JITS and their purpose ? Infosys3
What is application variable and when it is initialized ? Keane-India-Ltd3
What are Master pages? How to define a Master page?  2
What is viewstate? Microsoft3
Which tools of web site Administartion tool do you use to manage user,roles and rules?  2
Whats MSIL, and why should my developers need an appreciation of it if at all?  1
If I m using Session State Partioning where I have partitioned my session into 4 servers then how can I know that my session will be stored on which server?  1
what is diffrance between response.write & response.output.write CTS4
 
For more ASP.NET Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com