Devendra  Kumar

Devendra Kumar

  • NA
  • 517
  • 244.5k

How to solve Redirect Loop in c# .net

Oct 30 2015 8:29 AM
if (!IsPostBack)
{
if (Session["UserName"] != null && Session["UserName"] != "")
{
Label1.Text = "Hello - " + Session["UserName"].ToString();
Label1.ForeColor = System.Drawing.Color.White;
Response.Redirect("WholesaleOrder.aspx");
}

Answers (5)