|
|
How to check type of control in asp.net
Fri, 07/23/2010 - 00:58
I have developed a web form where i have number of controls like dropdownlist, textboxes ,checkboxes and buttons.Now what i want is to clear all the textboxes on click event of button.I can iterate through all controls but how to determine type of each control.
Thanks in advance
Similar entries
- difference between repeater and datagrid asp.net
- Clear your private data before you leave
- How to disable UAC in windows Vista using Control panel
- How to install IIS (Internet Information Server) on Windows XP
- How to solve ctl00 must be placed inside a form tag with runat=server.
- How to get autonumber in repeater control of ASP.net
- How to disable submit button if checkbox is not checked
- Howto enable remote desktop in windows XP.
- How to install IIS in Windows Vista and Windows 7
- Enable disable UAC in windows 7 using control panel
if typeof ctrl is "TextBox"
'do what ever you want to do