fuseboxx
08-31-2005, 04:16 PM
I'm trying to check to see If my url variable exists on the server before setting my page to open in a frameset. I'm using the FileExists object with the code below and I'm still throwing a server 500 error.
Not sure what I'm missing here............anyone have any thoughts?
-----------------------------------------------------------------------
<%
Dim objFSO
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
If objFSO.FileExists(URL) Then
URL = <%= URL %>
Else
URL = "whatsnew.htm"
End If
%>
<html>
<head>
<title>test page </title>
</head>
<frameset framespacing="0" border="false" frameborder="0" rows="85,*">
<frame name="top" scrolling="no" src="top.htm"
marginwidth="0" marginheight="0" target="main">
<frame name="main" src="<%= URL %>">
<noframes>
<body>
text Here
</body>
</noframes>
</frameset>
</html>
Not sure what I'm missing here............anyone have any thoughts?
-----------------------------------------------------------------------
<%
Dim objFSO
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
If objFSO.FileExists(URL) Then
URL = <%= URL %>
Else
URL = "whatsnew.htm"
End If
%>
<html>
<head>
<title>test page </title>
</head>
<frameset framespacing="0" border="false" frameborder="0" rows="85,*">
<frame name="top" scrolling="no" src="top.htm"
marginwidth="0" marginheight="0" target="main">
<frame name="main" src="<%= URL %>">
<noframes>
<body>
text Here
</body>
</noframes>
</frameset>
</html>