D
Daniel
Hi all,
I am using .NET 1.1. I have a form with a cancel button, something like
this:
<form method="post"....>
<input type="submit" value="Submit">
<input type="submit" value="Cancel" id="btnCancel">
</form>
In the code behind, I am trying to use the Request object to see if the
cancel button was pushed (I have another button on the page also). I have
tried using:
Request["btnCancel"]
Request.Form["btnCancel"]
Request.Params["btnCancel"]
They all return null or empty string. I also tried Request["Cancel"] with
same results. These are in the page load method.
So, what is the best way to check to see which button was pushed?
Thanks in advance.
I am using .NET 1.1. I have a form with a cancel button, something like
this:
<form method="post"....>
<input type="submit" value="Submit">
<input type="submit" value="Cancel" id="btnCancel">
</form>
In the code behind, I am trying to use the Request object to see if the
cancel button was pushed (I have another button on the page also). I have
tried using:
Request["btnCancel"]
Request.Form["btnCancel"]
Request.Params["btnCancel"]
They all return null or empty string. I also tried Request["Cancel"] with
same results. These are in the page load method.
So, what is the best way to check to see which button was pushed?
Thanks in advance.