textbox value in table

Results 1 to 2 of 2

Thread: textbox value in table

  1. #1
    Join Date
    Dec 1969

    Default textbox value in table

    I have a method that creates a table and returns it to the webform page where it the control(table) is added to the page <BR><BR>the table has a textbox and button the button is intended to update a db with the value in the text box i want to know how i can reference the value of the text box value in the onclick event of the button <BR><BR>my problem is the class cant reference the page.controls

  2. #2
    Join Date
    Dec 1969

    Default RE: textbox value in table

    in the onclick.. pass the value of the textbox to your class. [txtboxname].text will give you the value. Make sure you declare the textbox as protected in the top of your codebehind.

Posting Permissions

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