brgdotnet
asked on
How to close an asp.net web form using C# ?
I have a button control on an Asp.net web form. When the button is pressed, I need to close the web form. How can I do that?
Is there are way to close it in the C# code behind file, or must it be done on the front end? It would be nice to know how to close
it either way. However my preference would be to close it in the C# code behind?
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" />
protected void Button1_Click(object sender, EventArgs e)
{
}
Is there are way to close it in the C# code behind file, or must it be done on the front end? It would be nice to know how to close
it either way. However my preference would be to close it in the C# code behind?
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" />
protected void Button1_Click(object sender, EventArgs e)
{
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.