Solved

Recordsets not recognized

Posted on 2003-12-01
9
380 Views
Last Modified: 2010-04-25
I am constantly having problems with Dreamweaver not recognizing recordsets that I have created.  

I create recordsets using the Bindings tab and they Test fine and show up in the Bindings window. However, when I try to create a Server Behavior (using the Plus sign in the Server Behavior tab), I occasionally get an error stating that I need to create a recordset.  This error happens just about every time I try to do an Update Record (yes, all my text boxes are assigned to fields) and sporatically when I try an Insert Record.

Has anyone else come across this? How can I fix this?

I am using DreamWeaver MX, version 6.1.

Here is a screenshot of an error I get. As you can see, it prompts for me to create a recordset even when one exists.
http://lennon.csufresno.edu/~bcs25/error.gif
and another one:
http://lennon.csufresno.edu/~bcs25/error2.gif
0
Comment
Question by:upplepop
9 Comments
 

Expert Comment

by:brisctt
ID: 9855378

What are you trying to develop in....ASP/MS Access or PHP/MySQL?

I've been using Dreamweaver MX for quite some time...mostly in PHP/MySQL.....I always create my recordsets in the server behaviors panel.  

0
 
LVL 4

Expert Comment

by:c_swanky
ID: 9857015
Please post your code... cannot see all of it in the screen shot.

0
 

Author Comment

by:upplepop
ID: 9868146
I am developing in ASP.  The recordsets are made in either the Bindings or Server Behaviors panels.

Here is my code from a relatively simple page. In this case, I try to make a dynamic table (using the button in the Application Panel) and get instructed to add a recordset.

<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!--#include file="Connections/MISDatabase.asp" -->
<%
Dim ActivityList
Dim ActivityList_numRows

Set ActivityList = Server.CreateObject("ADODB.Recordset")
ActivityList.ActiveConnection = MM_MISDatabase_STRING
ActivityList.Source = "SELECT * FROM Log"
ActivityList.CursorType = 0
ActivityList.CursorLocation = 2
ActivityList.LockType = 1
ActivityList.Open()

ActivityList_numRows = 0
%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#C0C0C0">
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#000000" class="border">
  <tr>
    <td bgcolor="#C0C0C0" class="page_head"><font size="2"><strong>Blank</strong></font></td>
  </tr>
  <tr>
    <td bgcolor="#DDDDDD" class="page_minor">&nbsp; </td>
  </tr>
</table>
</body>
</html>
<%
ActivityList.Close()
Set ActivityList = Nothing
%>
0
 
LVL 4

Expert Comment

by:c_swanky
ID: 9872704
What are some of the field names in the LOG table?

You are doing just about everything except displaying the recordset value, maybe that's why you are getting that notice.

See code below:  NOTICE the   <%Response.Write("Log_Id")%>   statement.  You will need to replace "Log_Id" with a valid field name from your database.



<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#000000" class="border">
  <tr>
    <td bgcolor="#C0C0C0" class="page_head"><font size="2"><strong>Blank</strong></font></td>
  </tr>
  <tr>
    <td bgcolor="#DDDDDD" class="page_minor"> <%Response.Write("Log_Id")%> </td>
  </tr>
</table>
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

Author Comment

by:upplepop
ID: 10023812
Log_Id is a field name from my database, so that's not the problem.
0
 

Author Comment

by:upplepop
ID: 10112343
Anyone else have any ideas? Otherwise, I'll ask to PAQ this thread.
0
 

Author Comment

by:upplepop
ID: 10160144
For anyone else who has this problem, I'll leave my workaround.

Shut down the program. Open it using the shortcut icon (not by opening a file). Close the blank document it creates and open the document you are working with. This usually resolves the problem.
0
 
LVL 2

Accepted Solution

by:
Lunchy earned 0 total points
ID: 10186093
PAQed, with points refunded (250)

Lunchy
Friendly Neighbourhood Community Support Admin
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

For those who don't know, Adobe Dreamweaver is a popular commercial web editor that enables you to design, build and manage complex websites. The editor is a WYSIWYG (What You See Is What You Get) web editor, which means that you can create your web…
I still run into .cgi files every now and then. In some instances, I actually prefer the simplicity of a .cgi script to other options. Since I use DreamWeaver extensively, what I needed was a way to open .cgi scripts in Dreamweaver. And I wanted to …
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now