Esempio n. 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         if (Request.QueryString["id"] != "" && Request.QueryString["id"] != null)
         {
             bl.trf_id = Request.QueryString["id"].ToString();
             DataSet ds = new DataSet();
             ds = dl.edit_tarif(bl);
             if (ds.Tables[0].Rows.Count > 0)
             {
                 txt_comodity.Text = ds.Tables[0].Rows[0]["exc_comodity"].ToString();
                 txt_tarifno.Text  = ds.Tables[0].Rows[0]["tarff_no"].ToString();
                 Button1.Visible   = false;
                 Button2.Visible   = true;
             }
         }
         grid();
         txt_comodity.Focus();
     }
 }