Displaying Message box!
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > IIS server support > IIS ASP > Displaying Message box!




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Displaying Message box!  
Abdul Azeem


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-28-04 01:55 PM

Hi All,

I have a requirement to display a message and then redirect the controls to
some file, I tried with the below method but its not working, where as If I
use server.transfer or server.execute it works but I cant give relative Url
(it will dynamically genrate), If any one has an alternate way, pls respond.

ShowMessage("Hello World")

Sub ShowMessage(sMessage)
Response.Write "<script> alert("& Chr(34) & sMessage & Chr(34) &" );
</script>"
Response.redirect "xyz.asp"
End Sub

Thanks in Advance,
Mohammed.







[ Post a follow-up to this message ]



    Re: Displaying Message box!  
Lance Wynn


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-28-04 01:55 PM

You could use all Client Side code, this way it will wait for the user to
respond to redirect.  Otherwise, it's probably redirecting before the alert
is presented to the user:

ShowMessage("Hello World")

Sub ShowMessage(sMessage)
%>
<script>
alert("<%= sMessage %>" )
document.location="xyz.asp"
</script>
<%
End Sub



"Abdul Azeem" <abdulazeem@abc.com> wrote in message
news:%23eka7qQXEHA.3564@TK2MSFTNGP11.phx.gbl...
Hi All,

I have a requirement to display a message and then redirect the controls to
some file, I tried with the below method but its not working, where as If I
use server.transfer or server.execute it works but I cant give relative Url
(it will dynamically genrate), If any one has an alternate way, pls respond.

ShowMessage("Hello World")

Sub ShowMessage(sMessage)
Response.Write "<script> alert("& Chr(34) & sMessage & Chr(34) &" );
</script>"
Response.redirect "xyz.asp"
End Sub

Thanks in Advance,
Mohammed.








[ Post a follow-up to this message ]



    Re: Displaying Message box!  
Abdul Azeem


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-29-04 08:16 AM

Thanks a lot dear, you solved my problem.
Thanks once again..
Mohammed.





"Lance Wynn" <lance_wynn@N.O.S.P.A.M.hotmail.com> wrote in message
news:ezJzY0QXEHA.3716@TK2MSFTNGP10.phx.gbl...
> You could use all Client Side code, this way it will wait for the user to
> respond to redirect.  Otherwise, it's probably redirecting before the
alert
> is presented to the user:
>
> ShowMessage("Hello World")
>
> Sub ShowMessage(sMessage)
> %>
> <script>
>     alert("<%= sMessage %>" )
>     document.location="xyz.asp"
> </script>
> <%
> End Sub
>
>
>
> "Abdul Azeem" <abdulazeem@abc.com> wrote in message
> news:%23eka7qQXEHA.3564@TK2MSFTNGP11.phx.gbl...
> Hi All,
>
>  I have a requirement to display a message and then redirect the controls
to
> some file, I tried with the below method but its not working, where as If
I
> use server.transfer or server.execute it works but I cant give relative
Url
> (it will dynamically genrate), If any one has an alternate way, pls
respond.
>
> ShowMessage("Hello World")
>
> Sub ShowMessage(sMessage)
>  Response.Write "<script> alert("& Chr(34) & sMessage & Chr(34) &" );
> </script>"
> Response.redirect "xyz.asp"
> End Sub
>
> Thanks in Advance,
> Mohammed.
>
>
>







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 08:54 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register