asp-classic

Returning Object from Classic Asp

大城市里の小女人 提交于 2020-03-01 15:31:48
问题 I am using Classic Asp to build request to a url which is successful now the problem is that I want to return the Request object from the function and getting the following problem: Object doesn't support this property or method, How can I do it ? Set objSrvHTTP = Server.CreateObject ("Msxml2.ServerXMLHTTP.3.0") objSrvHTTP.open "POST","Https://",False,"","" objSrvHTTP.SetRequestHeader "Content-Type", "text/xml" objSrvHTTP.SetRequestHeader "Authorization", "Basic " & EncodeBase64("sales

Returning Object from Classic Asp

China☆狼群 提交于 2020-03-01 15:28:49
问题 I am using Classic Asp to build request to a url which is successful now the problem is that I want to return the Request object from the function and getting the following problem: Object doesn't support this property or method, How can I do it ? Set objSrvHTTP = Server.CreateObject ("Msxml2.ServerXMLHTTP.3.0") objSrvHTTP.open "POST","Https://",False,"","" objSrvHTTP.SetRequestHeader "Content-Type", "text/xml" objSrvHTTP.SetRequestHeader "Authorization", "Basic " & EncodeBase64("sales

Switching from sqloledb to odbc driver 13 for SQL Server

倾然丶 夕夏残阳落幕 提交于 2020-02-25 10:09:27
问题 I want to use Always Encrypted feature introduce in SQL Server 2016 SP1 . In order to do that, I need to use the new ODBC Driver 13.1 for SQL Server instead the current one sqloledb . It seems it is breaking my application, for example, when XML is returned. Here, it is said that: In order to take advantage of new features introduced in SQL Server 2005 such as multiple active result sets (MARS), query notifications, user-defined types (UDTs), or the new xml data type, existing applications

Switching from sqloledb to odbc driver 13 for SQL Server

百般思念 提交于 2020-02-25 10:08:28
问题 I want to use Always Encrypted feature introduce in SQL Server 2016 SP1 . In order to do that, I need to use the new ODBC Driver 13.1 for SQL Server instead the current one sqloledb . It seems it is breaking my application, for example, when XML is returned. Here, it is said that: In order to take advantage of new features introduced in SQL Server 2005 such as multiple active result sets (MARS), query notifications, user-defined types (UDTs), or the new xml data type, existing applications

Decryption function gives wrong result with special characters

浪子不回头ぞ 提交于 2020-02-21 05:33:05
问题 I'm building an encryption/decryption function in VBScript / Classic ASP. It all works as long as the string to be encrypted/decrypted does not contain special characters. ' str = "Bayern München" ' key = "ab34ehyd67hy6752daskjh" Function EncryptString(val, key) valLen = Len(val) keyLen = Len(key) keyPos = 1 newVal = "" revVal = val For x = 1 To valLen calc = AscW(Mid(revVal, x, 1)) + AscW(Mid(key, keyPos, 1)) 'Response.Write ":" & AscW(Mid(revVal, x, 1)) & " + " & AscW(Mid(key, keyPos, 1)) &

Generate excel sheet from classic asp on click of button

青春壹個敷衍的年華 提交于 2020-02-07 10:52:33
问题 I want to create an excel sheet from click of button. These excel sheet will contain report which is generated on classic asp page. When user clicks on button then an excel sheet should be created which will have the same report as page have 回答1: This header works fine: <% Response.AddHeader "Content-Disposition", "attachment;filename=NOMBRE_ARCHIVO.xls" Response.ContentType = "application/vnd.ms-excel" %> For small tables, try this example in html/javascript: <html> <body> <table id="tabla"

Generate excel sheet from classic asp on click of button

守給你的承諾、 提交于 2020-02-07 10:51:52
问题 I want to create an excel sheet from click of button. These excel sheet will contain report which is generated on classic asp page. When user clicks on button then an excel sheet should be created which will have the same report as page have 回答1: This header works fine: <% Response.AddHeader "Content-Disposition", "attachment;filename=NOMBRE_ARCHIVO.xls" Response.ContentType = "application/vnd.ms-excel" %> For small tables, try this example in html/javascript: <html> <body> <table id="tabla"

Generate excel sheet from classic asp on click of button

北战南征 提交于 2020-02-07 10:50:53
问题 I want to create an excel sheet from click of button. These excel sheet will contain report which is generated on classic asp page. When user clicks on button then an excel sheet should be created which will have the same report as page have 回答1: This header works fine: <% Response.AddHeader "Content-Disposition", "attachment;filename=NOMBRE_ARCHIVO.xls" Response.ContentType = "application/vnd.ms-excel" %> For small tables, try this example in html/javascript: <html> <body> <table id="tabla"

JavaScript regex for validating for alphanumeric characters,all international characters (Japanese, Chinese, Russian etc)

我的未来我决定 提交于 2020-02-04 01:00:34
问题 One of my project requirements is to validate a data field(text box from web page). I need to allow alpha numeric characters in all foreign languages (japanese,chinese,korean,russian,latin american characters etc). And avoid special characters. I am using the expression /[^a-zA-Z0-9]/ (javascript, asp .net page) Many blogs I have read and not able to correctly understand what exactly I have to do here. I can't add any addons or plugins and have to use the available functionality of regex. How

Looking for the ways for test automation of web site

我是研究僧i 提交于 2020-02-01 05:01:46
问题 We develop custom survey web sites and I am looking for a way to automate the pattern testing of these sites. Surveys often contain many complex rules and branches which are triggered on how items are responded too. All surveys are rigorously tested before being released to clients. This testing results in a lot of manual work. I would like to learn of some options I could use to automate these tests by responding to questions and verifying the results in the database. The survey sites are