Пример #1
0
 protected void LinkButton1_Click(object sender, EventArgs e)
 {
     Hashtable data = new Hashtable();
     bll get = new bll();
     string str1;
     str1 = Request.QueryString["ticketid"];
     int id2 = Convert.ToInt32(str1);
        data= get.selhelp(id2);
     txtid.Text = data["pk"].ToString();
     txttask.Text = data["desc"].ToString();
     Session["id"] = txtid.Text;
     Label1.Visible = true;
     Label2.Visible = true;
     txttask.Visible = true;
     txtid.Visible = true;
     if (data["dbname"].ToString() == "vendor")
     {
         upvendor.Visible = true;
     }
     else if (data["dbname"].ToString() == "employee")
     {
         upemp.Visible = true;
     }
 }