C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Interview   Jobs   Projects   Offshore Development    
Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing | Talk to Us |



My Profile

Gifts

Active Members
TodayLast 7 Days more...







It s URGENT>>>>>>>>>>>>>>>>>>>>>


Posted Date: 17 May 2008      Total Responses: 2

Posted By: LuckyIBM       Member Level: Silver     Points: 1


Hi everyOne,
I m stroring value in DataTable .........
Ijust want to get Value from 3rd COLUMN of That DATATABLE ..............

I mm using this COde...........

da.Fill(ds,"Login");
int count1 = ds.Tables["Login"].Columns.Count;
string strUsertype=ds.Tables["Login"].Columns["3"].ToString();

I want to Print Column value which is store at variable (strUsertype)..............

But I m getting an ERROr.............

PLssssssssssssssss





Responses

Author: Kapil Deo Malhotra    17 May 2008Member Level: GoldRating:     Points: 2
Hi,

Can i know what is the error you are getting? How many columns do u have in table?

-


Author: Praveen Kumar    17 May 2008Member Level: GoldRating:     Points: 2
you can use there coulumn name instead of passing number and may i know which error youare getting?


Post Reply
You must Sign In to post a response.
Next : insert C#.net Erorr
Previous : Display Datalist Page Counting
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

budget conference call

Contact Us    Privacy Policy    Terms Of Use