Try branching inside the routine called from the button click rather than
attempting to call different routines. In other words, you know the
reasoning behind the different events being called (first click, second
click, or similar), so you can branch based on that. For example (C#):
//At top of page (declarations)
protected int clickNumber = 0;
private void Button1_Click(Object sender, EventArgs e)
{
'Set click number higher for this click
'NOTE: can do this after, if you want 0 to be your start
clickNumber += 1;
switch(clickNumber)
{
case 1:
//Code on first click
break;
case 2:
//Code on second click
break;
case 3:
//Code on third click
break;
default:
//Code on all other clicks
break;
}
}
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
************************************************
Think Outside the Box!
************************************************
DotNetJunkies User said:
Hi ,
I hav a buttoncolumn(pushBackButton) in my datagrid. And on
click of every button i want to call different methods(server side).
Kindly help me out..!!!!!!!!
Thnx,
Rameshwar,Govindu.
engine supports Post Alerts, Ratings, and Searching.