View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

while executing onClick in WA AppBuilder.htm

Thread began 9/17/2009 7:53 pm by fred306789 | Last modified 9/21/2009 4:07 pm by fred306789 | 2382 views | 10 replies

fred306789

Thank you for your response, however I do not have control over the server. I have Virtual hosting account from Go-daddy and no control on the settings.

So i found one of the treads here in this forum stating to try just a record set which reads data from the Access database. I did that ( code below ) and still the same problem?

This is very strange because I have another hosting account Identical to this one and loaded an e commerce shopping on that account and that one works right out of the box with no problem.

The connection string I use is this: sDSN = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("/access_db101/**********************.mdb").

The connection string for the one I have problem with is: MM_Con_STRING = sDSN = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("/access_db101/************.mdb") with a dim declaration of Dim MM_Con_String

Here is the Recordset code I used: Note I connect within Dreamweaver fine when I test the connection, however; I get the 500 server error when I load this page in the browser.
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!--#include file="Connections/Con_Con.asp" -->
<%
Dim Recordset1
Dim Recordset1_cmd
Dim Recordset1_numRows

Set Recordset1_cmd = Server.CreateObject ("ADODB.Command")
Recordset1_cmd.ActiveConnection = MM_email_Con_STRING
Recordset1_cmd.CommandText = "SELECT * FROM Mail"
Recordset1_cmd.Prepared = true

Set Recordset1 = Recordset1_cmd.Execute
Recordset1_numRows = 0
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>

<body>
<p><%=(Recordset1.Fields.Item("Email").Value)%>
</p>
<p><%=(Recordset1.Fields.Item("DateTime").Value)%></p>
<p><%=(Recordset1.Fields.Item("FirstName").Value)%>
<%=(Recordset1.Fields.Item("LastName").Value)%></p>
<p>
<%=(Recordset1.Fields.Item("PasswordEnc").Value)%></p>
</body>
</html>
<%
Recordset1.Close()
Set Recordset1 = Nothing
%>

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...