Stack over flow error

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top