Hi,
I am not sure if there is any one way to do this for all situations but
here are two ideas:
One is to use ASP.NET events for each PostBack possibility:
<asp:Button ID="Button1" runat="server" Text="Button1"
OnClick="Button1_Click" />
<input id="Button2" runat="server" onserverclick="Button2_ServerClick"
type="button" value="button" />
and then capture events :
protected void Button1_Click(object sender, EventArgs e)
{
Button1Clicked=true;
}
protected void Button2_Click(object sender, EventArgs e)
{
y = 2;
}
Another option is just pure html. If you have three submit buttons:
<input type="submit" name="action" value="Preview">
<input type="submit" name="action" value="Post">
<input type="submit" name="action" value="Cancel">
Request["Preview"]!=null if clicked
Request["Post"]!=null if clicked
Request["Cancel"]!=null if clicked
Maybe someone else will have a better idea.
mnichols