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 ?    6 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
 
How many rules are there regarding a well formed XML document? a) Nine b) Three c) Six d) Two Syntax-Softtech1
About SOAP ? Cognizent2
After capturing the SelectIndexChanged event for a ListBox Control, you find that the event handler doesn?t execute. What could be the problem be? a) The AutoEventWireup attribute is set to False b) The AutomaticPostBack attribute is set to False c) The codebehind module is not properly compiled d) The ListBox must be defined WithEvents. Syntax-Softtech1
can we transfer data from one page to another page using viewstate if so how?if not y? Wipro25
what is view state and its use DELL8
Tell something about state management in asp.net? Accenture2
Suppose i create one application in vs 2008 and it is running in the latest version of IE,will it run in netscape and other browsers with low version? Wipro2
what is the difference between this.controls and page.form1.controls and me.controls? FactorH2
When would you set this property to false?  1
How to deploy the Asp.Net Project ?  3
if i have 1000 records and i want to access 20 ata time from SQL server, what will be the query? Mind-Tree5
Suppose you want a certain ASP.NET function executed on MouseOver overa certain button. Where do you add an event handler? Visual-Soft3
can sn.exe can be used before gacutil.exe Accenture2
What are the two properties that are common in every validation control?  4
What is Stateless ASP or ASP.Net? Accenture2
How to use one project files into another project? HP3
If Asp Dot Application is stateless what happened? during designing TCS3
Explain the life cycle of an ASP .NET page HCL2
WHT IS DIFFERENCES BETWEEN HTML CONTROLS AND SERVER CONTROLS. HCL9
Can you edit data in the Repeater control?  3
 
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