Tuesday, January 17, 2012

how to refresh a content page using master page

How to refresh a content page using master page

protected void Page_Load(object sender, EventArgs e)
{

    HtmlMeta meta = new HtmlMeta();

    meta.HttpEquiv = "Refresh";

    meta.Content = "5";

    this.Page.Header.Controls.Add(meta);    
}

Friday, January 13, 2012

[System.Threading.ThreadAbortException] = {Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack.}

HI,

[System.Threading.ThreadAbortException] = {Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack.}


Solution is:

Response.Redirect("page1.aspx",false);