Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > linkbutton command event deletes grid

Thread Tools

linkbutton command event deletes grid

Posts: n/a

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?

B. Rubble
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
My "Delete command" deletes more than I want papaja ASP .Net 4 12-05-2005 09:02 AM
Linkbutton does not look like a linkbutton Sathyaish ASP .Net 3 09-08-2005 09:41 AM
Linkbutton does not look like a linkbutton Sathyaish ASP .Net Datagrid Control 1 09-08-2005 08:44 AM
Grid within a Grid ItemDataBound event problem Girish ASP .Net 4 07-19-2005 01:17 AM
databind a grid with linkbutton Nikhil Patel ASP .Net 2 10-18-2004 09:12 PM