Hi i am working on asp application. i did some thing wrong about sessions
<%@ Language="VBScript" %>
<% Option Explicit %>
<% Response.Buffer = True%>
<%
i have one asp page work.asp in that i have code and session like this
if something Then
iscopy=True
else
iscopy=False
End If
If (iscopy = False) then
'retry copy for 5 times
do while(i < 5)
If something Then
iscopy=True
else
something
end if
i=i+1
loop
End If
session("iscopied") = iscopy
%>
in another asp page master.asp
i am using session in javascript like this
if (session("iscopied")==true)
{
do something
}
else
alert("Error ");
please help me my boss told me that i am doing wrong in master.asp page . because i declared session("iscopied") = iscopy in vbscript but i am using that session value in javascript.please tell me how can i solve this one
<%@ Language="VBScript" %>
<% Option Explicit %>
<% Response.Buffer = True%>
<%
i have one asp page work.asp in that i have code and session like this
if something Then
iscopy=True
else
iscopy=False
End If
If (iscopy = False) then
'retry copy for 5 times
do while(i < 5)
If something Then
iscopy=True
else
something
end if
i=i+1
loop
End If
session("iscopied") = iscopy
%>
in another asp page master.asp
i am using session in javascript like this
if (session("iscopied")==true)
{
do something
}
else
alert("Error ");
please help me my boss told me that i am doing wrong in master.asp page . because i declared session("iscopied") = iscopy in vbscript but i am using that session value in javascript.please tell me how can i solve this one