Code Coloring, ASP/VBScript, & CS5

My IT area has set up the web  server  to process all .HTM files as if they were .ASP. Subsequently, I  cannot  view my HTM files as they would appear if they were "true" ASP  files in  Dreamweaver CS5. I applied the changes described in TechNote  16410 to MMDocumentTypes.xml (removing the HTM extension from the winfileextension and macfileextension attirbutes of the HTML InternalType and adding the HTM extension to the winfileextension and macfileextension attirbutes of the ASP-VBScript InternalType). I moved HTM in Extensions.txt from the HTML Documents line to the Active Server Pages line and I removed the backup I had made of MMDocumentTypes.xml from the Adobe directory.
Based on another posting in this forum regarding code coloring, I added <%@LANGUAGE="VBSCRIPT"%> to the first line of my HTM (ASP) file.
No matter which file with the HTM extension I open in Dreamweaver, I get this message:
When  this happens also I need to terminate Dreamweaver using Windows XP's  Task Manager.  File > Close, application "close" [X] button, Ctrl+Q  and Alt+F4 do not  work.

As far as I know (could be wrong here), DW does not allow you to alter the behavior of htm(l) files. The technote is aimed at adding new file types that DW doesn't already recognize.

Similar Messages

  • Code Coloring

    My network administrator informed me that he would like to
    use all .htm file extensions on our site, and that he will program
    the server to render PHP tags within the .htm files for our
    web-apps.
    However, for development work I would still like to apply the
    PHP code-coloring within files that have .htm extension. Can I tell
    Dreamweaver to do this?
    Thanks!

    What was old is new again!
    Similar to the original poster, my IT area has set up the web server to process all .HTM files as if they were .ASP. Subsequently, I cannot view my HTM files as they would appear if they were "true" ASP files in Dreamweaver CS5. I applied the changes described in TechNote 16410 to MMDocumentTypes.xml (removing the HTM extension from the winfileextension and macfileextension attirbutes of the HTML InternalType and adding the HTM extension to the winfileextension and macfileextension attirbutes of the ASP-VBScript InternalType). I moved HTM in Extensions.txt from the HTML Documents line to Active Server Pages line and I removed the backup I had made of MMDocumentTypes.xml from the Adobe directory.
    Based on another posting in this forum regarding code coloring, I added <%@LANGUAGE="VBSCRIPT"%> to the first line of my HTM (ASP) file.
    No matter which file with the HTM extension I open in Dreamweaver, I get this message:
    I also need to terminate Dreamweaver using Windows XP's Task Manager. File > Close, the application close button, Ctrl+Q and Alt+F4 do not work.

  • Need to update a record on page load. How? (ASP/VBScript)

    The standard Update Record behavior requires a form on the page, plus a recordset to identify the value to be updated. In my scenario, the value for the record to be updated is already in the URL as the ID. I just don't know how to write it myself and Dreamweaver won't do this.
    The page I want to do this on is a record detail page, so there is already a record ID already present in the querystring. The record is new until a user views it, and what I need is something that just writes a simple value to one field in the table for the record being viewed. This is it in a nutshell:
    Using the value from the ID in the URL querystring, update the "viewed" field in a specific table with the value of "y".
    This would be the first operation as the page loads and then the page would load and show the data that it already does.
    I'd be happy with raw code is someone is generous enough to provide that, or perhaps some instructional help on reverse engineering the standard update record code generated by Dreamweaver. Or, if you know of any extensions designed to do this - I'd be interested in that too!
    My app I'm working on is in ASP/vbscript.
    Subject line edited by moderator to indicate server model

    Good point! I wasn't thinking about how that would make the app vulnerable to sql injection.
    The function I want to perform is similar to how an email changes from unread to read when you view it. I simple want the records being viewed to take on the status of being read or "viewed". Perhaps I'm going about this in the wrong way, but I've been planning to use a database field as the indicator of whether a record has a viewed status or not. Null value is new, and a value of "y" (yes) meaning the value is viewed/read.
    If you have a better recommendation, I'm all ears.

  • Code Coloring does not stick

    The changes I make in the Preferences section under Code Coloring do not always stick. I even tried replacing the Colors.xml file with someone else's theme. That does not come through. I replaced it both under my Configuration/Code Coloring folder  which appears under Applications as well as my User folder.
    I don't understand why some of the changes take and others not. Should there not be an easier way to do this??
    Any clues as to how I can make the new (external) Colors.xml stick would be appreciated.

    CS5. And I should say, the instructions given on the Adobe site  on how to swap out the colors.xml file indicate a folder that doesn't exist. There is no Preferences folder. It's Configurations.

  • Document type in Code Coloring  preference

    Edit, preference in Dreamweaver MX 2004, under code coloring
    category, I can't see the various document type in Machine A but I
    can see ASP JavaScript, PHP, Cold Fusion etc in Machine B, do
    anybody know why????Configuration problem???
    How do I get it back????Pls help

    It sounds like you may have some missing or corrupted
    Configuration
    files in the CodeColoring and DocumentType sub-folders.
    Start by disabling any extensions that you have installed.
    After that,
    the easiest solution is probably to uninstall/reinstall.
    HTH,
    Randy
    > Edit, preference in Dreamweaver MX 2004, under code
    coloring category, I can't
    > see the various document type in Machine A but I can see
    ASP JavaScript, PHP,
    > Cold Fusion etc in Machine B, do anybody know
    why????Configuration problem???

  • Dreamweaver CS4 Code Coloring not updating

    Hi,
    Recently, when trying to edit the code coloring in Dreamweaver CS4, it will not update the colors after I hit "ok." Anyone know why this might be? I've tried restarting Dreamweaver, clearing the cache, and even seeing if it would work on new documents but none of that helps. Thanks for any help!
    - Matt

    Are you sure you're changing colors for you open document ?
    I have issue with coloring too, but I thought after all this time CS5 will finally have Save option for exactly this issue. So I don't have to repeat this over and over again.

  • ASP VBScript

    I created a simple update ASP VBscript form in Dreamweaver 8.
    However the connection to my DB no longer works if someone enters
    quotation marks. The quotation marks appear in my DB however the
    connection is then broken, I think this is because quotation marks
    and apostrophes are classed as special characters. Can anyone
    advise me how I can modify my code to replace them with double
    apostrophes?
    Dim MM_editCmd
    Set MM_editCmd = Server.CreateObject ("ADODB.Command")
    MM_editCmd.ActiveConnection = MM_connDB_STRING
    MM_editCmd.CommandText = "UPDATE connDB SET title1 = ?,
    body1 = ?, title2 = ?, body2 = ?, title3 = ?, body3 = ? WHERE body1
    = ?"
    MM_editCmd.Prepared = true
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param1", 202, 1, 50,
    Request.Form("textfield"))
    MM_editCmd.Execute
    MM_editCmd.ActiveConnection.Close

    > Are developers "jumping ship" when it comes to ASP
    VBScript development?
    I love the VB.
    Dan Smith > adobe community expert
    http://www.dsmith.tv

  • Sass scss code coloring and code hinting

    Cannot get Dreamweaver to treat .scss files as style sheets with CSS code coloring and code hinting?
    Have tried editing the MMDocumentTypes.xml file located in the /Applications/Adobe Dreamweaver CS5.5/Configuration/DocumentTypes folder, as recommended by other users having this issue.  Still no code coloring or code hinting.  I suspect there may be multiple MMDocumentTypes.xml files and I need to find the correct one?
    O.S.:  OSX Mavericks
    Dreamweaver:  CS5.5

    kms5038 wrote:
    > I no longer have code coloring or code hints working on
    Dreamweaver. I checked
    > the preferences and everything is still set the same but
    whenever I open an
    > existing document it will not give me the code coloring
    or code hints. I still
    > get it when I open a new doc but nothing else. Any ideas
    on how to fix this?
    It sounds like DW does not recognize the file type of your
    page. What is
    the file extension?
    Randy

  • Simple call to stored function from asp (vbscript) adodb

    please let me know if this question would be better suited to another forum.
    i am simply attempting to call an oracle stored function that returns a varchar2 from an asp vbscript page using adodb. i have calling of stored procedures working fine.
    attempting to call the function with the following code:
    set sp_aprvd_cr = Server.CreateObject("ADODB.Command")
    sp_aprvd_cr.ActiveConnection = MM_MHR_CONN_STR_STRING
    sp_aprvd_cr.CommandType = 4
    sp_aprvd_cr.CommandTimeout = 0
    sp_aprvd_cr.Prepared = true
    sp_aprvd_cr.CommandText = "PMS.sp_hpmsq054_aprvd_cr"
    sp_aprvd_cr.Parameters.Append sp_aprvd_cr.CreateParameter("IP_PMSPT_ID", 200, 1,10,sp_aprvd_cr__P_PMSPT_ID)
    sp_aprvd_cr.Parameters.Append sp_aprvd_cr.CreateParameter("return_param", adVarchar, adParamOutput)
    set rst_aprvd_cr = sp_aprvd_cr.Execute
    suspect that preparing the return code is where i am having troubles.
    any examples or assistance would be greatly appreciated.
    thanks in advance.

    Return value from stored function must be the first parameter in the parameters collection.
    So, try this instead,
    sp_aprvd_cr.Parameters.Append sp_aprvd_cr.CreateParameter("return_param", adVarchar, adParamOutput)
    sp_aprvd_cr.Parameters.Append sp_aprvd_cr.CreateParameter("IP_PMSPT_ID", 200, 1,10,sp_aprvd_cr__P_PMSPT_ID)Cheers,
    NH

  • Sample code in ASP to connect SAP?

    Hello,
    Can Anyone give me ASP(VBScript) sample code to connect to R/3?
    Not Visual basic!
    I appreciate that

    Hi Durairaj,
    Ignore the previous question.
    I read some doucument. I was able to pass parameters how to do it.
    Could you check the following which added to the example?
    set myfunc = fns.add("TABLE_ENTRIES_GET_VIA_RFC")
    Dim t_parameter1
    Dim t_parameter2
    Dim t_parameter3
    set t_parameter1 = myfunc.exports("LANGU")
    set t_parameter2 = myfunc.exports("ONLY")
    set t_parameter3 = myfunc.exports("TABNAME")
    t_parameter1.Value = "E"
    t_parameter2.Value = ""
    t_parameter3.Value = "USR01"
    result = myfunc.Call
    the_exception = myfunc.exception
    dim users
    if result = true then
       set NAMETAB = myfunc.Tables("NAMETAB")
       set TABENTRY = myfunc.Tables("TABENTRY")
       response.write "<table border=1>"
       response.write "<tr>"
       for each row in NAMETAB.rows
          response.write "<td>"
          response.write trim(row("FIELDNAME"))
       next
       response.write "</td>"
       response.write "</tr>"
       response.write "</table>"
    Question about set myfunc = fns.add("TABLE_ENTRIES_GET_VIA_RFC")
    When I use this TABLE_ENTRIES_GET_VIA_RFC, I can get some data from table R/3 System. But I couldn't get data from tables.
    For example, table USR01(works fine), USR02 - not work
    is there any range or limitation to use TABLE_ENTRIES_GET_VIA_RFC?
    Thanks
    --Austin
    Thanks

  • DW cs4 -  something changed - font code colors

    Hello
    [history ] I have been using DW CS 4 for 16 months. 
    [Question ] Sometime in last two months the font code colors changed and are mostly blue.  I would like the code to have the variety of colors that it once had which made reading code possible.   When I've checked my code preferences I don't see anything which has changed.
    About the same time I have been getting an error message (maybe a red herring to code color issue)
    "this page contains some SWF that may not work properly in the most recent versions of Internet Explorer.
    Dreamweaver cannot convert them to the new SWF markups. Please delete each of them and insert again."
    However pages from same site that don't have SWF error are not having homogenous code color.
    Elsewhere when I searched the error code someone suggested looking at extensions.  The only extension I remember specifically adding to dreamweaver in last few months is
    Adobe :   HTML5 hinting for CS3 & CS4
    Thanks,
    Casey
    [additional info]
    Windows Vista™ Home Premium (6.0, Build 6002) Service Pack 2 (6002.vistasp2_gdr.100608-0458)
               Language: English (Regional Setting: English)
    System Manufacturer: Dell Inc.
           System Model: Inspiron 1525                  
                   BIOS: Phoenix ROM BIOS PLUS Version 1.10 A16
              Processor: Intel(R) Core(TM)2 Duo CPU     T5750  @ 2.00GHz (2 CPUs), ~2.0GHz
                 Memory: 3062MB RAM
              Page File: 2057MB used, 4264MB available
            Windows Dir: C:\Windows
        DirectX Version: DirectX 11

    @ Nancy  Thanks.  Generally yes.   Transitional xhtml 1.0.
    However  --- 
    DW cs4 code color still is off.
    It seems that a possible cause was not the swf issue (as I first asked about) but something with ASP coding.
    I say this because when I remove the asp comment at the start of a product page (examples below) .   Yet  I don't know asp or DW library well enough to conclusively say this is it or just a hack.  I'd prefer best practice option.
    'default to order tab or not
    or
    I edit it to a string
    'default to order tab or not' 
    then rest of page is colored perfectly.
    three  examples (bigger below) --- as it is DW CS4 not rendering code colors correctly... then #2 removing 'default to order tab or not   then #3
    Original -- 
    Modified option 1 --  removed  asp comment  (which I'd prefer to keep)
    modified option 2 (  asp commented  closed with  '  but this may not be best practice....  will check coding forum for that... for now I'm seeing if DW is messing up something it should be.... )

  • Update multiple records with Update Command Dreamweaver 8.0.2 - ASP VBScript

    Dreamweaver 8.0.2 - Language ASP – VBScript
    I’m trying to update more than one record at a time
    using checkboxes. I’ve successfully done this numerous times
    prior to Dreamweaver 8.0.2.
    Before Dreamweaver 8.0.2, I would create a page with a
    recordset, form, checkbox and repeat region and pass the ID to
    another page containing an ‘Update Command’. The code
    on the Update page looked similar to the following:
    <%
    if(Request.QueryString("MemberID") <> "") then
    spMemberApproving__MMColParam = Request.QueryString("MemberID")
    %>
    <%
    set spMemberApproving = Server.CreateObject("ADODB.Command")
    spMemberApproving.ActiveConnection =
    MM_connIssuesManager_STRING
    spMemberApproving.CommandText = "UPDATE tblMembers SET
    MemberApproved = 1 WHERE MemberID IN (" +
    Replace(spMemberApproving__MMColParam, "'", "''") + ")"
    spMemberApproving.CommandType = 1
    spMemberApproving.CommandTimeout = 0
    spMemberApproving.Prepared = true
    spMemberApproving.Execute()
    Response.Redirect("default.asp")
    %>
    However, in Dreamweaver 8.0.2 when you fill out the Update
    Command dialog box, Dreamweaver asks you to provide the
    ‘Type’ and ‘Size’ for the variables (see:
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=4e6b330a
    That being said and done, the code on the Update page looks
    like the following:
    <%
    ' IIf implementation
    Function MM_IIf(condition, ifTrue, ifFalse)
    If condition = "" Then
    MM_IIf = ifFalse
    Else
    MM_IIf = ifTrue
    End If
    End Function
    %>
    <%
    if(Request.QueryString("MemberID") <> "") then
    spMemberApproving__MMColParam = Request.QueryString("MemberID")
    %>
    <%
    Set spMemberApproving = Server.CreateObject ("ADODB.Command")
    spMemberApproving.ActiveConnection =
    MM_connIssuesManager_STRING
    spMemberApproving.CommandText = "UPDATE tblMembers SET
    MemberApproved = 1 WHERE MemberID IN (?) "
    spMemberApproving.Parameters.Append
    spMemberApproving.CreateParameter("MMColParam", 202, 1, 10,
    MM_IIF(Request.QueryString("MemberID"),
    Request.QueryString("MemberID"), spMemberApproving__MMColParam
    spMemberApproving.CommandType = 1
    spMemberApproving.CommandTimeout = 0
    spMemberApproving.Prepared = true
    spMemberApproving.Execute()
    Response.Redirect("default.asp")
    %>
    The Update Command works perfectly when only 1 record is
    being updated. However, when I try to update more than one record I
    get the following error:
    Error Type:
    ADODB.Command (0x800A0D5D)
    Application uses a value of the wrong type for the current
    operation.
    /issues_manager/admin/members_approving.asp, line 27
    Can anyone help me out?

    Yes, this is a bug in Dreamweaver 8.0.2. The only workaround
    is to stay with
    8.0.1 or to hand-code the query. Adobe removed most of the
    useful ways to
    use Commands and Recordsets in 8.0.2 and limited it to basic
    queries.
    Tom Muck
    co-author Dreamweaver MX 2004: The Complete Reference
    http://www.tom-muck.com/
    Cartweaver Development Team
    http://www.cartweaver.com
    Extending Knowledge Daily
    http://www.communitymx.com/
    "Button1" <[email protected]> wrote in message
    news:[email protected]...
    > Dreamweaver 8.0.2 - Language ASP ? VBScript
    >
    > I?m trying to update more than one record at a time
    using checkboxes.
    > I?ve
    > successfully done this numerous times prior to
    Dreamweaver 8.0.2.
    >
    > Before Dreamweaver 8.0.2, I would create a page with a
    recordset, form,
    > checkbox and repeat region and pass the ID to another
    page containing an
    > ?Update Command?. The code on the Update page looked
    similar to the
    > following:
    >
    > <%
    > if(Request.QueryString("MemberID") <> "") then
    > spMemberApproving__MMColParam =
    > Request.QueryString("MemberID")
    > %>
    >
    > <%
    >
    > set spMemberApproving =
    Server.CreateObject("ADODB.Command")
    > spMemberApproving.ActiveConnection =
    MM_connIssuesManager_STRING
    > spMemberApproving.CommandText = "UPDATE tblMembers SET
    MemberApproved = 1
    > WHERE MemberID IN (" +
    Replace(spMemberApproving__MMColParam, "'", "''") +
    > ")"
    > spMemberApproving.CommandType = 1
    > spMemberApproving.CommandTimeout = 0
    > spMemberApproving.Prepared = true
    > spMemberApproving.Execute()
    >
    > Response.Redirect("default.asp")
    > %>
    >
    > However, in Dreamweaver 8.0.2 when you fill out the
    Update Command dialog
    > box,
    > Dreamweaver asks you to provide the ?Type? and ?Size?
    for the variables
    > (see:
    >
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=4e6b330a
    >
    >
    >
    > That being said and done, the code on the Update page
    looks like the
    > following:
    >
    > <%
    > ' IIf implementation
    > Function MM_IIf(condition, ifTrue, ifFalse)
    > If condition = "" Then
    > MM_IIf = ifFalse
    > Else
    > MM_IIf = ifTrue
    > End If
    > End Function
    > %>
    >
    > <%
    > if(Request.QueryString("MemberID") <> "") then
    > spMemberApproving__MMColParam =
    > Request.QueryString("MemberID")
    > %>
    > <%
    >
    > Set spMemberApproving = Server.CreateObject
    ("ADODB.Command")
    > spMemberApproving.ActiveConnection =
    MM_connIssuesManager_STRING
    > spMemberApproving.CommandText = "UPDATE tblMembers SET
    MemberApproved = 1
    > WHERE MemberID IN (?) "
    > spMemberApproving.Parameters.Append
    > spMemberApproving.CreateParameter("MMColParam", 202, 1,
    10,
    > MM_IIF(Request.QueryString("MemberID"),
    Request.QueryString("MemberID"),
    > spMemberApproving__MMColParam & ""))
    > spMemberApproving.CommandType = 1
    > spMemberApproving.CommandTimeout = 0
    > spMemberApproving.Prepared = true
    > spMemberApproving.Execute()
    >
    > Response.Redirect("default.asp")
    > %>
    >
    >
    > The Update Command works perfectly when only 1 record is
    being updated.
    > However, when I try to update more than one record I get
    the following
    > error:
    >
    > Error Type:
    > ADODB.Command (0x800A0D5D)
    > Application uses a value of the wrong type for the
    current operation.
    > /issues_manager/admin/members_approving.asp, line 27
    >
    >
    > Can anyone help me out?
    >
    >

  • ASP VBScript producing Dreamweaver Javascript Error Messages

    Do almost anything in Dreamweaver CS4 with ASP VBScript seems to produce javascript error messages.  can be a blank page, and you try to create a recordset... error box, error box, and then the code gets inserted but is not in the server behaviors panel.  i'm usually working in php and have never had this problem, but it's quite annoying to work that way... being forced to hand code a lot simple because dreamweaver isn't working correctly.
    warning one:
    the following javascript error(s) occurred:
    warning two:
    while executing findServerbehaviors in Recordset.htm, a JavaScript error occurred
    deleted .dat file and restarted dreamweaver, per some discussions via google... did nothing.

    anyone know how to fix this issue with dreamweaver?

  • Copy code color scheme

    I've got code coloring schemes for several document types
    tweaked until they're just what I like. How do I copy one (say, my
    .asp scheme) to a different document type? What about if the
    document type (.inc) is one that's not on the list at
    Preferences|Code Coloring?

    > I've got code coloring schemes for several document
    types tweaked until they're
    > just what I like. How do I copy one (say, my .asp
    scheme) to a different
    > document type?
    There's no way to do that through the DW UI, but you can do
    it by
    manually editing some Configuration files.
    Start by reading this TechNote:
    http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_16420
    This describes the difference between the "application" and
    "user"
    Configuration folders and where to find them on your system.
    It's best
    to edit files in the user config folder, not the *parallel*
    app config
    folder. You may have to first copy a file from the app config
    folder to
    the user config folder before you can edit it.
    Now, take a look at the Configuration/CodeColoring/Colors.xml
    file. You
    should find a <colorGroup> tag with one of the ASP
    doctypes listed with
    your changes. You can either add the new doctypes to the
    list, or just
    remove the doctypes attributes so that the colors apply to
    all doctypes.
    > What about if the document type (.inc) is one that's
    not on the
    > list at Preferences|Code Coloring?
    This TechNote explains how to add new file extensions:
    http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_16410
    HTH,
    Randy

  • How to Save/Export Code Coloring?

    I upgraded to CS5.5 and lost all code coloring, I wonder why there isn't any Save or Export function to support this?
    Do you have any idea how difficult it is to re-do this ? what if something happens with the Dreamweaver and you can't backup this... do it all over again....

    Which version did you upgrade from? and which operating system?
    Code coloring is controlled by a file called Colors.xml which you can copy and paste into the CS5.5 config folder
    The paths to the xml file are listed here (depending on your operating system and which version you have upgraded from)
    http://psdtowp.net/dreamweaver/dark-coding-colorization-for-dreamweaver/

Maybe you are looking for

  • Need inputs to develop a scenario?

    Hello All, My requirement is like this. Iam picking text file from one bank system and placing the file at the client system at work folder.i have not used IR part as no mapping required just to pick the text file and place at the work folder. one ab

  • Safari crashes 100% of the time - msjhaffey

    As requested on another thread, I'm reposting this. Please note that I experience the same problem when I log in with another userid. I now have 100% consistent Safari crashes on my system since I rebooted a few minutes ago. A reboot on my iMac is ra

  • How do I create  a PDF using Acrobat 7.0 in Windows 8 from a Visio drawing on a 64-bit system

    I used to be able to create a PDF using Acrobat 7.0 from a Visio drawing in XP. Now I'm running a 64-bit system, no Adobe printer can be installed, and it is unsupported.  Help?

  • Regarding 'Direct Path Read' waits

    As we all know, direct path read waits is a new feature in Oracle 11g. From Oracle Documents or others' articles, when it is full table scan, direct path read occured. But why it occured?  I don't know clearly. Below is Oracle Document description: h

  • Translation Pattern not working

    Hi, i got a wierd issue. we have 2 TP, one 8122575 (has a full DDI coming in chelmsford) and one 8151198 (has a full DDI coming in stafford) chelsmford and stafford are 2 different locations. the partition/css are the same for both TP. the Called Par