![]() |
#1 | ||
![]() Join Date: Sep 2008
Posts: 3
|
![]() hi all
I have a problem ... and hope to find the solution firstly ... I design asp vbscript pages by dreamweaver mx 2004 when I insert in my pages static elements like text and images then preview it ... it works and all right but if I insert database elements in my page ... then preview it .. browser show me this message Quote:
Quote:
or you can see the picture ![]() I tried many databases ... all times have same results to know : my OS is XP sp2 I installed IIS MDAC DREAMWEAVER MX 2004 |
||
![]() |
![]() |
![]() |
#2 |
![]() Join Date: Jun 2008
Location: Buffalo
Posts: 198
|
![]() So what is it that you want exactly? Do you want to know how to set up a DSN? What kind of database do you have? Access, Mysql..??? I bet there are a bunch different ones. You need to give us more information on what you want to do. Oh and welcome to the forum
|
![]() |
![]() |
![]() |
#3 |
![]() Join Date: Sep 2008
Posts: 3
|
![]() I already know how to set up a DSN ... I make a DSN connection to MS ACCESS database ... and when I use this connection in dreamweaver mx 2004 to insert fields in my page ... this problem starting as the image
can anybody explain me where's the problem ? |
![]() |
![]() |
![]() |
#4 |
![]() Join Date: Jun 2008
Location: Buffalo
Posts: 198
|
![]() code for the connection you are making please
|
![]() |
![]() |
![]() |
#5 | |
![]() Join Date: Sep 2008
Posts: 3
|
![]() Hi ... first, I want to say thanks
second, I do not use any code .. just design by dreamweaver but I will show the code of a page and the error message that display when I want to preview it in my browser the code of the page Code:
<<A href="mailto:%@LANGUAGE="VBSCRIPT">%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%> <!--#include file="Connections/pein.asp" --> <% Dim Recordset1 Dim Recordset1_numRows Set Recordset1 = Server.CreateObject("ADODB.Recordset") Recordset1.ActiveConnection = MM_pein_STRING Recordset1.Source = "SELECT * FROM Employees" Recordset1.CursorType = 0 Recordset1.CursorLocation = 2 Recordset1.LockType = 1 Recordset1.Open() 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>ألسلام عليكم </p> <p><%=(Recordset1.Fields.Item("EmployeeID").Value)%></p> <p><%=(Recordset1.Fields.Item("FirstName").Value)%></p> <p> <%=(Recordset1.Fields.Item("LastName").Value)%></p> <p> </p> <p> </p> <p> </p> <p> </p> </body> </html> <% Recordset1.Close() Set Recordset1 = Nothing %> Quote:
this image can help you to view the code ![]() Last edited by prince_bakora; 09-13-2008 at 11:19 PM.. |
|
![]() |
![]() |
![]() |
#6 |
![]() Join Date: Jun 2008
Location: Buffalo
Posts: 198
|
![]() there is something wrong with the connection. Are you able to view your data when you use dreamweaver to set up the connection? Like when you test it out does the table in the pop up box display your information in the sql table? The connection looks right and other then you missing a few links like
[code] Dim rsDevice_cmd[code] |
![]() |
![]() |
![]() |
#7 |
![]() Join Date: Dec 2009
Posts: 2
|
![]() Hi Prince,
I'm having the same issues. The database info shows up sometimes, but usually not. Did you find out what this problem was? Thanks. |
![]() |
![]() |
![]() |
#8 |
![]() Join Date: Jan 2006
Location: Toronto-Canada
Posts: 444
|
![]() Is your IIS setup to serve ASP files?
Does your database have the proper permissions?
__________________
J. DW | FW | HTML | CSS | ASP | some PHP | Windows | Ubuntu |
![]() |
![]() |
![]() |
#9 |
![]() Join Date: Dec 2009
Posts: 2
|
![]() Yes. Actually, I finally got evey piece of security turned off and it now works on my pc, but when I upload it to the web it doesn't work. I think I've got everything pathed right so now am at a loss...
|
![]() |
![]() |
![]() |
#10 |
![]() Join Date: Jun 2010
Posts: 4
|
![]() I was having the same problem with the sever 500 errors so what I did was call my hosting service and made sure I was on the correct server type to read MS Access databases. Then I set up the DSN on the server, had to set up the database connection (using the database window with server behaviors). I had to use the custom connection string (this can be found on your hosting site (absolute path)). Once I had a connection to the database I added another server behavior to login users based on name and password. Everything works now. If your personal computer isn't your hosting/server computer you will not be able to use the DSN (standard) you'll need to get the custom string).
I hope this helped. I've only got as far as loging in users I am still trying to figure out how they can update they display on the page. |
![]() |
![]() |
![]() |
Thread Tools | |
Display Modes | |
|
|