protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { try { string gno = Request.QueryString["gno"].ToString(); var good = goodBLL.GetSingleByno(gno); txtgno.Value = good.gno; //txtgno.Disabled = true; gname.Value = good.gname; price.Value = good.price.ToString(); producer.Value = good.producer; } catch (Exception ex) { Response.Redirect("GoodsList.aspx"); } } }