Results 1 to 4 of 4

Thread: passing through all textboxes in aspx file

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2003
    Posts
    175

    passing through all textboxes in aspx file

    Dear All
    How can pass all the textboxes in aspx file and clear them by for each loop????
    thnks alot

  2. #2
    Hyperactive Member GlenW's Avatar
    Join Date
    Nov 2001
    Location
    Gateshead, England
    Posts
    479

    Re: passing through all textboxes in aspx file

    Assuming you have them all in a Panel try:

    Code:
    foreach(TextBox lobjTextBox in pnlPanel.Controls){
        lobjTextBox.Text = "";
    }

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jan 2003
    Posts
    175

    Re: passing through all textboxes in aspx file

    Ok thats exactly my problem.
    i dont have those textboxes in a panel (is there any benefit to put them like that?) those textboxes are in aspx file. (without panel integrated in it).
    my problem is to aacess the aspx file from the code behind vb file.

    foreach(TextBox lobjTextBox in What_Should_I_Put_here????){
    lobjTextBox.Text = "";
    }

  4. #4
    Hyperactive Member GlenW's Avatar
    Join Date
    Nov 2001
    Location
    Gateshead, England
    Posts
    479

    Re: passing through all textboxes in aspx file

    try:
    'this.Controls'

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