Please... I need to acces to a textbox in a FormView

Discussion in 'ASP .Net Web Controls' started by Marcos Galaviz, Mar 16, 2007.

  1. Hi i want to asign a value to the Text property in a textbox inside a
    FormView when i am adding a new record ¿how can i do that? i want to use a
    ComboBox to select a value and this value goes to the textbox ¿any
    suggestions?

    Thanks...
     
    Marcos Galaviz, Mar 16, 2007
    #1
    1. Advertising

  2. Marcos Galaviz

    Riki Guest

    Marcos Galaviz wrote:
    > Hi i want to asign a value to the Text property in a textbox inside a
    > FormView when i am adding a new record ¿how can i do that? i want to
    > use a ComboBox to select a value and this value goes to the textbox
    > ¿any suggestions?
    >
    > Thanks...


    (I'm using VB.NET)
    CType(FormView1.FindControl("myTextBox"),TextBox).Text =
    ComboBox1.SelectedValue

    --

    Riki
     
    Riki, Mar 17, 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. Mamcx
    Replies:
    0
    Views:
    488
    Mamcx
    Jun 26, 2003
  2. KK
    Replies:
    2
    Views:
    596
    Big Brian
    Oct 14, 2003
  3. Marcos Galaviz
    Replies:
    0
    Views:
    343
    Marcos Galaviz
    Mar 16, 2007
  4. Chris

    Formview within Formview

    Chris, May 19, 2007, in forum: ASP .Net
    Replies:
    0
    Views:
    545
    Chris
    May 19, 2007
  5. David Thielen

    FormView/Repeater/ Eval(FormView data)

    David Thielen, Jun 16, 2006, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    656
    David Thielen
    Jun 16, 2006
Loading...

Share This Page