I have ASP page,Say "page1.asp" .
Ater filling proper information,when "page1.asp" is submitted ;it goes to "page2.asp".
On This "page2.asp",only VBScript Coding is done (DB Related).
Now,On "Page2.asp" after VBScript coding is done ,I have taken a message into hidden field (that needs to be displayed on "Page1.asp") And written script at the End of the page to submit that page back to "Page1.asp".
Now the problem is,This works in IE .In IE,the page is submitted back to "Page1.asp", But Doesn't work in FireFox.
In FireFox, The VBScript Code is getting Executed;But Stops there only after exceution is done.
If I write only 'response.Redirect("Page1.asp")' OR 'window.location.href="Page1.asp"'.This works in BOTH.
But I want to show that message in "Page1.asp",Hence I am posting back that "Page2.asp".
I dont want to send that message as QueryString.
Page2.asp Sample :
Expand|Select|Wrap|Line Numbers
- <% Dim StrDispMsg
- 'CODE
- StrDispMsg = "Test Message"
- %>
- <form name="FrmPage2" method="post"><input type="hidden" name="HidMessage" value="<%=StrDispMsg%>" />
- <script type="text/javascript">
- FrmPage2.action = "Page1.asp";
- FrmPage2.method = "post";
- FrmPage2.submit();
- </script>
- </form>
Regards,
"D"