Skip to content

Login problem to my site

krishna angirekula

krishna angirekula

Asked May 22, 2013, 11:08 PM EDT1 answer
Share
LinkedInX
C#
  if (!IsPostBack)
        {
            if (Session["UserId"] != null && Session["AccessLevel"] != null)
            {
                Session["UserId"] = null;
                Session["AccessLevel"] = null;
                lblcname.Text = SqlHelper.Instance.GetCompanyname();

            }


            else
            {
                Response.Redirect("login.aspx");
            }

            FirstGridViewRow();
            txtSelectDate.Focus();


        }
i am placing login page to my website 

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Sunny  Sharma
    0
    As it is not so clear how you're getting the values into session variables, I assume the problem is there with your logic that you coded. Share your complete code to get better help!
    0