How to bind a textbox to a data source

Discussion in 'ASP .Net Web Controls' started by Fred, May 4, 2007.

  1. Fred

    Fred Guest

    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 ***
    Fred, May 4, 2007
    #1
    1. Advertising

  2. Fred

    Riki Guest

    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
    Riki, May 5, 2007
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Vijaya
    Replies:
    2
    Views:
    2,627
    Vijaya
    Nov 13, 2003
  2. =?Utf-8?B?ZGF2aWQ=?=

    Data Bind for textbox

    =?Utf-8?B?ZGF2aWQ=?=, Apr 3, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    3,775
    Karl Seguin
    Apr 4, 2005
  3. mr2_93
    Replies:
    1
    Views:
    3,573
    mr2_93
    Oct 2, 2005
  4. Henry Lee
    Replies:
    2
    Views:
    483
    Darren Kopp
    Mar 31, 2006
  5. Morris Neuman

    How to bind a textbox to an a data source

    Morris Neuman, Apr 28, 2007, in forum: ASP .Net Web Controls
    Replies:
    16
    Views:
    903
    Steven Cheng[MSFT]
    May 8, 2007
Loading...

Share This Page