I'm using Visual Studio 2005 and I'm looking for a way to programmatically bind data to an object such as a textbox using ASP.NET and VB script. I would really appreciate a quick how to?
How can I dynamically bind data to a textbox in asp.net?
MyTextbox.DataBindings.Add("text", MyDataSource, "MyProperty")
For instance:
txtFirstName.DataBindings.Add("text", dsEmployees, "FirstName")
Where dsEmployees is a DataSet and FirstName is the name of the data column.
night garden
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment