ASP page call problem

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default ASP page call problem

    Any suggestions on the following problem:
    I am making a call to an ASP page with the following call string:
    admin_update_notice_processor.asp?NoticeID=<%=Requ est.QueryString("Notic
    eID")%>

    The page is as follows:

    <%@LANGUAGE="VBSCRIPT"%>
    <%
    Dim dbConn
    Dim nt_fixed
    nt_fixed = Replace(Request.Form("Notice"),"'","&#39;")

    Set dbConn = server.CreateObject("adodb.connection")
    dbConn.open("CSh")
    dbConn.Execute("UPDATE tbl_notices SET UserName = '" &
    Request.Form("Author") & "', Header = '" & Request.Form("Header") & "',
    Notice = '" & nt_fixed & "' WHERE NoticeID=" &
    Request.QueryString("NoticeID"))
    Response.Redirect("admin_manage_notice.asp")
    %>

    There is nothing else on the page. It works on my machine, but when
    uploaded to the ISP, the page can't be found. All calls go to an Access
    DB through a DNS called "CSh".
    Thanks
    Shimon



    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Simeon Shapiro Guest

  2. Similar Questions and Discussions

    1. call page
      hi, I have build a reminder.asp page what this is doing? when the page is loading email is send to the users where the have record is still open...
    2. Call page from function
      Hi, I'm trying to use the web timer to schedule a call to an asp page. In practice, I want the server calls an asp page that makes several jobs. The...
    3. asynchronous call to web service from a web page
      My web service is to update a database. When user clicks on a button on a web page, it calls web service to update database. With hundred...
    4. Can A web service call another web page
      I have a web service to store information. I want the my webservice to call a vendors webservice for validation puposes. What I want to...
    5. DCOM call from an ASP page.
      I have a COM component running on another Windows 2000 server. I want to call that component from the IIS server, which is on another Windows 2000...
  3. #2

    Default Re: ASP page call problem

    You're getting a 404 error? If so, this code isn't the issue. Are you sure
    you're uploading the file to the right place? Are you running chilisoft on
    a *nix server? If so, are you paying attention to case-sensitivity of the
    filename? What error are you seeing in your browser? Did you upload
    admin_manage_notice.asp? What happens if you comment out the redirect?
    Which page is 404'ing?

    Ray at work



    "Simeon Shapiro" <shimon@iafrica.com> wrote in message
    news:u6CFX8kuDHA.2492@TK2MSFTNGP12.phx.gbl...
    > Any suggestions on the following problem:
    > I am making a call to an ASP page with the following call string:
    > admin_update_notice_processor.asp?NoticeID=<%=Requ est.QueryString("Notic
    > eID")%>
    >
    > The page is as follows:
    >
    > <%@LANGUAGE="VBSCRIPT"%>
    > <%
    > Dim dbConn
    > Dim nt_fixed
    > nt_fixed = Replace(Request.Form("Notice"),"'","&#39;")
    >
    > Set dbConn = server.CreateObject("adodb.connection")
    > dbConn.open("CSh")
    > dbConn.Execute("UPDATE tbl_notices SET UserName = '" &
    > Request.Form("Author") & "', Header = '" & Request.Form("Header") & "',
    > Notice = '" & nt_fixed & "' WHERE NoticeID=" &
    > Request.QueryString("NoticeID"))
    > Response.Redirect("admin_manage_notice.asp")
    > %>
    >
    > There is nothing else on the page. It works on my machine, but when
    > uploaded to the ISP, the page can't be found. All calls go to an Access
    > DB through a DNS called "CSh".
    > Thanks
    > Shimon
    >
    >
    >
    > *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    > Don't just participate in USENET...get rewarded for it!

    Ray at Guest

  4. #3

    Default Re: ASP page call problem

    This is probably because you have "Show friendly HTTP errors" set in IE's
    Tools/Internet Options/Advanced

    --
    Aaron Bertrand
    SQL Server MVP
    [url]http://www.aspfaq.com/[/url]




    "Simeon Shapiro" <shimon@iafrica.com> wrote in message
    news:u6CFX8kuDHA.2492@TK2MSFTNGP12.phx.gbl...
    > Any suggestions on the following problem:
    > I am making a call to an ASP page with the following call string:
    > admin_update_notice_processor.asp?NoticeID=<%=Requ est.QueryString("Notic
    > eID")%>
    >
    > The page is as follows:
    >
    > <%@LANGUAGE="VBSCRIPT"%>
    > <%
    > Dim dbConn
    > Dim nt_fixed
    > nt_fixed = Replace(Request.Form("Notice"),"'","&#39;")
    >
    > Set dbConn = server.CreateObject("adodb.connection")
    > dbConn.open("CSh")
    > dbConn.Execute("UPDATE tbl_notices SET UserName = '" &
    > Request.Form("Author") & "', Header = '" & Request.Form("Header") & "',
    > Notice = '" & nt_fixed & "' WHERE NoticeID=" &
    > Request.QueryString("NoticeID"))
    > Response.Redirect("admin_manage_notice.asp")
    > %>
    >
    > There is nothing else on the page. It works on my machine, but when
    > uploaded to the ISP, the page can't be found. All calls go to an Access
    > DB through a DNS called "CSh".
    > Thanks
    > Shimon
    >
    >
    >
    > *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    > Don't just participate in USENET...get rewarded for it!

    Aaron Bertrand - MVP Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139