AndrewJMarshall
Programmer
I have a simple app that displays images and allows he user to enter keywords. I build the form dynamically in the Page_Init method (for several reasons).
If the user does not want to work on the image, they can click the Skip button. In the Skip_Click method, I mark the item as skipped and Response.Redirect back to the page using the Request.Url.AbsoluteUri because there is important info in the QueryString. I added JavaScript to the page to call the button's click method if the user presses the Esc key.
If the user clicks the button with the mouse, IsPostBack is false after the Response.Redirect. However, if the user presses the Esc key, IsPostBack is true after the Response.Redirect. Oops, I almost forgot this only happens in IE.
I hacked in a solution in the Skip_Click method, but it's total BS.
Any thoughts on what the problem and/or solution is?
Many thanks,
Andrew
If the user does not want to work on the image, they can click the Skip button. In the Skip_Click method, I mark the item as skipped and Response.Redirect back to the page using the Request.Url.AbsoluteUri because there is important info in the QueryString. I added JavaScript to the page to call the button's click method if the user presses the Esc key.
If the user clicks the button with the mouse, IsPostBack is false after the Response.Redirect. However, if the user presses the Esc key, IsPostBack is true after the Response.Redirect. Oops, I almost forgot this only happens in IE.
I hacked in a solution in the Skip_Click method, but it's total BS.
Any thoughts on what the problem and/or solution is?
Many thanks,
Andrew