<%
Dim strDatabaseType
'Choose one of the following two lines, and comment out the other
strDatabaseType = "Access"
'strDatabaseType = "MSDE"
'Now we use this selection to specify the connection string'
If strDatabaseType = "Access" Then
strConnect...
<% if Request.Cookies("strStatus")="admin" then %>
some text
<a href="mypage.asp" onClick="NewWindow(this.href,'test','750','500','no','center');return false">mypage</a>
<%elseif Request.Cookies("strStatus")="guest" then%>
some...
Is there anyway to format or block out the "" to ensure that my command gets done exactly the way i want it?
Coz it seems that when i do this, not only does the pop up window gets directed to mypage.asp the original page does as well. I have to use the response.write() becoz it's...
if that is the case is can i make use of my ASP variable to run a javascript?
example
i have a variable status:
status can be admin or guest depending on the login type
so
the code will look some how like
<%ASP CODE
if status = "admin"%>
run some javascript
<%ASP CODE
else if...
alright the code is something like that
var jStatus = document.cookie.indexOf('strStatus');
strStatus is the name of the cookie
n jStatus is what i'm trying to call from the asp file.
i just wanna to display the value of jStatus on the asp file.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.