Groups | Blog | Home
all groups > asp.net webcontrols > october 2003 >

asp.net webcontrols : Binding Datasource to a textbox?


Mike Lambert
10/14/2003 3:01:11 PM
How do you (or can you) bind a texbox to a datasource since the textbox
doesn't have a datasource property.

Thanks,
Mike

chak
10/17/2003 11:22:19 PM
Use the Text = '<# DataBinder.Eval(something) >' syntax in the aspx page, so
that when you have call a Page.DataBind() in the codebehind, the variable
will get bound to the textbox.


[quoted text, click to view]

AddThis Social Bookmark Button