I Have a page (clientes.aspx) , inside a masterpage
I have some textbox, and when the user clicks the button 'Cancel', I need to
empty all controls. I tried this, with runtine error:
For Each txtControl As TextBox In Me.Controls
txtControl.Text = ""
Next
error message in runtime:
can't convert as object of type 'ASP.masterpage _master' in type
'System.Web.UI. WebControls.Tex tBox'.
--
Thanks in advance
Hércules
HRsoft Informática - Rio de Janeiro - Brasil
I have some textbox, and when the user clicks the button 'Cancel', I need to
empty all controls. I tried this, with runtine error:
For Each txtControl As TextBox In Me.Controls
txtControl.Text = ""
Next
error message in runtime:
can't convert as object of type 'ASP.masterpage _master' in type
'System.Web.UI. WebControls.Tex tBox'.
--
Thanks in advance
Hércules
HRsoft Informática - Rio de Janeiro - Brasil
Comment