foreach (GridViewRow row in dgvSearchResults.Rows) { string name = row.Cells[1].Text; string time = row.Cells[2].Text; Response.Redirect("EmpDetails.aspx?name=" + name.ToString()); }
this.txtPatientName.Text = Request.QueryString["name"].ToString();
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object. Source Error: Line 108: protected void Page_Load(object sender, EventArgs e) Line 109: { Line 110: this.txtName.Text = Request.QueryString["name"].ToString(); Line 111: } Line 112: }
if (Request.QueryString["name"]!=null && !string.IsNullOrEmpty(Request.QueryString["name"].ToString())) { this.txtName.Text = Request.QueryString["name"].ToString(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)