Hi all ! I know it may be very easy. But i am not able to do this.
Actually i want to just clear all the controls. The fuction works fine in particular pages. But when i put the method in app_code's c# file, it does not work at all
Please help me. Thanks in advance.
Here is my coding:-
protected void btnReset_Click(object sender, EventArgs e)
{
Code c = new Code();
c.Clear(this.Form.Controls);
}
and in app_code there is a c# in which there is a class and in that class there is a function as under
public class Code
{
public void Clear(ControlCollection controls)
{
foreach (Control ctrl in controls)
{
&nb ...
Go to the complete details ...