Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - How to...
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to...

 Post Reply Post Reply
Author
OZON View Drop Down
Newbie
Newbie
Avatar

Joined: 28 April 2002
Location: Macedonia
Status: Offline
Points: 34
Post Options Post Options   Thanks (0) Thanks(0)   Quote OZON Quote  Post ReplyReply Direct Link To This Post Topic: How to...
    Posted: 18 June 2003 at 3:39pm

This is my page:

<%
'-------------------------------------
Option Explicit
Response.Buffer = True

Dim strNav
Dim strPage
'-------------------------------------

strNav = request("nav")
If strNav = "" Then
  strNav = "navigator"
End If

'-------------------------------------
strNav = "lev_" & strNav & "ID"

strPage = request("id")
If strPage = "" Then
  strPage = "main"
End If

'--------------------------------------

Sub readPage(strPage)

  Dim fs,f,filename
  filename = server.mappath(strPage & ".asp")
 
      Set fs = CreateObject("Scripting.FileSystemObject")
      If not fs.FileExists(filename) then
          response.write("<center><b><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p style='color:#FF0000'> Страницата која ја барате не е достапена во моментот. Можеби и е променето името или е избришана од серверот или е во изработка. Се извинуваме. </p><p style='color:#FF0000'>  The page cannot be found. The page you are looking for might have been removed, had its name changed, or is temporarily unavailable. </p><p style='color:#FF0000'>webmaster</p><center>")
          exit sub
      End If
      set f = fs.OpenTextFile(filename)
      response.write(f.ReadAll)
      f.Close
   Set f = nothing
      Set fs = nothing
End Sub
'--------------------------------------------------
%>

Hot to add another exp. strPage1 and id1 ?

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.