Stack over flow error

Discussion in 'ASP .Net Web Controls' started by pargat.singh@gmail.com, Aug 3, 2006.

  1. Guest

    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
    , Aug 3, 2006
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Fiaz Ali Saleemi

    Stack Over Flow Message in IE

    Fiaz Ali Saleemi, Jul 14, 2005, in forum: ASP .Net
    Replies:
    4
    Views:
    487
    Nic Roche
    Jul 15, 2005
  2. Mark L Pappin

    floating point over-/under-flow

    Mark L Pappin, Dec 2, 2004, in forum: C Programming
    Replies:
    3
    Views:
    584
    Gordon Burditt
    Dec 2, 2004
  3. questions?

    under/over flow problem?

    questions?, Apr 7, 2006, in forum: C Programming
    Replies:
    3
    Views:
    291
    questions?
    Apr 13, 2006
  4. Jack Dowson
    Replies:
    0
    Views:
    453
    Jack Dowson
    May 7, 2007
  5. Fiaz Ali Saleemi

    Stack Over Flow Message in IE

    Fiaz Ali Saleemi, Jul 14, 2005, in forum: ASP .Net Web Controls
    Replies:
    4
    Views:
    122
    Nic Roche
    Jul 15, 2005
Loading...

Share This Page