Wrox Home  
Search P2P Archive for: Go

  Return to Index  

ado_dotnet thread: DataBinding TextBox in CodeBehind


Message #1 by "Ryan Lockhart" <rlockhart@p...> on Mon, 22 Apr 2002 22:55:52
I would like to bind a text box to a column in either a DataTable or 
DataReader.  I have found documentation on how to do this with Windows 
forms, but I would like to do it with a Web form.  The Windows forms way 
looks like this:

TextBox1.DataBindings.Add("Text", ds, "Products.ProductName")

Unfortunately this doesn't seem to work in a Web forms.  I keep running 
into dead ends here and would appreciate any suggestions or ideas.

  Return to Index