bhuraasif
June 2nd, 2007, 02:41 AM
Hi everyone
I have been working with asp.net(C#).
i am passing variable to another web form like.
Response.Redirect("index.aspx?ok=done&stat=logout");
it is working fine.
if( ok =="done")
then
i want that onLoad event of index.aspx want to show Msgbox(alert).using any script language(VBScript,JavaScript)
i tried like
<%
string getval = Request.QueryString.Get("ok");
%>
<script language="VBScript" event="onload">
sub showbox()
if not <%= Getval %> = "" then
msgbox("some text)"
End sub
but it doesnt work please show me script(VBSCript,JavaScript) to be done so.
Q-2.
i have a lot of links for downloads.
whenever i click on any download link. I need to be done it must redirect to another page ane download should start within 5 seconds.
how can i do ?
please help me
I have been working with asp.net(C#).
i am passing variable to another web form like.
Response.Redirect("index.aspx?ok=done&stat=logout");
it is working fine.
if( ok =="done")
then
i want that onLoad event of index.aspx want to show Msgbox(alert).using any script language(VBScript,JavaScript)
i tried like
<%
string getval = Request.QueryString.Get("ok");
%>
<script language="VBScript" event="onload">
sub showbox()
if not <%= Getval %> = "" then
msgbox("some text)"
End sub
but it doesnt work please show me script(VBSCript,JavaScript) to be done so.
Q-2.
i have a lot of links for downloads.
whenever i click on any download link. I need to be done it must redirect to another page ane download should start within 5 seconds.
how can i do ?
please help me