I have a select statement with various numbers. Upon clicking on one of the options, you are sent to a page that puts the option value in a session and returns back to the previous page. When it gets back to the page it is supposed to write out a number of <div> tags based on the session variable. I don't know if its asp or IE, but regardless it works in firefox the way I want it to. The code that I'm using is:
-
<option onclick="window.location='uploadNum.asp?upNum=1';" <% If Session("uploadNum") = 1 Then Response.Write("selected='selected'") End If %>>1</option>
-
I've tried any number of things to get it to work, such as putting "javascript
:" before the "window.location" and making the onclick call a function I made. None of the changes affect how it works in Firefox, but it still fails in IE.
The asp in the code is just so that it starts out selected with the option that is equivalent to the session variable. Since the onclick doesn't work in IE, however, neither does the ASP.
I know its the onclick, because I can manually put in the url and it works fine.
Any advice as to how to fix it would be appreciated. :)