Preview ASP in DW8

Okay. I'm at my wits end....I recently upgraded to DW8
(WinXP) and can't figure out my own site setup! I use a network
drive as my local and don't *think* I need a testing server. I
simply want to preview my asp pages in IE (7) and FF.
When I DON'T have a testing server setup my browser launches,
but puts
http:// in front of my network drive path (i.e.,
http://public/marketing/website/index.asp).
The address bar in the browser shows the correct path, but it's
trying to go "out" to a website, rather than an internal network
drive.
I've seen some other posts with similar problems, and have
tried everything I've seen in them. I'm obviously missing something
basic - so any help would be most appreciated.
Lara

If you wish to test ASP on a local machine, you will need to
set up a testing server for that. Are you using legacy ASP or
ASP.Net?

Similar Messages

  • Previewing IE in DW8 issue

    Dear Forum Community,
    I am using IE8 with Windows 7 and Dreamweaver 8.
    When I press the Preview/Debug in Browser button, I have the options to preview in Internet Explorer or Firefox.
    The Internet Explorer option is greyed out though, so does not work.  Firefox works fine.
    However, if I set IE as the Primary Browser and then press F12 it does work!
    Any suggestions why the Internet Explorer option is greyed out in the list and how to fix this welcome!
    Many thanks,
    Mike

    Could just be a feature of DW 8 that is incompatible with Windows 7 since IE8 was not available for testing at the time of DW8's release.  If it only works as default, I would leave it as default since Firefox seems to have no issue in either position.

  • Cannot preview ASP JavaScript database pages anymore

    I've lost my ability to preview my ASP JavaScript database
    pages on MX 2004. They upload fine, just can't preview them. Error
    ASP 0129 - The scripting language 'JAVASCRIPT' is not found on the
    server.
    I recently installed a trial version of DW CS4 on an external
    drive, but am now wondering if dll files were overwritten in the
    process that affected MX 2004. I've since uninstalled CS4 and
    cleaned up the registry, but the problem still exists.
    My other computer previews fine with same IIS settings and AV
    protection. So it’s something within DW on my computer that
    has a glitch and the only thing I can think of is the installation
    of CS4 jolted MX 2004 and now ASP JavaScript is not recognized.
    Is there a repair tool for Dreamweaver? If not, and I
    reinstall OVER the current installation of MX 2004, will I lose any
    settings, and will I have to reinstall updates and extensions? Any
    other suggestions are appreciated!

    I've lost my ability to preview my ASP JavaScript database
    pages on MX 2004. They upload fine, just can't preview them. Error
    ASP 0129 - The scripting language 'JAVASCRIPT' is not found on the
    server.
    I recently installed a trial version of DW CS4 on an external
    drive, but am now wondering if dll files were overwritten in the
    process that affected MX 2004. I've since uninstalled CS4 and
    cleaned up the registry, but the problem still exists.
    My other computer previews fine with same IIS settings and AV
    protection. So it’s something within DW on my computer that
    has a glitch and the only thing I can think of is the installation
    of CS4 jolted MX 2004 and now ASP JavaScript is not recognized.
    Is there a repair tool for Dreamweaver? If not, and I
    reinstall OVER the current installation of MX 2004, will I lose any
    settings, and will I have to reinstall updates and extensions? Any
    other suggestions are appreciated!

  • 'Preview in browser' DW8

    hanges to my pages look prior to uploading it to server the page/s  doesnt look as it should do. I'm a total novice really at this and so  not sure how to describe how the pages look but the text is there but  not in the positions it should be and the background colour is missing  and there is a small square in middle of the page which is actually the  back ground colour..odd?!
    I have added screenshots of the view when 'previewed in browser' with  DW8 and the actual webpage when accessed via internet exporer - latest  version.
    Yorkshire Carper
    PS Everything worked fine on my old xp pc. I have set up different  browsers like outlook express and firefox as options to choose when  clicking to 'preview in browser'..

    Don't worry they are a bit thick up in Yorkshire (either that or their brains are seized up by the snow) from a Southern Softie.
    Update:
    They do make a good cup of tea though and brew a nice pint of beer as well.

  • Pure ASP Upload help needed...

    Trying to create simple upload page...
    But nothing seems to be happening
    Can anyone offer suggestions on what to check?
    I created 2 pages...
    Page #1 = Simple form with 3 fields title, file upload and
    page
    Page #2 = simple thank you message to confirm upload
    Im sure its something simple... but when i click on Submit
    nothing happens..
    its like nothing is executing the upload...
    I have checked the permissions on the scriptslibrary, the
    upload folder
    where the files will be placed and they are set to same
    read/write/ execute
    Below is the code on the page with the upload option:
    <%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
    <!--#include virtual="/Connections/webuplo.asp" -->
    <!--#include virtual="/ScriptLibrary/incPU3Class.asp"
    -->
    <!--#include virtual="/ScriptLibrary/incPU3Utils.asp"
    -->
    <%
    '*** Pure ASP File Upload 3.0.9
    ' Process form form1
    Dim pau, DMX_uploadAction, UploadRequest, UploadQueryString,
    pau_thePath,
    pau_nameConflict, pau_saveWidth, pau_saveHeight
    Set pau = new PureUpload
    pau.ScriptLibrary = "/ScriptLibrary"
    pau.TimeOut = 500
    pau.ConflictHandling = "over"
    pau.StoreType = "path"
    pau.UploadFolder = """../vendor_compliance"""
    pau.Required = true
    pau.AllowedExtensions = "DOC,PDF" ' "custom"
    pau.ProcessUpload
    pau.SaveAll
    %>
    <%
    Dim MM_editAction
    MM_editAction = CStr(Request.ServerVariables("SCRIPT_NAME"))
    If (UploadQueryString <> "") Then
    MM_editAction = MM_editAction & "?" &
    Server.HTMLEncode(UploadQueryString)
    End If
    ' boolean to abort record edit
    Dim MM_abortEdit
    MM_abortEdit = false
    %>
    <%
    If (CStr(UploadFormRequest("MM_insert")) = "form1") Then
    If (Not MM_abortEdit) Then
    ' execute the insert
    Dim MM_editCmd
    Set MM_editCmd = Server.CreateObject ("ADODB.Command")
    MM_editCmd.ActiveConnection = MM_webuplo_STRING
    MM_editCmd.CommandText = "INSERT INTO dbo.tbl_docs
    (linktitle,
    uploadfile, displaypage) VALUES (?, ?, ?)"
    MM_editCmd.Prepared = true
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param1", 201,
    1, 50, UploadFormRequest("linktitle")) ' adLongVarChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param2", 201,
    1, 100, UploadFormRequest("uploadfile")) ' adLongVarChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param3", 201,
    1, 5, UploadFormRequest("displaypage")) ' adLongVarChar
    MM_editCmd.Execute
    MM_editCmd.ActiveConnection.Close
    ' append the query string to the redirect URL
    Dim MM_editRedirectUrl
    MM_editRedirectUrl = "/admin_new/insert_docu_com.asp"
    If (UploadQueryString <> "") Then
    If (InStr(1, MM_editRedirectUrl, "?", vbTextCompare) = 0)
    Then
    MM_editRedirectUrl = MM_editRedirectUrl & "?" &
    UploadQueryString
    Else
    MM_editRedirectUrl = MM_editRedirectUrl & "&" &
    UploadQueryString
    End If
    End If
    Response.Redirect(MM_editRedirectUrl)
    End If
    End If
    %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN"
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <title>Upload Documents</title>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <script
    type="text/javascript"><%=pau.generateScriptCode()%></script>
    <script src="/ScriptLibrary/incPU3.js"
    type="text/javascript"></script>
    </head>
    <body bgcolor="#FFFFFF">
    <form ACTION="<%=MM_editAction%>" METHOD="post"
    enctype="multipart/form-data" name="form1" id="form1"
    onsubmit="<%=pau.submitCode()%>;return
    document.MM_returnValue">
    <label>Title<input name="linktitle" type="text"
    id="linktitle" size="40"
    /></label>
    <br>
    <label>Upload<input name="uploadfile" type="file"
    id="uploadfile"
    onchange="<%=pau.validateCode()%>;return
    document.MM_returnValue" size="40"
    /></label>
    <br>
    <label>Display Page
    <select name="displaypage" id="displaypage">
    <option>Please select a Page</option>
    <option value="vc">Vendor Compliance</option>
    <option value="n">News</option>
    </select>
    </label>
    ( Select page to be displayed on ) <br>
    <input name="Submit" type="button" id="Submit"
    value="Upload" />
    <input type="hidden" name="MM_insert" value="form1">
    </form>
    </body>
    </html>
    ASP, SQL2005, DW8 VBScript

    Not sure what or why this is happening.. or if its now
    related to IE7,
    But after all the problems i had and corrected below.. i now
    have the same
    problem and this time all the code seems to look ok..
    All i did was add 4 more fields of data to be collected, made
    sure that the
    insert record behavior reflects the new fields and everything
    is ok.. but
    using IE7 when i complete the form and hit update, the page
    post back saying
    i have incomplete data and nothing is written to the
    database.
    ASP, SQL2005, DW8 VBScript
    "Daniel" <[email protected]> wrote in message
    news:[email protected]...
    >I really appreciate everyones help.. i went thru and
    compared line by line
    >with the one that worked and the one that wasnt and it
    was a simple code
    >error...
    >
    > On the page that works: this is how the submit was
    coded...
    > <input type="submit" name="Submit" value="Submit"
    />
    >
    > On the page that didnt work it was coded like this:
    > <input name="Submit" type="button" id="Submit"
    value="Upload" />
    >
    > Apparently there is an order to this.. i ordered
    everything the same and
    > it finally worked...
    >
    >
    > --
    > ASP, SQL2005, DW8 VBScript
    > "Daniel" <[email protected]> wrote in message
    > news:[email protected]...
    >> Trying to create simple upload page...
    >>
    >> But nothing seems to be happening
    >>
    >> Can anyone offer suggestions on what to check?
    >>
    >> I created 2 pages...
    >> Page #1 = Simple form with 3 fields title, file
    upload and page
    >> Page #2 = simple thank you message to confirm upload
    >>
    >> Im sure its something simple... but when i click on
    Submit nothing
    >> happens.. its like nothing is executing the
    upload...
    >> I have checked the permissions on the
    scriptslibrary, the upload folder
    >> where the files will be placed and they are set to
    same read/write/
    >> execute
    >>
    >> Below is the code on the page with the upload
    option:
    >>
    >> <%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
    >> <!--#include virtual="/Connections/webuplo.asp"
    -->
    >> <!--#include
    virtual="/ScriptLibrary/incPU3Class.asp" -->
    >> <!--#include
    virtual="/ScriptLibrary/incPU3Utils.asp" -->
    >> <%
    >> '*** Pure ASP File Upload 3.0.9
    >> ' Process form form1
    >> Dim pau, DMX_uploadAction, UploadRequest,
    UploadQueryString, pau_thePath,
    >> pau_nameConflict, pau_saveWidth, pau_saveHeight
    >> Set pau = new PureUpload
    >> pau.ScriptLibrary = "/ScriptLibrary"
    >> pau.TimeOut = 500
    >> pau.ConflictHandling = "over"
    >> pau.StoreType = "path"
    >> pau.UploadFolder = """../vendor_compliance"""
    >> pau.Required = true
    >> pau.AllowedExtensions = "DOC,PDF" ' "custom"
    >> pau.ProcessUpload
    >> pau.SaveAll
    >> %>
    >> <%
    >> Dim MM_editAction
    >> MM_editAction =
    CStr(Request.ServerVariables("SCRIPT_NAME"))
    >> If (UploadQueryString <> "") Then
    >> MM_editAction = MM_editAction & "?" &
    >> Server.HTMLEncode(UploadQueryString)
    >> End If
    >>
    >> ' boolean to abort record edit
    >> Dim MM_abortEdit
    >> MM_abortEdit = false
    >> %>
    >> <%
    >> If (CStr(UploadFormRequest("MM_insert")) = "form1")
    Then
    >> If (Not MM_abortEdit) Then
    >> ' execute the insert
    >> Dim MM_editCmd
    >>
    >> Set MM_editCmd = Server.CreateObject
    ("ADODB.Command")
    >> MM_editCmd.ActiveConnection = MM_webuplo_STRING
    >> MM_editCmd.CommandText = "INSERT INTO dbo.tbl_docs
    (linktitle,
    >> uploadfile, displaypage) VALUES (?, ?, ?)"
    >> MM_editCmd.Prepared = true
    >> MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param1", 201,
    >> 1, 50, UploadFormRequest("linktitle")) '
    adLongVarChar
    >> MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param2", 201,
    >> 1, 100, UploadFormRequest("uploadfile")) '
    adLongVarChar
    >> MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param3", 201,
    >> 1, 5, UploadFormRequest("displaypage")) '
    adLongVarChar
    >> MM_editCmd.Execute
    >> MM_editCmd.ActiveConnection.Close
    >>
    >> ' append the query string to the redirect URL
    >> Dim MM_editRedirectUrl
    >> MM_editRedirectUrl =
    "/admin_new/insert_docu_com.asp"
    >> If (UploadQueryString <> "") Then
    >> If (InStr(1, MM_editRedirectUrl, "?", vbTextCompare)
    = 0) Then
    >> MM_editRedirectUrl = MM_editRedirectUrl & "?"
    & UploadQueryString
    >> Else
    >> MM_editRedirectUrl = MM_editRedirectUrl &
    "&" & UploadQueryString
    >> End If
    >> End If
    >> Response.Redirect(MM_editRedirectUrl)
    >> End If
    >> End If
    >> %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN"
    >> "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    >> <html xmlns="
    http://www.w3.org/1999/xhtml">
    >> <head>
    >> <title>Upload Documents</title>
    >> <meta http-equiv="Content-Type"
    content="text/html; charset=iso-8859-1"
    >> />
    >> <script
    type="text/javascript"><%=pau.generateScriptCode()%></script>
    >> <script src="/ScriptLibrary/incPU3.js"
    type="text/javascript"></script>
    >> </head>
    >> <body bgcolor="#FFFFFF">
    >> <form ACTION="<%=MM_editAction%>"
    METHOD="post"
    >> enctype="multipart/form-data" name="form1"
    id="form1"
    >> onsubmit="<%=pau.submitCode()%>;return
    document.MM_returnValue">
    >> <label>Title<input name="linktitle"
    type="text" id="linktitle"
    >> size="40" /></label>
    >> <br>
    >> <label>Upload<input name="uploadfile"
    type="file" id="uploadfile"
    >> onchange="<%=pau.validateCode()%>;return
    document.MM_returnValue"
    >> size="40" /></label>
    >> <br>
    >> <label>Display Page
    >> <select name="displaypage" id="displaypage">
    >> <option>Please select a Page</option>
    >> <option value="vc">Vendor
    Compliance</option>
    >> <option value="n">News</option>
    >> </select>
    >> </label>
    >> ( Select page to be displayed on ) <br>
    >> <input name="Submit" type="button" id="Submit"
    value="Upload" />
    >> <input type="hidden" name="MM_insert"
    value="form1">
    >> </form>
    >> </body>
    >> </html>
    >>
    >> --
    >> ASP, SQL2005, DW8 VBScript
    >>
    >
    >

  • Database to ASP

    Hello,
    I am building a page with a stats bar which can be
    dynamically updated (this is the best method, as every page uses
    the same bar). There are some stats (such as an ASP countdown to a
    date) that I would really like to use, but when I put in the
    VBScript <%response.write(DateDiff("d", Now(), x))%> all that
    is posted on the page is what you see. For example, if I manually
    place the script into the page it returns a value of 15, but when
    it is dynamically placed in by the database I just get the script
    appearing. Is it possible to fix this? The point is to have as
    little intervention into the website as possible (such as creating
    application variables), I would like to add a number of different
    functions like this in the future. Thanks for your help,
    Jason Farneth
    Just to cover the ground - ASP VBScript, DW8, Access
    Database

    You can't store server-side code in the database. As you're
    seeing,
    anything from the database is treated as output. You'll have
    to use a
    client-side javascript instead because javascript IS output
    and isn't
    executed until the page is loaded by the client.
    "JFarneth" <[email protected]> wrote in
    message
    news:e2n06a$7h5$[email protected]..
    > Hello,
    > I put in the VBScript <%response.write(DateDiff("d",
    Now(), x))%> all that
    > is
    > posted on the page is what you see. For example, if I
    manually place the
    > script into the page it returns a value of 15, but when
    it is dynamically
    > placed in by the database I just get the script
    appearing.

  • Trying to configure test server settings in DW8 and get error

    I am trying to setup the test server settings so i can create
    some
    recordsets.. and everytime i complete the test server
    settings page i get a
    small box come up that says:
    Macromedia Dreamweaver
    ! No Error Occurred.
    OK
    thats it.. i hit ok and the settings are there, but i still
    cannot create
    recordset...
    ASP, SQL2005, DW8 VBScript

    I get below error when i try to create a domain from import a file option.
    PeopleSoft Import Application Server Configuration
    1) Import from file
    2) Import from application domain
    q) Quit
    Command to execute (1-2, q) : 1
    Enter full path to configuration file
    :E:\psoft\PT848_bkp\appserv\CRPROD1\psappsrv.cfg
    Enter domain name to create
    :CRPROD1
    Application Server domain CRPROD1 already exists...
    1) Replace existing domain
    2) Enter different domain name
    q) Quit
    Command to execute (1-2, q) : 2
    Enter different name for domain: CRPROD
    Merging old domain configuration file with new template file...
    source E:\psoft\PT848_bkp\appserv\CRPROD1\psappsrv.cfg
    template E:\psoft\PT848\appserv\large.cfx
    destination E:\psoft\PT848\appserv\CRPROD\psappsrv.cfg
    Creating domain folder CRPROD...
    Copy psappsrv.ubx to CRPROD\psappsrv.ubx failed!
    psappsrv.ubx
    and when i try to crearte a domain with " create a domain " option , i got below error message.
    PeopleSoft Application Server Administration
    1) Administer a domain
    2) Create a domain
    3) Delete a domain
    4) Import domain configuration
    q) Quit
    Command to execute (1-4, q) : 2
    Please enter name of domain to create :CRPROD1
    Configuration templates:
    1) developer
    2) large
    3) medium
    4) small
    Select config template number: 2
    Creating domain...
    Copying application server configuration files...
    Stripping Annotations...
    Copy psappsrv.ubx to CRPROD1\psappsrv.ubx failed!
    Copy psasnt.val to CRPROD1\psappsrv.val failed!
    Copy psappsrv.psx to CRPROD1\psappsrv.psx failed!
    Copying Jolt repository file...
    Copy jrepository to CRPROD1\ failed!
    Domain created.
    Would you like to configure this domain now? (y/n) [y] :Y
    Error opening file 'psappsrv.ubx':
    Error opening file 'psappsrv.ubx':
    Quick-configure menu -- domain: CRPROD1
    Features Settings
    ========== ==========
    Actions
    =========
    1) Load config as shown
    2) Custom configuration
    h) Help for this menu
    q) Return to previous menu
    HINT: Enter 3 to edit DBNAME, then 1 to load

  • What is wrong with this ASP If Else statement

    <%If (Request.Form("type")="Cancel Po") Then %>
    <form action="<%=MM_editAction%>" method="POST"
    name="datechange"
    onSubmit="YY_checkform('datechange','type[0]','#q','2','Please
    select a
    Request Type.','reasoncode[0]','#q','2','Please select a
    reason
    code.','ventype[0]','#q','2','Please select a type of
    vendor.','firstname','#q','0','Please enter your first
    name.','emailaddress','S','2','Please enter your email
    address.','ponum','#0_9999999','1','Please enter a po
    number.','deptnum','#q','0','Please enter a dept
    number.');return
    document.MM_returnValue">
    <% Else %>
    <form action="<%=MM_editAction%>" method="POST"
    name="datechange"
    onSubmit="YY_checkform('datechange','type[0]','#q','2','Please
    select a
    Request Type.','reasoncode[0]','#q','2','Please select a
    reason
    code.','ventype[0]','#q','2','Please select a type of
    vendor.','firstname','#q','0','Please enter your first
    name.','emailaddress','S','2','Please enter your email
    address.','ponum','#0_9999999','1','Please enter a po
    number.','deptnum','#q','0','Please enter a dept
    number.','newcancel','#^\([0-9][0-9]\)\/\([0-9][0-9]\)\/\([0-9]{4}\)$#2#1#3','3','Please
    enter a New Cancel Date in MM/DD/YYYY
    format.','newdontshipcurrent','#^\([0-9][0-9]\)\/\([0-9][0-9]\)\/\([0-9]{4}\)$#2#1#3','3' ,'Please
    enter a Current Do Not Ship After Date in MM/DD/YYYY
    format.');return
    document.MM_returnValue">
    <% End If %>
    No matter how i form the If statement the validation defaults
    to the 2nd one
    which its validating more
    ASP, SQL2005, DW8 VBScript, Visual Studio 2005, Visual Studio
    2008

    thanks.. i ended up using a different form validation and was
    able to
    accomplish what i was looking to do.. thanks for the advise..
    ASP, SQL2005, DW8 VBScript, Visual Studio 2005, Visual Studio
    2008
    "Dooza" <[email protected]> wrote in message
    news:[email protected]...
    > Daniel wrote:
    >> <%If (Request.Form("type")="Cancel Po") Then
    %>
    >>
    >> <form action="<%=MM_editAction%>"
    method="POST" name="datechange"
    >>
    onSubmit="YY_checkform('datechange','type[0]','#q','2','Please
    select a
    >> Request Type.','reasoncode[0]','#q','2','Please
    select a reason
    >> code.','ventype[0]','#q','2','Please select a type
    of
    >> vendor.','firstname','#q','0','Please enter your
    first
    >> name.','emailaddress','S','2','Please enter your
    email
    >> address.','ponum','#0_9999999','1','Please enter a
    po
    >> number.','deptnum','#q','0','Please enter a dept
    number.');return
    >> document.MM_returnValue">
    >>
    >> <% Else %>
    >>
    >> <form action="<%=MM_editAction%>"
    method="POST" name="datechange"
    >>
    onSubmit="YY_checkform('datechange','type[0]','#q','2','Please
    select a
    >> Request Type.','reasoncode[0]','#q','2','Please
    select a reason
    >> code.','ventype[0]','#q','2','Please select a type
    of
    >> vendor.','firstname','#q','0','Please enter your
    first
    >> name.','emailaddress','S','2','Please enter your
    email
    >> address.','ponum','#0_9999999','1','Please enter a
    po
    >> number.','deptnum','#q','0','Please enter a dept
    >>
    number.','newcancel','#^\([0-9][0-9]\)\/\([0-9][0-9]\)\/\([0-9]{4}\)$#2#1#3','3','Please
    >> enter a New Cancel Date in MM/DD/YYYY
    >>
    format.','newdontshipcurrent','#^\([0-9][0-9]\)\/\([0-9][0-9]\)\/\([0-9]{4}\)$#2#1#3','3' ,'Please
    >> enter a Current Do Not Ship After Date in MM/DD/YYYY
    format.');return
    >> document.MM_returnValue">
    >>
    >> <% End If %>
    >>
    >>
    >> No matter how i form the If statement the validation
    defaults to the 2nd
    >> one which its validating more
    >
    > To debug stick <%=Request.Form("type")%> at the
    start and check that you
    > are getting the correct value from the previous form
    field.
    >
    > Dooza

  • Need help understanding whats wrong with ASP checking for empty fields.

    Can anyone tell me whats wrong with these if statements: If i
    sumbit the
    form providing everything except the dream_inscript field it
    gives me this
    error:
    =================================================
    Microsoft OLE DB Provider for ODBC Drivers error '80040e57'
    [Microsoft][ODBC Microsoft Access Driver]Invalid string or
    buffer length
    /purch_confirm_mail.asp, line 67
    =================================================
    If i submit the form and provide just that field along with
    the first 4
    which are automatically passed from the DB the form submits
    fine and no
    problem.. I know it has something to do with my If
    Statements..
    Basically i want to check the 4 fields:
    dream_inscript If this one is -1 then pass N/A to the db
    dream_price If dream_inscript <> -1 then pass 45 to the
    db
    dream_comm if dream_comm is empty then pass N/A to the db
    custom_inscript if custom_inscript is empty then pass N/A to
    the db
    custom_wanted if this is Y then pass 45 to the db
    custom_comm if this is empty then pass N/A to the db
    MM_editCmd.CommandText = "INSERT INTO tbMailOrders
    (item_number,
    item_summary, item_price, shipping_cost, dream_price,
    dream_inscript,
    dream_comm, custom_comm, custom_price, video_wanted,
    video_price,
    grandtotal, cs_name, pp_email, c_email) VALUES (?, ?, ?, ?,
    MM_editCmd.Prepared = true
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param1", 202,
    1, 10, Request.Form("item_number")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param2", 202,
    1, 255, Request.Form("item_summary")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param3", 202,
    1, 10, Request.Form("itemprice")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param4", 202,
    1, 10, Request.Form("shippingcost")) ' adVarWChar
    If cStr(Request.Form("dream_inscript"))<> "-1" Then
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param5", 202, 1,
    10, "45") ' adVarWChar
    Else
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param5", 202,
    1, 10, "0.00") ' adVarWChar
    End If
    If cStr(Request.Form("dream_inscript"))<> "-1" Then
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param6", 203, 1,
    1073741823, Request.Form("dream_inscript")) ' adLongVarWChar
    Else
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param6", 203,
    1, 1073741823, "N/A") ' adLongVarWChar
    End If
    If Len(cStr(Request.Form("dream_comm")))= "0" Then
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param7", 203,
    1, 1073741823, "N/A") ' adLongVarWChar
    Else
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param7", 203,
    1, 1073741823, Request.Form("dream_comm")) ' adLongVarWChar
    End If
    If Len(cStr(Request.Form("custom_inscript")))= "0" Then
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param8", 203,
    1, 1073741823, "N/A") ' adLongVarWChar
    Else
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param8", 203, 1,
    1073741823, Request.Form("custom_inscript")) ' adLongVarWChar
    End If
    If Request.Form("custom_wanted")= "Y" Then
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param9", 202,
    1, 10, "45") ' adVarWChar
    Else
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param9", 202,
    1, 10, "0.00") ' adVarWChar
    End If
    If Request.Form("video_wanted")= "Y" Then
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param10", 202,
    1, 10, "Yes") ' adVarWChar
    Else
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param10", 202,
    1, 10, "No") ' adVarWChar
    End If
    If Request.Form("video_wanted")= "Y" Then
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param11", 202, 1,
    10, "15") ' adVarWChar
    Else
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param11", 202,
    1, 10, 0.00) ' adVarWChar
    End If
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param12", 202,
    1, 10, Request.Form("grand")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param13", 202,
    1, 255, Request.Form("name")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param14", 202,
    1, 255, Request.Form("email")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param15", 202,
    1, 255, Request.Form("email2")) ' adVarWChar
    MM_editCmd.Execute
    MM_editCmd.ActiveConnection.Close
    ASP, SQL2005, DW8 VBScript, Access

    issue corrected.
    ASP, SQL2005, DW8 VBScript, Visual Studio 2005, Visual Studio
    2008
    "Daniel" <[email protected]> wrote in message
    news:[email protected]...
    > Can anyone tell me whats wrong with these if statements:
    If i sumbit the
    > form providing everything except the dream_inscript
    field it gives me this
    > error:
    > =================================================
    > Microsoft OLE DB Provider for ODBC Drivers error
    '80040e57'
    > [Microsoft][ODBC Microsoft Access Driver]Invalid string
    or buffer length
    >
    > /purch_confirm_mail.asp, line 67
    > =================================================
    > If i submit the form and provide just that field along
    with the first 4
    > which are automatically passed from the DB the form
    submits fine and no
    > problem.. I know it has something to do with my If
    Statements..
    >
    > Basically i want to check the 4 fields:
    >
    > dream_inscript If this one is -1 then pass N/A to the db
    > dream_price If dream_inscript <> -1 then pass 45
    to the db
    > dream_comm if dream_comm is empty then pass N/A to the
    db
    >
    > custom_inscript if custom_inscript is empty then pass
    N/A to the db
    > custom_wanted if this is Y then pass 45 to the db
    > custom_comm if this is empty then pass N/A to the db
    >
    >
    >
    >
    > MM_editCmd.CommandText = "INSERT INTO tbMailOrders
    (item_number,
    > item_summary, item_price, shipping_cost, dream_price,
    dream_inscript,
    > dream_comm, custom_comm, custom_price, video_wanted,
    video_price,
    > grandtotal, cs_name, pp_email, c_email) VALUES (?, ?, ?,
    > ?, ?, ?, ?, ?, ?)"
    > MM_editCmd.Prepared = true
    > MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param1", 202,
    > 1, 10, Request.Form("item_number")) ' adVarWChar
    > MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param2", 202,
    > 1, 255, Request.Form("item_summary")) ' adVarWChar
    > MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param3", 202,
    > 1, 10, Request.Form("itemprice")) ' adVarWChar
    > MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param4", 202,
    > 1, 10, Request.Form("shippingcost")) ' adVarWChar
    > If cStr(Request.Form("dream_inscript"))<> "-1"
    Then
    > MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param5", 202, 1,
    > 10, "45") ' adVarWChar
    > Else
    > MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param5", 202,
    > 1, 10, "0.00") ' adVarWChar
    > End If
    > If cStr(Request.Form("dream_inscript"))<> "-1"
    Then
    > MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param6", 203, 1,
    > 1073741823, Request.Form("dream_inscript")) '
    adLongVarWChar
    > Else
    > MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param6", 203,
    > 1, 1073741823, "N/A") ' adLongVarWChar
    > End If
    > If Len(cStr(Request.Form("dream_comm")))= "0" Then
    > MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param7", 203,
    > 1, 1073741823, "N/A") ' adLongVarWChar
    > Else
    > MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param7", 203,
    > 1, 1073741823, Request.Form("dream_comm")) '
    adLongVarWChar
    > End If
    > If Len(cStr(Request.Form("custom_inscript")))= "0" Then
    > MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param8", 203,
    > 1, 1073741823, "N/A") ' adLongVarWChar
    > Else
    > MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param8", 203, 1,
    > 1073741823, Request.Form("custom_inscript")) '
    adLongVarWChar
    > End If
    > If Request.Form("custom_wanted")= "Y" Then
    > MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param9", 202,
    > 1, 10, "45") ' adVarWChar
    > Else
    > MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param9", 202,
    > 1, 10, "0.00") ' adVarWChar
    > End If
    > If Request.Form("video_wanted")= "Y" Then
    > MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param10", 202,
    > 1, 10, "Yes") ' adVarWChar
    > Else
    > MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param10", 202,
    > 1, 10, "No") ' adVarWChar
    > End If
    > If Request.Form("video_wanted")= "Y" Then
    > MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param11", 202, 1,
    > 10, "15") ' adVarWChar
    > Else
    > MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param11", 202,
    > 1, 10, 0.00) ' adVarWChar
    > End If
    > MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param12", 202,
    > 1, 10, Request.Form("grand")) ' adVarWChar
    > MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param13", 202,
    > 1, 255, Request.Form("name")) ' adVarWChar
    > MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param14", 202,
    > 1, 255, Request.Form("email")) ' adVarWChar
    > MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param15", 202,
    > 1, 255, Request.Form("email2")) ' adVarWChar
    > MM_editCmd.Execute
    > MM_editCmd.ActiveConnection.Close
    >
    > --
    > ************************************************
    > ASP, SQL2005, DW8 VBScript, Access
    >

  • Ability to change font size and font color thru console

    I have a console that a client can pretty much do all the
    changes they
    want.. now they want to be able to change the font sizes for
    certain titles
    and also the color..
    Since 95% of the site is controlled with CSS is there
    something i can add
    to the console page to allow them to change the size and
    color of the titles
    and text?
    ASP, SQL2005, DW8 VBScript

    Here's what I have done in the past. Maybe not elegant, but
    it works. (I
    use PHP, but I'm sure you can modify for ASP.)
    In the HEAD of each web page, include regular old embedded
    STYLE tags,
    but INCLUDE an external PHP file:
    <head>
    <style type="text/css">
    <?php include('styles/testcss.php'); ?>
    </style>
    </head>
    Now in that included PHP file, just have CSS code which pulls
    in your
    dynamic data. Here's an example snippet:
    body {
    color: #600;
    background-color: <?php echo
    $row_recordset['bgcolor'];?>
    Of course, you'll need the code for the recordset somewhere
    too.
    Alec
    Adobe Community Expert

  • Preventing certain file types from being displayed in a directory listing

    Someone before me used this code to create simple directory
    listings for our
    users to maintain certain sections of the site...
    http://www.asp101.com/samples/viewasp.asp?file=dir_list.asp
    My question is, can some additional code be added or change
    to prevent
    certain files from showing up in the list.. like the
    default.asp and so
    on...
    ASP, SQL2005, DW8 VBScript

    Just test the string value of the filename in the output loop
    and skip it if it meets the criteria you want to filter out.

  • Page will not display online but ok on local

    what is wrong with this code?
    <%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
    <html>
    <head>
    <title>Look4</title>
    <link href="inc/main.css" rel="stylesheet"
    type="text/css">
    </head>
    <body>
    <div class="logo"><!--#include
    virtual="/inc/header.asp" --></div>
    <br>
    <!--#include virtual="/inc/nav.asp" -->
    <br>
    <div class="footer"><!--#include
    virtual="/inc/footer.asp" --></div>
    </body>
    </html>
    I cant seem to make this work... within dreamweaver you can
    view and edit
    the page just fine.. but once uploaded to site, it displays
    blank. I have
    already validated that all files have been sent to server as
    well.
    ASP, SQL2005, DW8 VBScript, Access

    After all that.. finally got the client to verify that in
    fact they had a MS
    hosting package and they didnt.. even though they said they
    were sure thats
    what they signed up for... after getting into the hosting
    account it was
    setup as a linux package..
    So i had them upgrade it to the MS hosting packaged i had
    initially asked
    them to sign up for...
    So everything is ok and working great now...
    thanks for the suggestions.. i did try that simple test and
    that was the
    last thing i tried before asking them to login and
    validate...
    ASP, SQL2005, DW8 VBScript, Access
    "Daniel" <[email protected]> wrote in message
    news:fdtpve$q83$[email protected]..
    > Thanks,,,
    >
    > I will try that later... i will let you know..
    >
    >
    >
    > --
    > ASP, SQL2005, DW8 VBScript
    > "E Michael Brandt" <[email protected]>
    wrote in message
    > news:fdtlcj$c2a$[email protected]..
    >> It sure sounds like your host is not parsing your
    page in the asp parser.
    >>
    >> Try a simple page, with .asp extension, like this:
    >>
    >> <%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
    >> <html>
    >> <head>
    >> <title>test</title>
    >> </head>
    >> <body>
    >> It is <%= WORKiNG %>
    >> </body>
    >> </html>
    >>
    >>
    >> If it displays "IT is" but not the word "WORKING",
    then it is not being
    >> parsed. Check with your host.
    >>
    >> --
    >>
    >>
    >> E. Michael Brandt
    >>
    >> www.divaHTML.com
    >> divaPOP : standards-compliant popup windows
    >> divaGPS : you-are-here menu highlighting
    >> divaFAQ : FAQ pages with pizazz
    >>
    >> www.valleywebdesigns.com
    >> JustSo PictureWindow
    >> JustSo PhotoAlbum
    >>
    >> --
    >
    >

  • Passing form data to a PDF for printing

    I have found a few articles online about setting this up, but
    having no luck
    on getting the data to pass and display within the pdf file..
    Can anyone offer suggestions or some good tutorial sites i
    can continue to
    read about?
    thanks...
    ASP, SQL2005, DW8 VBScript

    I'm not really familiar with ColdFusion, but if it were a normal server side component the field would be available in the request header under a name something like this:
    FormName[0].SubFormName[0].FieldName[0]
    Chris
    Adobe Enterprise Developer Support

  • CSS issues in Firefox and Safari

    I have this bit of code that i cant seem to get working in
    firefox or safari
    .backgr {
    text-align:center;
    margin-left:0px;
    margin-top:0px;
    background-color:#CCCCCC;
    border:solid 1px;
    What am i doing wrong
    ASP, SQL2005, DW8 VBScript, Access

    Thanks for the replies... i just noticed that i forgot to
    mention what was
    not really working with this code...
    I have span that im applying this to... its wrapping around
    my screen data
    to give it a easier background to read the text on...
    In IE i can view my page with a grey box behind all my page
    data...
    But within firefox, opera and safari the box is not there and
    makes my
    navigation look like crap...
    So would using the last reply that has all the individual
    styles listed help
    with this issue?
    ASP, SQL2005, DW8 VBScript
    "Daniel" <[email protected]> wrote in message
    news:ffp1k6$f4n$[email protected]..
    >I have this bit of code that i cant seem to get working
    in firefox or
    >safari
    >
    > .backgr {
    > text-align:center;
    > margin-left:0px;
    > margin-top:0px;
    > background-color:#CCCCCC;
    > border:solid 1px;
    > }
    >
    > What am i doing wrong
    >
    > --
    > --
    > ASP, SQL2005, DW8 VBScript, Access
    >

  • CSS not working correctly across browsers

    I have a page that im using CSS to assign a background image
    to a table
    row..
    In IE6 it works great..
    in all the other browsers we tested it is missing
    IE7
    Opera
    Firefox
    Safari
    Here is my CSS styling:
    background-image:url('images/Menu-Bar.png');
    background-repeat: no-repeat;
    background-attachment: fixed;
    width:950px;
    height:59px;
    ASP, SQL2005, DW8 VBScript, Visual Studio 2005, Visual Studio
    2008

    Here is the complete code for the simple page we are working
    with.. The
    background image that is assigned to the table (
    live-area.gif ) shows fine
    for all browsers... but the image for the <tr> tage
    only shows up for IE6
    and not for any other browser..
    <form id="form1" runat="server">
    <div style="text-align: center">
    <br />
    <img alt="" src="images/Logo.png" style="width: 400px;
    height: 108px;
    text-align: center;" />
    <table class="menu" width="100%"
    style="background-position: center;
    background-image: url('images/Live-Area.gif');
    background-repeat: no-repeat;
    background-attachment: fixed; background-color: #FF9933;
    width:973px;
    height:653px;"
    align="center">
    <tr height="15%" width="100%"
    style="background-image:url('images/Menu-Bar.png');
    background-repeat:
    no-repeat; background-attachment: fixed; width :950px;
    height:59px;">
    <td>
    <table width="90%" align="center">
    <tr>
    <td>
    <CMS:DhtmlMenu ID="DhtmlMenu1" runat="server"
    DefaultMenuID="8"
    Stylesheet="" BackColor="Transparent"
    MenuHoverOverColor="Transparent"
    SubMenuBackColor="White" SubMenuHoverOverColor="#FFB618"
    BackImageUrl="~/images/blank.gif" />
    </td>
    <td>
    <CMS:DhtmlMenu ID="DhtmlMenu2" runat="server"
    DefaultMenuID="10"
    Stylesheet="" BackColor="Transparent"
    MenuHoverOverColor="Transparent"
    SubMenuBackColor="White" SubMenuHoverOverColor="#FFB618"
    BackImageUrl="~/images/blank.gif" />
    </td>
    <td>
    <CMS:DhtmlMenu ID="DhtmlMenu3" runat="server"
    DefaultMenuID="12"
    Stylesheet="" BackColor="Transparent"
    MenuHoverOverColor="Transparent"
    SubMenuBackColor="White" SubMenuHoverOverColor="#FFB618"
    BackImageUrl="~/images/blank.gif" />
    </td>
    <td>
    <CMS:DhtmlMenu ID="DhtmlMenu4" runat="server"
    DefaultMenuID="14"
    Stylesheet="" BackColor="Transparent"
    MenuHoverOverColor="Transparent"
    SubMenuBackColor="White" SubMenuHoverOverColor="#FFB618"
    BackImageUrl="~/images/blank.gif" />
    </td>
    <td>
    <CMS:DhtmlMenu ID="DhtmlMenu5" runat="server"
    DefaultMenuID="16"
    Stylesheet="" BackColor="Transparent"
    MenuHoverOverColor="Transparent"
    SubMenuBackColor="White" SubMenuHoverOverColor="#FFB618"
    BackImageUrl="~/images/blank.gif" />
    </td>
    </tr>
    </table>
    </td>
    </tr>
    <tr height="85%" valign="top">
    <td colspan="5">
    <asp:ContentPlaceHolder id="ContentPlaceHolder1"
    runat="server">
    <CMS:ContentBlock ID="ContentBlock1" runat="server" />
    </asp:ContentPlaceHolder></td>
    </tr>
    </table>
    </div>
    <CMS:Login ID="Login1" runat="server" />
    </form>
    ASP, SQL2005, DW8 VBScript, Visual Studio 2005, Visual Studio
    2008
    "John Waller" <[email protected]>
    wrote in message
    news:[email protected]...
    > It's very hard to diagnose without seeing what you're
    seeing or at least
    > all the code (context is important - posting code
    snippets in isolation is
    > not overly helpful for accurate diagnosis).
    >
    > We have to take stabs in the dark and offer guesses like
    Nadia is trying
    > to do.
    >
    > --
    > Regards
    >
    > John Waller

Maybe you are looking for

  • Look Up feature is not working properly.

    Look Up feature will not work if another word is selected inside the Look Up display of the first word. The only solution was to the problem is to click on the word "Dictionary" (so that you will be using the Dictionary application instead) and then

  • My mic is not working on Skype

    My mic on I pad is working .. While using Skype ?

  • LabVIEW 7 express for Gentoo Linux

    Hi guys I have Gentoo distribution and I want to install LabVIEW 7 on it I have tried but could not do it successfully can anyone tell me what do I need to have Lab View installed like if I need rpm etc, which ofcourse I do not have , any suggestion

  • Incorrect value getting fetched

    Hi in my requirement  I want to fetch the wbs element based on the prefixed placed in it .I have coded as follows for one part check gw_auak-objnr CA 'PR'.     SELECT  pspnr FROM prps INTO TABLE gi_prps WHERE objnr = gw_auak-objnr. Here the value is

  • SMR app?

    The same question was submitted yesterday to the iMac community by mistake. Sitting by my iMac with a good keyboard I shall expand on the facts. The Settings of my iPad Air 2 and my iPhone 5s both show an app with the name SMR. The icon is a rounded