DW CS3 vs DW8 Recordset code.

I have recently loaded DW CS3 and find that if I edit a
recordset it replaces the code, it generated by Dreamweaver 8 with
new code that does not work. The new code will only allow the
display of each field once, if I then attempt to display it again
in the page there is a null value.
The code below is for a page using DW 8 record set. (I have
removed much that should be there normally to keep the debug
simple)
<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="Connections/test.asp" -->
<%
Dim faqs
Dim faqs_numRows
Set faqs = Server.CreateObject("ADODB.Recordset")
faqs.ActiveConnection = MM_test_STRING
faqs.Source = "SELECT * FROM faq ORDER BY Popularity DESC"
faqs.CursorType = 2
faqs.CursorLocation = 2
faqs.LockType = 3
faqs.Open()
faqs_numRows = 0
%>
<html>
<head>
</head>
<body>
<p><%=(faqs.Fields.Item("Question").Value)%> /
<%=(faqs.Fields.Item("Popularity").Value)%></p>
<p><%=(faqs.Fields.Item("Question").Value)%></p>
</body>
</html>
<%
faqs.Close()
Set faqs = Nothing
%>
This page shows the faq question followed by a forward slash
and its' popularity and then shows the question again on a second
line.
The code below is for a page using DW CS3 record set.
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!--#include file="Connections/test.asp" -->
<%
Dim faqs
Dim faqs_cmd
Dim faqs_numRows
Set faqs_cmd = Server.CreateObject ("ADODB.Command")
faqs_cmd.ActiveConnection = MM_test_STRING
faqs_cmd.CommandText = "SELECT * FROM faq ORDER BY Popularity
DESC"
faqs_cmd.Prepared = true
Set faqs = faqs_cmd.Execute
faqs_numRows = 0
%>
<html>
<head>
</head>
<body>
<p><%=(faqs.Fields.Item("Question").Value)%> /
<%=(faqs.Fields.Item("Popularity").Value)%></p>
<p><%=(faqs.Fields.Item("Question").Value)%></p>
</body>
</html>
<%
faqs.Close()
Set faqs = Nothing
%>
Despite the body content being identical when I view the page
the second question is missing.
They are on the same XP Pro system/site using the same Access
database.
Can anyone spot the error please?

DW8 used ADODB.Recordset and set the CursorType = 2
http://www.w3schools.com/ado/prop_rs_cursortype.asp
adOpenDynamic 2 Uses a dynamic cursor. Additions, changes,
and deletions by
other users are visible, and all types of movement through
the Recordset are
allowed, except for bookmarks, if the provider doesn't
support them.
In other words you could go through the recordset any way
that you needed
to.
DW CS3 is using the ADODB.Command
http://msdn2.microsoft.com/en-us/library/ms808194.aspx
The returned Recordset object is always a read-only,
forward-only cursor. If
you need a Recordset object with more functionality, first
create a
Recordset object with the desired property settings, then use
the Recordset
object's Open method to execute the query and return the
desired cursor
type.
Not sure if this will work:
http://www.sitepoint.com/forums/showthread.php?t=439942
try adding this to your page:
faqs_cmd.ActiveConnection.CursorType = 2
http://msdn2.microsoft.com/en-us/library/ms675544(VS.85).aspx
Ken Ford
Adobe Community Expert - Dreamweaver
Fordwebs, LLC
http://www.fordwebs.com
"Badg Champion" <[email protected]> wrote in
message
news:[email protected]...
>I have recently loaded DW CS3 and find that if I edit a
recordset it
>replaces
> the code, it generated by Dreamweaver 8 with new code
that does not work.
> The
> new code will only allow the display of each field once,
if I then attempt
> to
> display it again in the page there is a null value.
>
> The code below is for a page using DW 8 record set. (I
have removed much
> that
> should be there normally to keep the debug simple)
>
> <%@LANGUAGE="VBSCRIPT"%>
> <!--#include file="Connections/test.asp" -->
> <%
> Dim faqs
> Dim faqs_numRows
>
> Set faqs = Server.CreateObject("ADODB.Recordset")
> faqs.ActiveConnection = MM_test_STRING
> faqs.Source = "SELECT * FROM faq ORDER BY Popularity
DESC"
> faqs.CursorType = 2
> faqs.CursorLocation = 2
> faqs.LockType = 3
> faqs.Open()
>
> faqs_numRows = 0
> %>
> <html>
> <head>
> </head>
> <body>
> <p><%=(faqs.Fields.Item("Question").Value)%>
>
<%=(faqs.Fields.Item("Popularity").Value)%></p>
>
<p><%=(faqs.Fields.Item("Question").Value)%></p>
> </body>
> </html>
> <%
> faqs.Close()
> Set faqs = Nothing
> %>
>
> This page shows the faq question followed by a forward
slash and its'
> popularity and then shows the question again on a second
line.
>
> The code below is for a page using DW CS3 record set.
>
> <%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
> <!--#include file="Connections/test.asp" -->
> <%
> Dim faqs
> Dim faqs_cmd
> Dim faqs_numRows
>
> Set faqs_cmd = Server.CreateObject ("ADODB.Command")
> faqs_cmd.ActiveConnection = MM_test_STRING
> faqs_cmd.CommandText = "SELECT * FROM faq ORDER BY
Popularity DESC"
> faqs_cmd.Prepared = true
>
> Set faqs = faqs_cmd.Execute
> faqs_numRows = 0
> %>
> <html>
> <head>
> </head>
> <body>
> <p><%=(faqs.Fields.Item("Question").Value)%>
>
<%=(faqs.Fields.Item("Popularity").Value)%></p>
>
<p><%=(faqs.Fields.Item("Question").Value)%></p>
> </body>
> </html>
> <%
> faqs.Close()
> Set faqs = Nothing
> %>
>
> Despite the body content being identical when I view the
page the second
> question is missing.
>
> They are on the same XP Pro system/site using the same
Access database.
>
> Can anyone spot the error please?
>

