protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { this.hdnURL.Value = this.Page.Request.UrlReferrer.AbsolutePath.ToString(); lblAccountCategoryCode.Text = Request.QueryString["accnt_cat_code"].ToString(); this.LoadDLLs(); using (AccountCategory objAccountCategory = new AccountCategory()) { objAccountCategory.AccountCateogryCode = Convert.ToInt16(Request.QueryString["accnt_cat_code"]); objAccountCategory.Fill(); txtAccountCategoryName.Text = objAccountCategory.AccountCategoryName; ddlCategoryType.SelectedValue = objAccountCategory.AccountCategoryTypeCode.ToString(); txtRecordOrder.Text = objAccountCategory.RecordOrder.ToString(); lblCreatedBy.Text = objAccountCategory.CreatedBy; lblCreatedOn.Text = objAccountCategory.CreatedOn.ToString(); lblModifiedBy.Text = objAccountCategory.ModifiedBy; lblModifiedOn.Text = objAccountCategory.ModifiedOn.ToString(); chkbEnable.Checked = objAccountCategory.RecordStatus == "1" ? true : false; } } }