Esempio n. 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     RegPcal();
     if (IsPostBack)
     {
         rdbDelete.Visible = true;
         rdbEdit.Visible   = true;
     }
     else
     {
         term   = unvB.GetNimsalJary();
         nimsal = term.Rows[0]["nimsal"].ToString();
         ViewState.Add("nimsal", nimsal);
         txtmergeCode.Focus();
     }
     if (rdbEdit.Checked)
     {
         divDelete.Visible = false;
         divEdit.Visible   = true;
     }
     else if (rdbDelete.Checked)
     {
         divDelete.Visible = true;
         divEdit.Visible   = false;
     }
 }
Esempio n. 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     dt     = unvB.GetNimsalJary();
     nimsal = dt.Rows[0]["nimsal"].ToString();
     ViewState.Add("nimsal", nimsal);
     if (!IsPostBack)
     {
         Session["clss"] = clss;
         ViewState.Add("code", 0);
         ViewState.Add("name", 0);
         mergeClassDT = clsB.getMergeClass(nimsal);
         ViewState.Add("mergeClassDT", mergeClassDT);
     }
 }