-
I know my syntax is incorrect just need to know if there is a simple way to do this. What I thought might work obviously didn't :)
Any suggestions would be greatly appreciated.
What I tried:
===================================
<%
IF NOT isempty(Request.Form("next")) then
if request.form("storeid") = "999" then
MsgBox "Incorrect Selection"
response.redirect "./default.asp"
else
response.redirect "./clientadd.asp"
end if
end if
%>
===================================
Kind Regards,
Hakan
-
I do not believe you can use MsgBox in ASP.
-
I did see this sniplet of code but it is not exactly what I am trying to do...
<SCRIPT LANGUAGE="VBScript">
Function MyForm_onSubmit
MsgBox "Form was clicked"
End Function
</SCRIPT>
<FORM METHOD="POST" ACTION="mypage.asp" NAME="MyForm">
<INPUT TYPE="SUBMIT" NAME="btnSUBMIT" VALUE="Click Here">
</FORM>
I need the message box to come up when it corresponds to my if then statement in the previous post...
Any ideas...
Kind Regards,
Hakan
-
Hey
In the sniplet of code , it is using Client Side VB Script
In which u can open a msg box while in your code u r trying to open a msgbox in Server Side Script that is not possible
Got It ???
Any queries left then ask //
-
Ok... no prob... is there any other way to do it??
Kind Regards,
Hakan
-
No ,I don't think so that there is any method by which u can ope a message box through server .
I m not getting why u ever need this
-
The reason I want to do this is if an incorrect option is choosen out of the drop down I wanted it to pop a message box saying "Incorrect Selection".
Thats about it...
-
u can do this by using Java Script on the previous page on which the combos are
use the change event of combo box and write the necessary code for that
-
Basically, you never want to open a modal dialog on the server (which is what MsgBox would do) cuz it is normally unattended so the web site would stop until someone clicked OK.
What you want to do is use client side scripting and use window.alert()