Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
ASP .Net
ASP .Net Web Controls
How to bind a textbox to an a data source
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Steven Cheng[MSFT], post: 4308020"] Hi Morris, For TextBox control, it is a simple databound webcontrol, you can simply bind its property with an object/value or function e.g. <asp:TextBox .... Text=<%# function or object %> /> For DataSource control, it is designed to support template based databound control or list databound control rather, so those simple controls like Label , Textbox doesn't directly support binding with it. Would you provide some further information about the scenario in your page? So far according to your description, I think it may be better that we use code to programmatically retrieve value and assign it to textbox(if it is already in a template control which bound to another datasource). Sincerely, Steven Cheng Microsoft MSDN Online Support Lead This posting is provided "AS IS" with no warranties, and confers no rights. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
ASP .Net
ASP .Net Web Controls
How to bind a textbox to an a data source
Top