Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > Adobe Web Programming > Dreamweaver (all versions)
| Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Dreamweaver (all versions) 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
  #1 (permalink)  
Old March 17th, 2006, 04:11 PM
Registered User
 
Join Date: Mar 2006
Location: Richmond, BC, Canada.
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Dreamweaver - TheSoccerSite - Calculator.asp

I worked on the page of calculator.asp and uploaded this page to the browser and I got the message below. Can any one help?


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:

Click the Refresh button, or try again later.

Open the localhost home page, and then look for links to the information you want.
HTTP 500.100 - Internal Server Error - ASP error
Internet Information Services

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

Technical Information (for support personnel)

Error Type:
Microsoft VBScript compilation (0x800A03EE)
Expected ')'
/TheSoccerSite/Calculator.asp, line 9, column 26
Select Case Request.Form(1stOperator")
-------------------------^


Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)

Page:
GET /TheSoccerSite/Calculator.asp

Time:
March 17, 2006, 11:58:56 AM


More information:
Microsoft Support



  #2 (permalink)  
Old March 17th, 2006, 06:47 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi zhengfengyang,

You're missing a double quote, right before 1stOperator.

This:

Select Case Request.Form(1stOperator")

should be:

Select Case Request.Form("1stOperator")


HtH,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
  #3 (permalink)  
Old March 20th, 2006, 06:20 PM
Registered User
 
Join Date: Mar 2006
Location: Richmond, BC, Canada.
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you Imar. Great help!!!

Zheng

  #4 (permalink)  
Old March 20th, 2006, 06:35 PM
Registered User
 
Join Date: Mar 2006
Location: Richmond, BC, Canada.
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Imar:

The page shows as I follow your instruction. Yet, when I calculate on the page, the page returns as following:
-----------------------------------------------
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:

Click the Refresh button, or try again later.

Open the localhost home page, and then look for links to the information you want.
HTTP 500.100 - Internal Server Error - ASP error
Internet Information Services

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

Technical Information (for support personnel)

Error Type:
Microsoft VBScript runtime (0x800A000D)
Type mismatch: 'CDb1'
/TheSoccerSite/Calculator.asp, line 7


Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)

Page:
POST 63 bytes to /TheSoccerSite/Calculator.asp

POST Data:
textfield=3&1stOperator=%2B&textfield2=3&btnCalcul ate=Calculate

Time:
March 20, 2006, 2:30:18 PM


More information:
Microsoft Support



  #5 (permalink)  
Old March 20th, 2006, 08:51 PM
Registered User
 
Join Date: Mar 2006
Location: Richmond, BC, Canada.
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Also, After I created global.asa following the instruction, I got error message from opening home.asp. What was going wrong? Thanks.
-------------------------------------------------- global.asa page code:
<script language="vbscriipt" runat="server">
Sub Session_OnStart
    Session("StartTime") = Now()
End Sub
Sub Session_ONEnd

End Sub
</script>

----------------------------------------------Home page error message return:
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:

Click the Refresh button, or try again later.

Open the localhost home page, and then look for links to the information you want.
HTTP 500.100 - Internal Server Error - ASP error
Internet Information Services


Technical Information (for support personnel)

Error Type:
Active Server Pages, ASP 0129 (0x80004005)
The scripting language 'vbscriipt' is not found on the server.
/TheSoccerSite/global.asa, line 1


Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)

Page:
GET /TheSoccerSite/home.asp

Time:
March 20, 2006, 4:41:54 PM


More information:
Microsoft Support
-------------------------------------------home.asp page code as following:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<%
    If Trim(Request.Form("txtUserName")) <> "" Then
        Session("UserName") = Trim(Request.Form("txtUserName"))
    End If
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<title>GlobalSoccerEvents.com #8211; Your Source for Soccer Events Around the Globe</title>


<style type="text/css">
<!--
.style1 {
    font-size: 16px;
    font-weight: bold;
}
-->
</style>

<style type="text/css">
<!--
td {
    font-family: Arial, Helvetica, sans-serif;
    color: #000000;
}
a {
}
-->
</style>
</head>
<body>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><img src="images/logo.gif" /></td>
    <td><table border="0" align="right" cellpadding="0" cellspacing="0">
      <tr>
        <td><a href="home.asp" id="home">Home</a></td>
        <td>&nbsp;&nbsp;&nbsp;</td>
        <td><a href="events.asp" id="events">Events</a></td>
        <td>&nbsp;&nbsp;&nbsp;</td>
        <td><a href="mySite.asp" id="mysite">My Site</a></td>
      </tr>
    </table></td>
  </tr>
</table>
<br />
<script language="JavaScript" type="text/javascript">
    var sPageName = '<%=Request.ServerVariables("SCRIPT_NAME")%>';
    sPageName = sPageName.substr(sPageName.lastIndexOf('/') + 1 ).toLowerCase();
    sPageName = sPageName.substr(0, sPageName.lastIndexOf('.'));
    if (document.getElementById(sPageName))
    {
        document.getElementById(sPageName).style.fontWeigh t = 'Bold';
        document.getElementById(sPageName).style.fontSize = '14pt';
    }
</script>

<script language="javascript" type="text/javascript" >
    var sPageName = '<%=Request.ServerVariables("SCRIPT_NAME")%>';
    sPageName = sPageName.substr(sPageName.lastIndexof('/') _
                                                    + 1) .toLowerCase();
    sPageName = sPageName.substr(0, sPageName.lastIndexOf('.');
    if (document.getElementById(sPageName))
    {
        document.getElementById(sPageName) .style.fontWeight = 'bold';
        document.getElementById(sPageName) .style.fontsize = 14pt';
    }
 </script>

<table width="100%" border="0" cellpadding="0" cellspacing="0" >
  <tr>
    <td>
      <h2>Welcome to GlobalSoccerEvents.com</h2>
    </td>
  </tr>
  <tr>
    <td>
      <p>Your Source for Soccer Events Around the Globe.</p>
      <% If Session("UserName") = "" Then %>
      Please enter your name and hit the "Tell Us Your Name" button. <br>
      <form id="frmUserName" name="frmUserName" method="post" action="home.asp">
        <label>
        <input name="txtUserName" type="text" id="txtUserName" />
        </label>
                        <label>
                        <input name="btnSubmit" type="submit" id="btnSubmit" value="Tell Us Your Name" />
                        </label>
      </form>
      <% Else %>
      Welcome, <%= Session("UserName") %>
            You have been browsing this site since <%= Session(StartTime") %>
            which was <%= datediff("S", Session(StarTime"), Now()) %>
            Seconds ago
              <% End If %>
    </td>
  </tr>
  <tr>
    <td align="center"><br />
    <br />
    <br />
    <br />
    <br />

      Have difficulties? Contact the webmaster. </td>
  </tr>
</table>
</body>
</html>



  #6 (permalink)  
Old March 21st, 2006, 03:25 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

The first problem is a typo. It's not CDb1 with a one but CDbl with an L from doubLe.... So, CDb1 should be CDbl

The other problem is a type as well:

<script language="vbscriipt" runat="server">

What do you think that vbscriipt is?? ;) It should be vbscript, with a single i....

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use ASP in Dreamweaver nadia Dreamweaver (all versions) 1 October 19th, 2004 02:24 PM





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