protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["UserID"] == null)
        {
            Response.Redirect("Login.aspx");
        }
        else
        {
            string userID         = Session["userID"].ToString();
            string password       = Session["password"].ToString();
            int    roleID         = Convert.ToInt16(Session["roleID"]);
            bool   verifiedStatus = SessionVerification.GetUserVerification(userID, password);
            if (verifiedStatus == false)
            {
                Server.Transfer("Login.aspx");
            }
            else
            {
            }
        }


        conn = new SqlConnection();
        conn.ConnectionString = ConfigurationManager.ConnectionStrings["kmcConnectionString"].ConnectionString;
        if (!IsPostBack)
        {
            ddlreflectiobperiod.DataSource     = downs.listbillingperiod();
            ddlreflectiobperiod.DataTextField  = "Text";
            ddlreflectiobperiod.DataValueField = "Value";
            ddlreflectiobperiod.DataBind();
            ddlreflectiobperiod.Items.Insert(0, "Select Billing Period");
        }
    }
 protected void Page_Load(object sender, EventArgs e)
 {
     pnl.Visible       = false;
     pnlinsert.Visible = false;
     gvSearch.Visible  = false;
     if (Session["UserID"] == null)
     {
         Response.Redirect("Login.aspx");
     }
     else
     {
         string userID         = Session["userID"].ToString();
         string password       = Session["password"].ToString();
         int    roleID         = Convert.ToInt16(Session["roleID"]);
         bool   verifiedStatus = SessionVerification.GetUserVerification(userID, password);
         if (verifiedStatus == false)
         {
             Server.Transfer("Login.aspx");
         }
         else
         {
         }
     }
     if (!IsPostBack)
     {
     }
 }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["UserID"] == null)
        {
            Response.Redirect("Login.aspx");
        }
        else
        {
            string userID         = Session["userID"].ToString();
            string password       = Session["password"].ToString();
            int    roleID         = Convert.ToInt16(Session["roleID"]);
            bool   verifiedStatus = SessionVerification.GetUserVerification(userID, password);
            if (verifiedStatus == false)
            {
                Server.Transfer("Login.aspx");
            }
            else
            {
            }
        }


        if (!IsPostBack)
        {
            ddltown.Enabled        = false;
            ddldistrict.DataSource = downs.listZone();

            ddldistrict.DataTextField  = "Text";
            ddldistrict.DataValueField = "Value";
            ddldistrict.DataBind();
            ddldistrict.Items.Insert(0, "Select Zone");
        }
    }
Esempio n. 4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["UserID"] == null)
        {
            Response.Redirect("Login.aspx");
        }
        else
        {
            string userID         = Session["userID"].ToString();
            string password       = Session["password"].ToString();
            int    roleID         = Convert.ToInt16(Session["roleID"]);
            bool   verifiedStatus = SessionVerification.GetUserVerification(userID, password);
            if (verifiedStatus == false)
            {
                Server.Transfer("Login.aspx");
            }
            else
            {
            }
        }
        btnSubmit.Visible = false;

        conn = new SqlConnection();
        conn.ConnectionString = ConfigurationManager.ConnectionStrings["kmcConnectionString"].ConnectionString;
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        string userID         = Session["userID"].ToString();
        string password       = Session["password"].ToString();
        int    roleID         = Convert.ToInt16(Session["roleID"]);
        bool   verifiedStatus = SessionVerification.GetUserVerification(userID, password);

        if (verifiedStatus == false)
        {
            Server.Transfer("Login.aspx");
        }
        else
        {
        }
    }