Dear All
How can pass all the textboxes in aspx file and clear them by for each loop????
thnks alot
Printable View
Dear All
How can pass all the textboxes in aspx file and clear them by for each loop????
thnks alot
Assuming you have them all in a Panel try:
Code:foreach(TextBox lobjTextBox in pnlPanel.Controls){
lobjTextBox.Text = "";
}
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 = "";
}
try:
'this.Controls'