using System; using System.Collections; using System.Configuration; using System.Data; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Text; public partial class Documenting : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void btnreturn_Click(object sender, EventArgs e) { //Documenting Response.Redirect("Documenting_Print.aspx"); } protected void grdtbl0_SelectedIndexChanged(object sender, EventArgs e) { Response.Redirect("Documenting_Edit.aspx?id=" + grdtbl0.SelectedRow.Cells[0].Text.ToString()); } protected void grdtbl0_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { //------------------ Have Document or Not --------------------- string decodedText = HttpUtility.HtmlDecode(e.Row.Cells[3].Text); e.Row.Cells[3].Text = decodedText; //StringBuilder Doc_Par_Name = new StringBuilder(Server.HtmlDecode((String)e.Row.Cells[3].Text.Trim().Replace("''", "'"))); //e.Row.Cells[3].Text = Server.HtmlDecode((String)e.Row.Cells[3].Text); } } }