Results 1 to 2 of 2

Thread: Retrieving Textbox text server side.

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Feb 2008
    Location
    Texas
    Posts
    1,288

    Retrieving Textbox text server side.

    Ok I'm adding <ASP:TextBox>'s to a page in code.
    I'm going to set their ID and stuff like that.
    I'm wanting to retrieve the text of those textboxes on a button press.

    Now I know I can't simply do "Me.MyTBName1.Text". I guess I could loop through
    the controls and compare IDs. I'd rather be able to get the textbox's text directly somehow though.

    I could use Javascript to get the value, but I don't think I can use it server-side at that point.

    How would I go about doing this?
    You down with OOP? Yeah you know me!
    MCAD and MCMICKEYMOUSE (vb.net)

    ----

    If it even kinda helps... rate it : )

    Edit a Multi-page .tif file and save.

  2. #2
    Frenzied Member Lightning's Avatar
    Join Date
    Oct 2002
    Location
    Eygelshoven
    Posts
    1,611

    Re: Retrieving Textbox text server side.

    Why can't you use Me.txbHello.Text? That works just fine.
    If you use this in a databound control (datarepeater or so) you can you item.FindControl("txbHello")
    VB6 & C# (WCF LINQ) mostly


    If you need help with a WPF/WCF question post in the NEW WPF & WCF forum and we will try help the best we can

    My site

    My blog, couding troubles and solutions

    Free online tools

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width