Wednesday, April 22, 2009

Re load page using asp.net

Instead of using Response.Redirect you could try
CODE
ScriptManager.RegisterClientScriptBlock(this, typeof(string), "postBack", Page.ClientScript.GetPostBackEventReference(new PostBackOptions(this)), true);I know it's a bit long but if you have any update panels or ajax stuff on the page you need to use ScriptManager. Otherwise you can just use
CODE
ClientScript.RegisterClientScriptBlock(typeof(string), "postBack", Page.ClientScript.GetPostBackEventReference(new PostBackOptions(this)));I hope that helps

0 comments:

Popular Posts

Recent Posts

Unordered List

Text Widget