Similar Messages

  • New Recordset Code in CS3?

    I have some ASP (VBScript) pages where I use a "sort"
    feature. The idea is
    that when a user clicks on a column heading, this value
    becomes a string in
    the address bar. Then, I setup the recordset to ORDER BY
    varsort (where
    varsort = request.querystring("sort")).
    In previous versions of DW this worked fine, but not with
    CS3. The code for
    the recordsets created with CS3 appears to be different. Why
    would the new
    code "break" my setup (it's not recognizing any sorts)?
    Sort page with old DW:
    http://www.presentationsdirect.com/Laminators/search_results.asp?lamtype=pouch
    Sort page with new DW:
    http://www.presentationsdirect.com/Laminators/Supplies/search_results_rolls.asp?width=25
    Brandon
    http://www.presentationsdirect.com

    Thanks for the helpful info.
    Brandon
    "danilocelic AdobeCommunityExpert"
    <[email protected]> wrote in
    message news:f7ll5h$1u9$[email protected]..
    > Nancy - Adobe Comm. Expert wrote:
    >> The code for
    >>> the recordsets created with CS3 appears to be
    different. Why would the
    >>> new code "break" my setup (it's not recognizing
    any sorts)?
    >>
    >>
    >> Recordset code was not updated in CS3, but rather in
    8.02 to deter SQL
    >> injection attacks. Quickly remake the recordset with
    the new version and
    >> you should be good to go.
    >
    > Nancy,
    >
    > Unfortunately, what the OP is asking for isn't possible
    with the "new
    > version" of recordset, as it assumes that all parameters
    within the SQL
    > are column value parameters, and dynamic SQL generation
    is no longer
    > supported. This has caused a number of folks )including
    Tom Muck quite
    > vociferously) to complain about the lack of versatility
    of the new
    > recordset code.
    >
    >
    >
    > Brandon, What you'll need to do is to hand edit the
    recordset after you've
    > applied it to the page. I've not tried this particular
    use case recently,
    > but it is possible that after editing that DW will no
    longer recognize
    > that the recordset is on the page.
    >
    > FWIW: You should never directly use a querystring
    parameter in your code,
    > you should always "clean" it first. IIRC The old style
    of recordsets did a
    > replace on the value replacing all single quotes with
    doubled single
    > quotes. A better way may be to have some code that
    checks for the value of
    > the querystring parameter and if it matches one of your
    column you can
    > sort on, then use a string of your own making to use
    within the SQL.
    >
    >
    > --
    > Danilo Celic
    > | Extending Knowledge Daily :
    http://CommunityMX.com/
    > | Adobe Community Expert

  • DW CS4 keeps duplicating recordset code after opening/editing a recordset

    Hi all,
    I'm wasting lots of time editing and re-editing recordsets in DW CS4 using the PHP server model.
    After opening a recordset an making changes, DW will break the recordset code duplicating it.
    This appen even if I open and suddendly close the recordset without making any changes.
    This is a critical bug.
    Is there a fix/update/workaround?
    At this time the solution is to delete the recordset in the code view (paying attention to not delete something useful) and to re-create it by scratch.
    This is not a sample to feature the screamed adobe productivity applications.
    Any suggestion will be really appreciated.
    TIA
    tony

    This forum is for Extension Authoring, so you'll probably get a better response from the DW Application Development forum.
    Try uninstalling all of your extensions to see if that fixes the problem. If so, then just install extensions 1 at a time as you need them to help isolate the problem. Next, I'd try deleting your entire User Configuration folder. Otherwise, uninstalling and reinstalling DW may be the only way to fix it.
    HTH,
    Randy

  • Does CS3 Overwrite DW8 on Trial Download

    Another basic question. Tried to get answer in FAQs for Mac
    OS X but cannot find.
    I use original DW8 version. I wish to download the Trial
    version of CS3.
    Does the CS3 downloading and then trialling overwrite the
    DW8? If I do not go to paid version and the 30 days expire do I
    then have problems with original DW8?
    If I go to full paid version of CS3 will it work with all the
    files made on DW8 without problems?
    Thankx for any input.

    Malcolm _ wrote:
    > On Tue, 19 Aug 2008 18:49:14 +0000 (UTC), "Geraldb3"
    > <[email protected]> wrote:
    >
    >> Another basic question. Tried to get answer in FAQs
    for Mac OS X but cannot
    >> find.
    >>
    >> I use original DW8 version. I wish to download the
    Trial version of CS3.
    >>
    >> Does the CS3 downloading and then trialling
    overwrite the DW8? If I do not go
    >> to paid version and the 30 days expire do I then
    have problems with original
    >> DW8?
    >>
    > I use PC, but I'm 95% certain same applies to the Mac.
    But you can
    > safely install CS3 - and it won't touch Dw8, in fact it
    will take most
    > of the config files and you will be able to work on your
    sites without
    > re-defining sites etc.
    >
    >
    >> If I go to full paid version of CS3 will it work
    with all the files made on
    >> DW8 without problems?
    >>
    >
    >
    >
    > Yes - only one point to note - is that CS3 is rather
    stricter than
    > Dw8 in terms of accepting bad code - so if it grumbles
    about some of
    > your code - it is trying to help you get it right. But I
    didn't have
    > any serious issues.
    >
    > I have Dw2004, Dw8, Dw Cs3 and CS4 beta - and they all
    work without
    > interfering with each other.
    >
    To add to Malcolm's response, I would back up DW8 site
    definitions
    first, just in case.
    --Bonnie

  • Help with Flash CS3 Particle Effect Tutorial Code

    I did the tutorial from http://www.schoolofflash.com/2008/03/flash-cs3-particle-effect/. I used a star to replace the circle. Here's my code:
    var starsArray:Array = new Array();
    var maxStarss:Number = 8;
    function addStars(e:Event)
        var stars:Stars = new Stars();
        stars.x = stage.stageWidth/2;
        stars.y = stage.stageHeight/2;
        stars.alpha = Math.random() * .8 + .2;
        stars.scaleX = stars.scaleY = Math.random() * .8 + .2;
        stars.xMovement = Math.random() * 10 - 5;
        stars.yMovement = Math.random() * 10 - 5;
        starsArray.push(stars);
        addChild(stars);
        stars.cacheAsBitmap = true;
        if (starsArray.length >= maxStarss)
            removeChild(starsArray.shift());
        stars.addEventListener(Event.ENTER_FRAME,moveStars);
    function moveStars(e:Event)
        e.currentTarget.x += e.currentTarget.xMovement;
        e.currentTarget.y += e.currentTarget.yMovement;
    var myTimer:Timer = new Timer(50);
    myTimer.addEventListener(TimerEvent.TIMER, addStars);
    myTimer.start();
    This time, I'm trying to make the stars shrink and transparent as they move away from the point. So I coded it like this:
    import flash.events.Event;
    var starsArray:Array = new Array();
    var maxStarss:Number = 8;
    function addStars(e:Event)
        var stars:Stars = new Stars();
        stars.x = stage.stageWidth/2;
        stars.y = stage.stageHeight/2;
        stars.alpha = Math.random() * .8 + .2;
        stars.scaleX = stars.scaleY = Math.random() * .8 + .2;
        stars.xMovement = Math.random() * 10 - 5;
        stars.yMovement = Math.random() * 10 - 5;
        starsArray.push(stars);
        addChild(stars);
        stars.cacheAsBitmap = true;
        if (starsArray.length >= maxStarss)
            removeChild(starsArray.shift());
        stars.addEventListener(Event.ENTER_FRAME,moveStars);
        stars.addEventListener(Event.ENTER_FRAME,animeStars);
    function animeStars(e:Event)
        trace(this.starsArray);
        this.scaleX-=0.01;
        this.scaleY-=0.01;
        this.alpha-=0.01;
        if (this.alpha<=0) // remove this object from stage
    function moveStars(e:Event)
        e.currentTarget.x += e.currentTarget.xMovement;
        e.currentTarget.y += e.currentTarget.yMovement;
    var myTimer:Timer = new Timer(50);
    myTimer.addEventListener(TimerEvent.TIMER, addStars, animeStars);
    myTimer.start();
    I couldn't make it work. All I got was an error message saying "
    1084: Syntax error: expecting identifier before rightbrace.
    Help?

    It is because of this line of code at the end
    myTimer.addEventListener(TimerEvent.TIMER, addStars, animeStars);
    if you read the documentation on addeventlistener it looks for these type of arguments to be passed
    addEventListener(type:String, listener:Function, useCapture:Boolean);
    animeStars is not a boolean it is a function. Since you already have animeStars in your addStars function you can exclude it in the last event listerer. try this:
    myTimer.addEventListener(TimerEvent.TIMER, addStars);

  • CS3 - Viewing HTML in code window, when selecting  a image in design window on split mode wont work .

    Does any 1 know how i can enable my split to be able to
    select a image from the design mode window with mouse, and have it
    highlight in the code veiw.
    I have just upgraded to CS3 and in DW MX2004 i could select
    HTML from the code view , and attribute would highlight in the
    design view, and visa versa with the design mode, ..
    But atm all i can do is highlight and right click the text
    or image in the design view window when in split mode, to find the
    HTML for that selected, and it wont allow me to view the selected
    text or image in the design window, when i highlight the HTML ... i
    could do it in MX2004 , and its annoying me that i can't do this in
    CS3 ..
    Any hints on how to fix this would be very much appreciated
    Thanks in Advance

    ChAoTiC,
    That works for me on WinXP. After selecting your image in
    Design View,
    try hitting Ctrl+` on Win or Cmd+` on Mac to switch focus to
    the Code
    Pane. Does that work?
    HTH,
    Randy
    > Does any 1 know how i can enable my split to be able to
    select a image from the
    > design mode window with mouse, and have it highlight in
    the code veiw.
    >
    > I have just upgraded to CS3 and in DW MX2004 i could
    select HTML from the
    > code view , and attribute would highlight in the design
    view, and visa versa
    > with the design mode, ..
    >
    > But atm all i can do is highlight and right click the
    text or image in the
    > design view window when in split mode, to find the HTML
    for that selected, and
    > it wont allow me to view the selected text or image in
    the design window, when
    > i highlight the HTML ... i could do it in MX2004 , and
    its annoying me that i
    > can't do this in CS3 ..

  • Do  new  FLASH CS3  support s AS2  codes ?

    Hi folks . . .
    When we use AS3 development tools , will old flash codes (
    AS1 and AS2 ) work correctly after this ?
    And can we use AS2 codes by flash cs3 tools ?
    Do ADOBE support AS1 and AS2 codes for a long time ??

    Yes. Flash CS3 is pretty much Flash 8 with new features and
    support for what
    it supported before (AS1 and AS2) and more (now additionally
    AS3)
    "firatadobeturk" <[email protected]> wrote
    in message
    news:f2l4f9$9i3$[email protected]..
    > Hi folks . . .
    > When we use AS3 development tools , Do old flash codes (
    AS1 and AS2 )
    > will work correctly after this ?
    > For a long time , does ADOBE supports , AS1 and AS2
    codes?
    >

  • Recordset Code Help

    Hi Guys and Gals,
    I need a bit of help. I have the following code. What I need
    to do is to replace www.coke.com with the web address that is
    stored in the recordset. I cannot manage to figure out a way to do
    this.
    Anyone able to help.........
    Cheers
    James

    <div align="right"><font face="Verdana, Arial,
    Helvetica, sans-serif"
    size="1"><a
    href="<%=(Recordset1.Fields.Item('Website').Value)%>"><font
    color="#FFFFFF">..</font></a></font></div>
    By the way, don't use <font> tags - use CSS instead.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Superkopite" <[email protected]> wrote in
    message
    news:gl7b1b$mu7$[email protected]..
    > Hi Guys and Gals,
    >
    > I need a bit of help. I have the following code. What I
    need to do is to
    > replace www.coke.com with the web address that is stored
    in the recordset.
    > I
    > cannot manage to figure out a way to do this.
    >
    > Anyone able to help.........
    >
    > Cheers
    >
    > James
    >
    >
    > <div align="right"><font face="Verdana, Arial,
    Helvetica, sans-serif"
    > size="1"><a
    > href="
    http://www.coke.com"><%=(Recordset1.Fields.Item("Website").Value)%><font
    >
    color="#FFFFFF">..</font></a></font></div>
    >

  • DW8 Recordset behavior returns empty TEXT type values

    So I have DW8 generating a recordset (ASP/VBScript from SQL
    Server) using
    just the basic behavior. If I don't set any criteria and it
    retrieves all
    records, it shows all data for each record, including the
    values contained
    within the "Text" type field.
    If I specify a unique identifier value (to retrieve only one
    specific
    record), the DW recordset shows all details EXCEPT the text
    found in the
    "text" type field. Doing a TEST of the recordset this way
    shows "undefined"
    in that field, and of course, on the page, its blank. I could
    workaround
    this by using a "varchar" type or some other, but I'm then
    more limited on
    amount of text alotted.
    Anyone run into this before and have an idea on what I need
    to do so that
    the text blob is pulled into the unique recordset like it
    does for all of
    the other field types?

    Don't use SELECT *.
    List the columns you're retrieving. Put all TEXT, NTEXT, and
    IMAGE columns
    at the end of your select list. If you have more than one,
    list them from
    left to right in the same order in which they're defined in
    your table.
    If you're using SQL Server 2005, use VARCHAR(MAX) instead of
    TEXT.
    "_adrian" <test@ test.com> wrote in message
    news:ekinf4$71$[email protected]..
    > So I have DW8 generating a recordset (ASP/VBScript from
    SQL Server) using
    > just the basic behavior. If I don't set any criteria and
    it retrieves all
    > records, it shows all data for each record, including
    the values contained
    > within the "Text" type field.
    >
    > If I specify a unique identifier value (to retrieve only
    one specific
    > record), the DW recordset shows all details EXCEPT the
    text found in the
    > "text" type field. Doing a TEST of the recordset this
    way shows
    > "undefined" in that field, and of course, on the page,
    its blank. I could
    > workaround this by using a "varchar" type or some other,
    but I'm then more
    > limited on amount of text alotted.
    >
    > Anyone run into this before and have an idea on what I
    need to do so that
    > the text blob is pulled into the unique recordset like
    it does for all of
    > the other field types?
    >

  • DW 8 Patch - Recordset Code Change

    Hi All...
    I've just updated my DW 8.0 to 8.0.2 due to the recent SQL Injection attacks.
    Some of my recordsets are complex and i'm having trouble updating one in particilar.
    I've posted the old code and the new code below.
    I can see that the problem is caused in the SQL Select Statement code that the new patch creates   'Where RelatedProductID=?"
    I'm hoping someone can offer a solution before i pull all my hair out :-)
    Fingers crossed and thanks in advance
    Andy
    Here is the SQL Statement i put in to DW - problem highlighted in red
    SELECT RelatedProducts.ProductID, Products.Product  FROM RelatedProducts INNER JOIN Products ON RelatedProducts.ProductID = Products.ProductID  where RelatedProductID=param  UNION  SELECT RelatedProducts.RelatedProductID, Products.Product
    FROM RelatedProducts INNER JOIN Products ON RelatedProducts.RelatedProductID = Products.ProductID
    WHERE RelatedProducts.ProductID=param
    ORDER BY Product
    and the page code generated:
    <%
    Dim RelatedProductsRS__param
    RelatedProductsRS__param = "1"
    If (ProductID   <> "") Then
      RelatedProductsRS__param = ProductID 
    End If
    %>
    <%
    Dim RelatedProductsRS
    Dim RelatedProductsRS_cmd
    Dim RelatedProductsRS_numRows
    Set RelatedProductsRS_cmd = Server.CreateObject ("ADODB.Command")
    RelatedProductsRS_cmd.ActiveConnection = MM_my_STRING
    RelatedProductsRS_cmd.CommandText = "SELECT RelatedProducts.ProductID, Products.Product  FROM RelatedProducts INNER JOIN Products ON RelatedProducts.ProductID = Products.ProductID  where RelatedProductID=? UNION  SELECT RelatedProducts.RelatedProductID, Products.Product FROM RelatedProducts INNER JOIN Products ON RelatedProducts.RelatedProductID = Products.ProductID WHERE RelatedProducts.ProductID=param ORDER BY Product"
    RelatedProductsRS_cmd.Prepared = true
    RelatedProductsRS_cmd.Parameters.Append RelatedProductsRS_cmd.CreateParameter("param1", 5, 1, -1, RelatedProductsRS__param) ' adDouble
    Set RelatedProductsRS = RelatedProductsRS_cmd.Execute
    RelatedProductsRS_numRows = 0
    %>
    Old SQL statement before the patch - old code highlighted in red
    <%
    Dim RelatedProductsRS__param1
    RelatedProductsRS__param1 = "1"
    If (ProductID  <> "") Then
      RelatedProductsRS__param1 = ProductID
    End If
    %>
    <%
    Dim RelatedProductsRS
    Dim RelatedProductsRS_numRows
    Set RelatedProductsRS = Server.CreateObject("ADODB.Recordset")
    RelatedProductsRS.ActiveConnection = MM_my_STRING
    RelatedProductsRS.Source = "SELECT RelatedProducts.ProductID, Products.Product  FROM RelatedProducts INNER JOIN Products ON RelatedProducts.ProductID = Products.ProductID  where RelatedProductID=" + Replace(RelatedProductsRS__param1, "'", "''") + "  UNION  SELECT RelatedProducts.RelatedProductID, Products.Product  FROM RelatedProducts INNER JOIN Products ON RelatedProducts.RelatedProductID = Products.ProductID  WHERE RelatedProducts.ProductID=" + Replace(RelatedProductsRS__param1, "'", "''") + "  ORDER BY Product"
    RelatedProductsRS.CursorType = 0
    RelatedProductsRS.CursorLocation = 2
    RelatedProductsRS.LockType = 1
    RelatedProductsRS.Open()
    RelatedProductsRS_numRows = 0
    %>

    Hi bregent
    Thank you for responding to my post.
    With a fresh pair of eyes on me this morning, i managed to sort the problem out.
    I simply removed the param's in the DW Recordset Bindings and re-added them using a separate param for each instance the param was called in the SQL Statement.
    All working fine now :-D
    I have a new problem on the product insert page - please see my latest post if you could possibly help!
    Thanks Again
    So now the generated code looks like:
    <%
    Dim RelatedProductsRS__param
    RelatedProductsRS__param = "1"
    If (ProductID   <> "") Then
      RelatedProductsRS__param = ProductID 
    End If
    %>
    <%
    Dim RelatedProductsRS__param2
    RelatedProductsRS__param2 = "1"
    If (ProductID <> "") Then
      RelatedProductsRS__param2 = ProductID
    End If
    %>
    <%
    Dim RelatedProductsRS
    Dim RelatedProductsRS_cmd
    Dim RelatedProductsRS_numRows
    Set RelatedProductsRS_cmd = Server.CreateObject ("ADODB.Command")
    RelatedProductsRS_cmd.ActiveConnection = MM_myconnection_STRING
    RelatedProductsRS_cmd.CommandText = "SELECT RelatedProducts.ProductID, Products.Product  FROM RelatedProducts INNER JOIN Products ON RelatedProducts.ProductID = Products.ProductID  where RelatedProductID=? UNION  SELECT RelatedProducts.RelatedProductID, Products.Product FROM RelatedProducts INNER JOIN Products ON RelatedProducts.RelatedProductID = Products.ProductID WHERE RelatedProducts.ProductID=? ORDER BY Product"
    RelatedProductsRS_cmd.Prepared = true
    RelatedProductsRS_cmd.Parameters.Append RelatedProductsRS_cmd.CreateParameter("param1", 5, 1, -1, RelatedProductsRS__param) ' adDouble
    RelatedProductsRS_cmd.Parameters.Append RelatedProductsRS_cmd.CreateParameter("param2", 5, 1, -1, RelatedProductsRS__param2) ' adDouble
    Set RelatedProductsRS = RelatedProductsRS_cmd.Execute
    RelatedProductsRS_numRows = 0
    %>

  • Dreamweaver CS3- Add this button code help

    Hi, I have a problem in Dreamweaver CS3. The problem is that when I insert my add this button code, in to the codeing area, it does not work.
    When I open my page in chrome, it simply says 'more shraeing services'. I will copy the code, in to this discussion. I would be greaftful if someone
    can help me resolve this problem, so I can get the add this button to work on my site. The final bits of code are as follows-
    <!-- AddThis Button BEGIN -->
    <div class="addthis_toolbox addthis_default_style addthis_32x32_style">
    <a class="addthis_button_preferred_1"></a>
    <a class="addthis_button_preferred_2"></a>
    <a class="addthis_button_preferred_3"></a>
    <a class="addthis_button_preferred_4"></a>
    <a class="addthis_button_compact"></a>
    <a class="addthis_counter addthis_bubble_style"></a>
    </div>
    <script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script>
    <script type="text/javascript" src="http://s7.addthis.com/js/300/addthis_widget.js#pubid=ra-4dd57258352fac8e"></script>
    <!-- AddThis Button END -->
    <!-- Place this tag where you want the +1 button to render -->
    <g:plusone></g:plusone>
        </div>
       </form>
    <script type="text/javascript" src="http://www.google.com/jsapi"></script>
    <script type="text/javascript">google.load("elements", "1", {packages: "transliteration"});</script>
    <script type="text/javascript" src="http://www.google.com/cse/t13n?form=cse-search-box&t13n_langs=am%2Cel%2Cml%2Cpa%2Cta%2Car% 2Cgu%2Cmr%2Cru%2Cte%2Cti%2Csa%2Cne%2Chi%2Cbn%2Cen%2Ckn%2Cfa%2Csr%2Cur"></script>
    <script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&lang=en"></script>
    <script type="text/javascript" src="http://www.google.com/cse/query_renderer.js"></script>
    <div id="queries"></div>
    <script src="http://www.google.com/cse/api/partner-pub-5783950232732081/cse/4522012035/queries/js?oe=UT F-8&callback=(new+PopularQueryRenderer(document.getElementById(%22queries%22))).render"></script>
      </div>
      <div align="center"></div>
    </div>
    <script type="text/javascript">var addthis_config = {"data_track_clickback":true};</script>
    <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-4dd57258352fac8e"></script>
    <!-- AddThis Button END -->
    </div>
    <script type="text/javascript">
    <!--
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    //-->
    </script>
    </body>
    </html>
    Is there anything in this piece of code I should edit in order to make the add this button work? Many thanks

    A link to your page would be the best possible way to get help with this. 
    Code fragments don't tell the whole story.
    Nancy O.

  • DW8 all code went black and crashes when you type

    Well the message title about sums it up. ...
    I haven't used DW8 for a few months and today when I went to
    use it, all of the code for all pages i have designed is black.
    And, syntax coloring is on from the View menu! To top it off, when
    you go to type in the code, DW8 immediately crashes. I have never
    had this problem and have spent hundreds of hours on DW without
    this ever happening. This also happens if I start a new page??? I
    uninstalled and reinstalled and the same issue happened...
    I have a project to work on today so this is a major setback
    - any ideas???????

    This is what it looks like, and I have no idea how to fix it.

  • [JS] [CS3 onwards] Simplify some code

    Hi.
    I have been using a for loop to find a certain paragraoh by its style name for a while now, and I am wondering if I am using the best approach?
    I am using:
    for (x=0;x<=myStory.paragraphs.length-1;x++)
         if(myStory.paragraphs[x].appliedParagraphStyle.name == "SOS - Savings")
         code here...
    but wondering if I can use somethng like:
    mySavePrice = myStory.paragraphs.appliedParagraphStyle.name("SOS - Savings");
    Just a thought...
    Cheers
    Roy

    Roy,
    I sometimes use this approach to processing a story. Usually, I'll have a large switch that operates on the appliedParagraphStyle.name property. But, unfortunately, this:
    myStory = app.selection[0].parentStory;
    myPSnames = myStory.paragraphs.everyItem().appliedParagraphStyle.name;
    Doesn't work. So, instead, I use:
    myStory = app.selection[0].parentStory;
    myPstyles = myStory.paragraphs.everyItem().appliedParagraphStyle;
    for (var j = myPstyles.length - 1; j >= 0; j--) {
         switch (myPstyles[j].name) {
              case ...
              case ...
    etc.
    Dave

  • Photoshop CS3 MAC - Droplet Error code -43

    Hello all,
    We are a scanning bureau which processes a lot of images with Photoshop. We made a solution to execute tasks over Xgrid so that we can scale-up the capactiy unlimited. We use droplets to process these files by a set of specific actions. When we execute a task it happens really often that we receive an error which gives us really less information. My question is: is there anybody who can tell me what is wrong when you get the error code -43 after executing a droplet in combination with an image? See attached JPG image for the dialog as it appears. Any help would be really appreciated
    With Kind regards,
    Bram Groenendijk

    ZIPped file was a camera raw 8.4 installer i found from the web. necessary places are:

  • CS3 Removing Slashes In Code...

    We use custom tags in our ASP pages such as:
    <_content>
    </_content>
    But when I open the page in CS3 it removes the slash and
    appears as follows:
    <_content>
    <_content>
    Anybody know why this is happening or how it can be fixed?
    Thanks in advance...

    I am reposting this question (months later) in hopes that
    someone might have an answer, or at least can point me in the right
    direction. I am still having the following problem:
    We use custom tags in our ASP pages such as:
    <_content>
    </_content>
    But when I open the page in CS3 it removes the slash and
    appears as follows:
    <_content>
    <_content>
    Anybody know why this is happening or how it can be fixed?
    Thanks in advance...

Maybe you are looking for

  • Wondering if possible to use Windows XP SP1 with Boot Camp

    I just recently bought a mac a few days ago and i only have Windows XP SP1 cd. I was wondering if it was possible to run that instead of the Windows XP SP2 cd that it says in the requirements.

  • Not able to view Characteristic Hierarchy using Tcode KES3

    Hi everyone, I need to view the Characteristic Hierarchy using T-code KES3 in CO-PA. Ideally, once we are into KES3 screen, we need to select the characteristic and variant to display the hierarchy. But, when I select the characteristic and variant,

  • Can't rip CDs reliably in iTunes 10.5

    I have been experiencing problems ripping CDs on my iMac. Many CDs appear OK, but some have just absolutely dreadful distortion. I have tried using different Macs, and even switching to Windows. Once I've identified a CD which won't rip, the terrible

  • What version of java to use?

    Hi Im new at programming mobile phones, but by no means new to java and programming. I have been tasked with developing a program to a series of Nokia mobile phones and before i get into the thick of it, i just wanna ask all those in these forums; Wh

  • Changing Photobook Size

    I am using Photoshop Elements 9 and want to change the size of a previously created Photo Book from 8x8 to 12X12. Does anyone know how this can be done?