protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (Request.QueryString["ProductTypeID"] == null) { Response.Redirect("Home.aspx"); } int ProductTypeID = Convert.ToInt32(Request.QueryString["ProductTypeID"].ToString()); //Find Corresponding product ProductTypes p = ProductTypeHandler.GetProductTypeByID(ProductTypeID); HdnProductTypeId.Value = ProductTypeID.ToString(); NameTxt.Text = p.Name; DescTxt.Text = p.Description; } }