un33k
Programmer
- May 8, 2008
- 1
hi i have a big problem which im sure will be simple to some people. ok i have a gridview with a hyperlink and two buttons in 3 different columns. im generating values for these gridview fields and i need to know if multiple buttons are used in a GridView control how can i determine which button was clicked.
this code below
protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
{
}
this calls the same function when i click on any button and i don't want this because i have 2 other buttons which i want to use for other functions. how can i refer to each button.
any sample code would be much appreciated.
this code below
protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
{
}
this calls the same function when i click on any button and i don't want this because i have 2 other buttons which i want to use for other functions. how can i refer to each button.
any sample code would be much appreciated.