Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > How to bind a textbox to a data source

Reply
Thread Tools

How to bind a textbox to a data source

 
 
Fred
Guest
Posts: n/a
 
      05-04-2007
The problem is that, in VS2003 using web forms, the text control had a
property - "Databinding" that simplified connecting the control to a
datasource. It could be done visually during design and was very simple
to modify.

In VS2005, I want to do the same thing: I want to add a textbox to a
form and then bind it to a datasource, and I want to do it visually,
without having to go to the HTML source and add something like,
text='<%# DataBinder.Eval(HelpDeskDV, "[0].ContactName", "{0}") %>'.

So the question is: how do I assign a datasource to an existing textbox
on a web form?

Regards,
Fred

*** Sent via Developersdex http://www.developersdex.com ***
 
Reply With Quote
 
 
 
 
Riki
Guest
Posts: n/a
 
      05-05-2007
Fred wrote:
> The problem is that, in VS2003 using web forms, the text control had a
> property - "Databinding" that simplified connecting the control to a
> datasource. It could be done visually during design and was very
> simple to modify.
>
> In VS2005, I want to do the same thing: I want to add a textbox to a
> form and then bind it to a datasource, and I want to do it visually,
> without having to go to the HTML source and add something like,
> text='<%# DataBinder.Eval(HelpDeskDV, "[0].ContactName", "{0}") %>'.
>
> So the question is: how do I assign a datasource to an existing
> textbox on a web form?


See the discussion with the same subject one week ago in this newsgroup.

--

Riki


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
How to bind a textbox to an a data source Morris Neuman ASP .Net Web Controls 16 05-08-2007 02:55 AM
Using a data-bind dropdownlist to populate another data-bind dropdownlist mr2_93 ASP .Net 1 10-02-2005 05:07 PM
Data Bind for textbox =?Utf-8?B?ZGF2aWQ=?= ASP .Net 3 04-03-2005 11:55 PM
Can we bind data to textbox in a headertemplate of a datagrid Vijaya ASP .Net 2 11-13-2003 06:42 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57