Binding Datasource to a textbox?

M

Mike Lambert

How do you (or can you) bind a texbox to a datasource since the textbox
doesn't have a datasource property.

Thanks,
Mike
 
C

chak

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,571
Members
45,045
Latest member
DRCM

Latest Threads

Top