two select commandfields in a gridview

S

SR

Hi,
if I want to put two select commandfields in a gridview like below, how can
I find which one was clicked in the SelectedIndexChanged event ?

<Columns>
<asp:CommandField ButtonType="Link" SelectText="Choose"
ShowSelectButton="true" />
<asp:CommandField ButtonType="Link" SelectText="Info"
ShowSelectButton="true" />
<asp:BoundField DataField="ContactName" HeaderText="Name" />
<asp:BoundField DataField="ContactCity" HeaderText="City" />
</Columns>

Thanks in advance
Sandro
 

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,776
Messages
2,569,603
Members
45,196
Latest member
ScottChare

Latest Threads

Top