コード例 #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     CustomerId = (string)Session["CustomerId"];
     if (!IsPostBack)
     {
         lblResult.Text = CustomerId;
         enableControls(false);
         if (CustomerId == null || CustomerId == "")
         {
             Response.Redirect("~/Account/Login.aspx");
         }
         else
         {
             DropDownList1.DataBind();
             DropDownList2.DataBind();
             DropDownQuestionList.DataBind();
             loadCustomerDetails();
         }
     }
 }
コード例 #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     CustomerId = Request.QueryString.Get("CustomerID");
     enableControls(false);
     AdminId = (string)Session["AdminId"];
     if (!IsPostBack)
     {
         if (AdminId == null || AdminId == "")
         {
             Response.Redirect("~/Account/AdminLogin.aspx");
         }
         else
         {
             DropDownList1.DataBind();
             DropDownList2.DataBind();
             DropDownQuestionList.DataBind();
             loadCustomerDetails();
         }
     }
 }