the following code textbox1.text=ds.tables["ven1"].rows(0).item(0) in vb.net the same coding how to

Posted by Venky.Net under ASP.NET on 4/10/2012 | Points: 10 | Views : 11250 | Status : [Member] | Replies : 4
the following code textbox1.text=ds.tables["ven1"].rows(0).item(0) the same code how to use in c#




Responses

Posted by: Self-Innovator on: 4/10/2012 [Member] Bronze | Points: 25

Up
0
Down
try wit this...

ds.Tables["Ven1"].Rows[0]["ColumnName"].ToString();//
instead of item use Column Name

Join Hands Change lives
Thanks & Regards
Straight Edge Society

Venky.Net, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Rajni.Shekhar on: 4/10/2012 [Member] Bronze | Points: 25

Up
0
Down
you can also use convert tools -> convert vb.net to c#.net, it will convert your code.

Thanks,
Rajni Shekhar

Venky.Net, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sakthi.Singaravel on: 4/10/2012 [Member] Silver | Points: 25

Up
0
Down
hi,
goto developerfusion.com in this site has free convert tool for vb.net to c#.. u can convert all type of codes easily..

Regards,
Singaravel M

Venky.Net, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Leila on: 4/12/2012 [Member] Starter | Points: 25

Up
0
Down
textbox1.text=ds.tables["ven1"].rows(0).item(0)
textbox1.Text = ds.Tables["ven1"].Rows[0][0].ToString();


Thanks,
Leila

Venky.Net, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response