protected void btnAdd_Click(object sender, EventArgs e) { if (txtModuleName.Text == "") { ScriptManager.RegisterStartupScript(UpdatePanel8, typeof(string), "alertscript", "alert('Please Enter the Module Name')", true); } else if (RadEditor2.Content == "") { ScriptManager.RegisterStartupScript(UpdatePanel6, typeof(string), "alertscript", "alert('Please Enter the Description')", true); } else { string modulename = txtModuleName.Text; string description = RadEditor2.Content; DataTable dt1 = (DataTable)Session["Project"]; DataRow row1 = dt1.NewRow(); row1["ModuleName"] = txtModuleName.Text; row1["Description"] = RadEditor2.Content; dt1.Rows.Add(row1); GridView1.DataSource = dt1; GridView1.DataBind(); txtModuleName.Text = ""; RadEditor2.Content = ""; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)