Hello,

I have many controls on my form ( textboxes, radiobuttons, dropdownlist, checkboxes inside gridview) i want to clear them all once the form is submitted. Please any one tell me how to do it? I am looking for somegeneric method which will help me to solve it...
Awating response.


Thanks,
Rohan

Hello,

I have many controls on my form ( textboxes, radiobuttons, dropdownlist, checkboxes inside gridview) i want to clear them all once the form is submitted. Please any one tell me how to do it? I am looking for somegeneric method which will help me to solve it...
Awating response.


Thanks,
Rohan

protected void Button1_Click(object sender, EventArgs e)
    {
        ......
        Response.Redirect(Request.Path);
    }

Response.Redirect(Request.Path); :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.