开发者

Assign values to Textbox from datasource in asp.net

开发者 https://www.devze.com 2023-02-14 05:23 出处:网络
I have one aspx page开发者_如何学C. I have assign only one textbox in that page. I have retrived the records from the database. Now i want to assign the values to the textbox without writing the code

I have one aspx page开发者_如何学C. I have assign only one textbox in that page. I have retrived the records from the database. Now i want to assign the values to the textbox without writing the code in aspx.cs:

Texbox1.Text=ds.tables[0].rows["Name"].toString();

But the value has to be assign to that Textbox. How can i achive it?

0

精彩评论

暂无评论...
验证码 换一张
取 消