P
pargat.singh
I am trying to set DataNavigateUrlFormatString and getting "An
unhandled exception of type 'System.StackOverflowException' occurred in
System.Data.dll"
Below are my code
protected void GridView1_RowDataBound(object sender,
GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
string urlvalue = e.Row.Cells[4].Text;
e.Row.Cells[5].Visible = false;
HyperLinkField obj = new HyperLinkField();
obj = (HyperLinkField)GridView1.Columns[0];
obj.DataNavigateUrlFormatString = urlvalue;
if (e.Row.Cells[1].Text == "0")
{
e.Row.Cells[1].Text = "Member";
}
else if (e.Row.Cells[1].Text == "1")
{
e.Row.Cells[1].Text = "Spouse";
}
}
}
Thanks in advance.
Pargat
unhandled exception of type 'System.StackOverflowException' occurred in
System.Data.dll"
Below are my code
protected void GridView1_RowDataBound(object sender,
GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
string urlvalue = e.Row.Cells[4].Text;
e.Row.Cells[5].Visible = false;
HyperLinkField obj = new HyperLinkField();
obj = (HyperLinkField)GridView1.Columns[0];
obj.DataNavigateUrlFormatString = urlvalue;
if (e.Row.Cells[1].Text == "0")
{
e.Row.Cells[1].Text = "Member";
}
else if (e.Row.Cells[1].Text == "1")
{
e.Row.Cells[1].Text = "Spouse";
}
}
}
Thanks in advance.
Pargat