protected void ddlPageName_SelectedIndexChanged(object sender, EventArgs e) { PageMaster objPage = new PageMaster(); try { if (ddlPageName.SelectedIndex != 0) { DataTable dt = objPage.getPageDescription(new Guid(ddlPageName.SelectedValue)); txtDescription.Text = dt.Rows[0]["PageDescription"].ToString(); } } catch (Exception ex) { throw ex; } finally { objPage = null; } }
protected void btnSave_Click(object sender, EventArgs e) { PageMaster objPageMaster = new PageMaster(); objPageMaster.updatePageDescription(txtDescription.Text, new Guid(ddlPageName.SelectedValue)); }