G
Guogang
In a .aspx web page, I created a button that will do a postback
What I want to do: let the button do postback, and process the postback data
in my code behind, but the client side's page won't be affected (because I
have javascript to change the web page at client side).
In C#, I need such a code:
private void btnEdit_Click(object sender, System.EventArgs e)
{
//some code to save postback data
//stop response so that client do not get a page refresh
//I tried the following:
//Response.End(); I get an empty page after postback
//Response.Close(); I get a page error because socket is closed.
}
What I want to do: let the button do postback, and process the postback data
in my code behind, but the client side's page won't be affected (because I
have javascript to change the web page at client side).
In C#, I need such a code:
private void btnEdit_Click(object sender, System.EventArgs e)
{
//some code to save postback data
//stop response so that client do not get a page refresh
//I tried the following:
//Response.End(); I get an empty page after postback
//Response.Close(); I get a page error because socket is closed.
}