Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 8th, 2005, 08:58 PM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 240
Thanks: 0
Thanked 1 Time in 1 Post
Default Why is it that the page cannot be displayed?

I get:
Quote:
quote:
 The page cannot be displayed
There is a problem with the page you are trying to reach and it cannot be displayed.

--------------------------------------------------------------------------------

Please try the following:

Open the k.domaindlx.com home page, and then look for links to the information you want.
Click the Refresh button, or try again later.

Click Search to look for information on the Internet.
You can also see a list of related sites.




HTTP 500 - Internal server error
Internet Explorer
Code:
<%@ LANGUAGE="VBSCRIPT" %>


<%
if isAdmin then

    set outpostDB = Server.CreateObject("ADODB.Connection")
Private Function GetConnectionString()
    GetConnectionString =   "Driver={Microsoft Access Driver (*.mdb)};" & _
                "DBQ=" & Server.MapPath("hebrewbible") & ";" & _
                "UID=;PWD=;"
End Function
    outpostDB = GetConnectionString()

    set linkSet = Server.CreateObject("ADODB.RecordSet")
    linkSet.Open "select * from links order by new_id desc", outpostDB, adOpenStatic, adLockOptimistic, adCmdText
    linkSet.MoveFirst
    if linkSet.EOF then
        p_new_id = 1
    else
        p_new_id = linkSet("new_id") + 1
    end if

    p_new_id_in = Request.querystring("p_new_id")
    if p_new_id_in <> "" then
        linkSet.Find "new_id = " & p_new_id_in
    end if
    if p_new_id_in = "" or linkSet.EOF then
        p_new_recordType = ""
        p_new_book_spoke = ""
        p_new_chapter_spoke = ""
        p_new_verse_spoke = ""
        p_new_book = ""
        p_new_chapter = ""
        p_new_verse = ""
        p_new_text_data = ""
        p_new_gemetria = ""

    else
        p_new_id = p_new_id_in
        p_new_recordType = linkSet("new_recordType")
        p_new_book_spoke = linkSet("new_book_spoke")
        p_new_chapter_spoke = linkSet("new_chapter_spoke")
        p_new_verse_spoke = linkSet("new_verse_spoke")
        p_new_book = linkSet("new_book")
        p_new_chapter = linkSet("new_chapter")
        p_new_verse = linkSet("new_verse")
        p_new_text_data = linkSet("new_text_data")
        p_new_gemetria = linkSet("new_gemetria")
        p_existing = p_new_id_in
    end if

    linkSet.Close
    set linkSet = Nothing
%>
    <CENTER>
    <FORM ACTION="edit_links_rec_action.asp" METHOD="post">
    <INPUT TYPE="hidden" NAME="p_existing" "
        VALUE="<%=p_existing%>">
    <h2>Edit Link</h2>
    <TABLE>
    <TR>
        <TD>Link ID</TD>
        <TD>
            <INPUT TYPE="hidden" NAME="p_new_id" VALUE="<%= p_new_id %>">
            <%= p_new_id %>
        </TD>
    </TR>
<%'    <TR>
'        <TD>Link Name</TD>
'        <TD><INPUT TYPE="text" NAME="p_name" SIZE="25" 
'               VALUE="<%=p_new_name%>">
'    </TR>
'    <TR>
'        <TD>Link Description</TD>
'        <TD><INPUT TYPE="text" NAME="p_desc" SIZE="50" 
'               VALUE="<%=p_new_desc%>" maxlength=MAXLENGTH="255">
'    </TR>
'    <TR>
'        <TD>Link URL:  http://</TD>
'        <TD><INPUT TYPE="text" NAME="p_url" SIZE="50" 
'                VALUE="<%=p_new_url%>" maxlength=MAXLENGTH="100">
'    </TR>
%>
    </TABLE>

    <INPUT TYPE="submit">

    </form>
    </CENTER>
<%
    outpostDB.Close
    set outpostDB = Nothing
else

    Response.Write "You do not have access to this page."

end if
%>
</BODY>
</HTML>
Martial Law 9/11 Rise of the Police State is now available! Visit our Martial Law movie section for complete info (click here), or order now by clicking the button below or by calling 888-253-3139
http://www.infowars.com/martial_law_911.htm
 
Old April 9th, 2005, 10:50 AM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 303
Thanks: 0
Thanked 0 Times in 0 Posts
Default

First of all Change your browser settings
In Internet Explorer
Go to Tools-->Options-->Advanced-->uncheck show friendly HTTP error messages checkbox



 
Old April 10th, 2005, 08:17 AM
Authorized User
 
Join Date: Sep 2004
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Are you sure that the ASP is running on your server? you need to make sure that you have the server fully configured to allow asp scripts etc... Look in IIS to see that its config correctly. IF it is try a script that you know that works, summit simple like HELLO world etc etc

DJWright





Similar Threads
Thread Thread Starter Forum Replies Last Post
Page cannot be displayed. Voltron ASP.NET 2.0 Basics 0 October 22nd, 2006 04:20 PM
The page cannot be displayed malachany Dreamweaver (all versions) 10 December 12th, 2004 02:36 PM
the page cannot be displayed aspweb BOOK: Beginning ASP.NET 1.0 1 October 20th, 2003 07:41 PM
"Page cannot be displayed" delcyan Classic ASP Basics 6 June 22nd, 2003 02:58 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.