For Programmers: Free Programming Magazines  


Home > Archive > ASP .NET > October 2006 > Question regarding ButtonField.CommandName...









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Question regarding ButtonField.CommandName...
VMI

2006-10-31, 7:06 pm

My webapp has a gridview, and I want to add two ButtonFields to it: 1) one
that highlights the clicked row and takes me to page1.aspx, and 2) one that
highlights the clicked row and takes me to Page2.aspx.
I was thinking of setting these two ButtonFields CommandName to "Select" so
that it adds the functionality of highlighting the row when I click on it.
But how do I know which buttonField the user clicked on? In
gridview.RowCommand event handler, the gridViewCommand will be the same
("Select").
I was also thinking of setting one of them as "Edit", but I would need to
manually add the functionality of highlighting the row, and I haven't found
it.
Any help is appreciated. Thanks.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com