Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to bind dataset to textbox?
Message
 
 
To
21/10/2013 09:51:03
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 9.0
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01585915
Message ID:
01585927
Views:
31
>>On the same page I have a GridView bound to a dataset. Below the GridView there is a textbox (or several textboxes). As user navigates through the GridView (clicking on this or that row) I want the value/text in the textbox(s) to be updated according to new row in the dataset. My understanding is I need to bind the textbox(s) to the same dataset. How do you do it? An example, of one textbox binding to the dataset would be very helpful.
>>TIA
>
>Dimitry
>
>This is how I do it with a Winform. I'm not sure whether ASP.NET does it the same way.
>Actually, you don't bind to a dataset. You bind to a column in a datatable that belongs to a dataset.
>miscSysdataInf.sysdatads is a strongly typed dataset.
>appuser is a datatable and username is the column.
>
>
>
>  textBoxUsername.DataBindings.Add("Text", miscSysdataInf.sysdatads.appuser, "username");
>
Bill, first, thank you for your input. I did find a post online that uses Databinding but I think it (this post) also was illustrating the WinForms application. I think ASP.NET (web application) should use a different approach. I will keep looking - online - and here.
Again, thank you.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform