linkbutton command event deletes grid

Discussion in 'ASP .Net Datagrid Control' started by Rubble, Feb 12, 2004.

  1. Rubble

    Rubble Guest

    Hello,

    Ive got a datagrid that is created on a user control(ascx) page. My
    web form calls the user control and passes some property values to it,
    then the user control takes those and creates the datagrid.

    Everything works well, but I have a template column in the grid that
    has a linkbutton. I want the commandevent of the linkbutton to run an
    event that redirects to another page, depending on what the data is
    for that particular row. For some reason, whenever I click the link
    in the grid, it just refreshes the page and the grid disappears.

    Any suggestions?

    Thanks!
    B. Rubble
     
    Rubble, Feb 12, 2004
    #1
    1. Advertisements

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. Scott Collens

    browser hangs when user deletes cookies

    Scott Collens, Mar 4, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    410
    bruce barker
    Mar 4, 2004
  2. =?Utf-8?B?TXBob3ph?=

    Confirming Deletes in a DataGrid

    =?Utf-8?B?TXBob3ph?=, Aug 6, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    541
    =?Utf-8?B?UmF2aWthbnRoW01WUF0=?=
    Aug 6, 2004
  3. Nikhil Patel

    databind a grid with linkbutton

    Nikhil Patel, Oct 18, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    568
    Nikhil Patel
    Oct 18, 2004
  4. Girish
    Replies:
    4
    Views:
    976
    Patrick.O.Ige
    Jul 19, 2005
  5. Sathyaish
    Replies:
    3
    Views:
    3,391
    Sathyaish
    Sep 8, 2005
  6. papaja
    Replies:
    4
    Views:
    2,026
    Hans Kesting
    Dec 5, 2005
  7. Sathyaish

    Linkbutton does not look like a linkbutton

    Sathyaish, Sep 8, 2005, in forum: ASP .Net Datagrid Control
    Replies:
    1
    Views:
    360
    Sathyaish
    Sep 8, 2005
  8. Mike McAllister
    Replies:
    11
    Views:
    577
    Yan-Hong Huang[MSFT]
    Feb 21, 2006
Loading...