asp-classic

the connection with the server was terminated abnormally xmlhttp

徘徊边缘 提交于 2019-12-08 19:13:44
问题 I have this asp page test1.asp in the same server (different website) than this webservice. Thing is when i try to run this code sUrl = "http://chat.xxxxx.com/UCWebServices/Chat.asmx/GetChatQueueByAddress?queueAddress=SALESCHAT" result = HTTPPost(sUrl) response.Write result Function HTTPPost(sUrl) set oHTTP = CreateObject("Msxml2.ServerXMLHTTP") oHTTP.open "GET", sUrl,false oHTTP.send <-- it fails here <-- it fails here <-- it fails here <-- if oHTTP.Status = 200 Then HTTPPost oHTTP

ADO.RecordCount equals - 1 problem

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-08 18:01:01
问题 When ever I try to access the RecordCount property, I always get a return value of -1. Below is my sample code. Set oConn = Server.CreateObject ("ADODB.Connection") oConn.Open Application("strConnectstring") Set rs = Server.CreateObject ("ADODB.Recordset") rs.ActiveConnection = oConn SQL = "Publications_PicoSearchListing" set rs = oConn.execute(SQL) I'm not sure if I'm doing forwardCursor or dynamic cursors, or if the provider even supports the RecordCount property. How do I check if the

IIS server redirect locations

泪湿孤枕 提交于 2019-12-08 16:36:30
I got a asp site hosted in a iis server. In the server there is a virtual folder products and whenever a url like xyz.com/products/abc_11.asp is provided it is forwared to xyz.com/product.asp?id=11 page. I would like to know from where we can change that settings? These settings or tasks can be done from where? Thnx Does the folder "products" or file "abc_11.asp" physically exist on the webserver? There are many ways to accomplish the task of having a sepcific url forward to another url. There are URL rewritting ISAPI addons for IIS, like ISAPI_Rewrite. ISAPI_Rewrite will have a httpd.ini file

How do you allow parent paths in Visual Studio 2015?

旧时模样 提交于 2019-12-08 15:29:26
问题 I've opened an existing web application project from Visual Studio 2013 (which runs just fine), in Visual Studio 2015. When I run it from within Visual Studio 2015 I get: Active Server Pages error 'ASP 0131' Disallowed Parent Path /blah/login.asp, line 1 The Include file '../includes/Security.asp' cannot contain '..' to indicate the parent directory. My IISExpress applicationhost.config file already contains the entry: <asp appAllowClientDebug="false" appAllowDebugging="false" errorsToNTLog=

How to concatenation href value

巧了我就是萌 提交于 2019-12-08 14:42:31
问题 I have got asp classic page and i need to show link with some value on the page. Here is the link and i need to attach strEmpcode with the address. strEmpcode = session("empcode") <td><li> <a href="http://192.1.1.1:85/reports.aspx?empcode= & strEmpcode"> Report</a> <td><li> So on click it should pass the address in this form: http://192.1.1.1:85/reports.aspx?empcode=123 I need to show it on design time (inline page) not on runtime. How can i fix it? 回答1: <a href='http://192.1.1.1:85/reports

Take Postcode to New Field in New Window

安稳与你 提交于 2019-12-08 14:21:53
问题 I have a read only field on a html field which has a name of _Dataaddr_postcode I now need to capture this data and pass it into a new window which loads another file (proxcomp.asp) and use the data in a field on this page the field has an ID of inpAddr. I have this code so far <script type="text/javascript"> var pcodeStart = document.getElementbyId("_Dataaddr_postcode"); var newWindow; function makeNewWindow( ) { if (!newWindow || newWindow.closed) { newWindow = window.open("../hpwprox

RegEx : replace all Url-s that are not anchored

北城余情 提交于 2019-12-08 14:15:31
I'm trying to replace Urls contained inside a HTML code block the users post into an old web-app with proper anchors ( <A> ) for those Urls. The problem is that Urls can be already 'anchored', that is contained in <A> elements. Those Url should not be replaced. Example: <a href="http://noreplace.com">http://noreplace.com</a> <- do not replace <a href="http://noreplace.com"><u>http://noreplace.com</u></a> <- do not replace <a href="...">...</a>http://replace.com <- replace What would the regex to match only 'not anchored Urls' look like? I use the following function to replace with RegEx:

How to map a classic asp request to an mvc controller and action

蓝咒 提交于 2019-12-08 14:10:34
To say that routing is not my strong suite is an understatement, so please bear with me. I have this link in one of my pages and I need my MVC route to pick this up and map it to the "MyArea" area "MessagesController" controller "Inbox" method http://localhost/MyArea/messages/list.asp?pjid=&box=in&sf=mesibox What I've come up with so far does not cut it. routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.IgnoreRoute("favicon.ico"); routes.MapRoute( "Messages", "messages/list.asp", new { controller = "Messages", action = "Inbox" }); routes.MapRoute( "Default", "{controller}/{action}/{id}"

Classic ASP (VBScript), 2008 R2, error using AD to authenticate

旧街凉风 提交于 2019-12-08 13:40:18
问题 I have moved a web site from Win2003 x32 to Win2008R2 x64. It works fine on the old server. The web site uses active directory to authenticate. I get this error on 2008: -2147023584 : A specified logon session does not exist. It may already have been terminated. I have tried switching to classic mode, etc. with no change. It does execute VBScript code (otherwise I wouldn't get the error). Here is the code: Function AuthenticateUser(UserName, Password) On Error Resume Next Dim oADsNamespace,

Why is xmlHTTP.responseXML not working and xmlHTTP.responseText does?

余生长醉 提交于 2019-12-08 13:10:43
问题 Why when I use the following with Response.Write xmlHTTP.ResponseXML, I get a 500 error "XML Parsing Error: syntax error" <% set xmlHTTP = Server.CreateObject("MSXML2.XMLHTTP.3.0") xmlHTTP.open "Get", "http://www.w3schools.com/xml/note.xml", false xmlHTTP.send() Response.ContentType = "text/xml" Response.Write xmlHTTP.ResponseXML set xmlHTTP = Nothing %> While when I use Response.Write xmlHTTP.ResponseText as in the following all is fine. Isn't the response from the request to the URL XML? If