Results 1 to 3 of 3

Thread: HTML textbox in codebehind (RESOLVED)

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2004
    Posts
    5

    HTML textbox in codebehind (RESOLVED)

    Hello,

    I have a simple question about a HTML textbox. I've made a form with some checkboxes and textboxes in it. Now i want to fill my database with the values of the textboxes and checkboxes in the code behind. Is that posible and how?

    Thx
    Last edited by Pietje; Nov 16th, 2004 at 10:22 AM.

  2. #2
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    You have a slightly confusing description of your problem...

    There is an <asp:textbox> tag or a <input type="text" /> tag.

    When you say HTML textbox, I assume you mean the latter:

    html:

    <input id="htmltextbox1" type="text" value="hi" runat="server" />

    On the code behind page, you declare:
    VB Code:
    1. Protected WithEvents htmltextbox1 As System.Web.UI.HTMLControls.HTMLInputText

    And you can handle the serverChange event of this object, or get and access its text using the .Value property.

  3. #3

    Thread Starter
    New Member
    Join Date
    Nov 2004
    Posts
    5
    Thnx!! That was the anwser!

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