Try This ...
static string prev = String.Empty;
protected void Page_Load(object sender, EventArgs e)
{
if( !IsPostBack )
{
prev = Request.UrlReferrer.ToString();
}
}
protected void btn_previous(object sender, EventArgs e)
{
Response.Redirect(prev);
}
No comments:
Post a Comment