asp-classic

aspsessionid name change

一个人想着一个人 提交于 2019-12-06 04:39:28
问题 <script type="text/javascript" language="javascript"> function setCookie() { var path = '/', host = document.location.hostname; document.cookie = 'random=' + Math.floor(Math.random()*11) + '; path=' + path + ( host ? '; domain=' + document.location.hostname : "" ) ; } function readCookie() { alert(document.cookie) } </script> My life would be a lot simpler if I had an easy way to change aspsessionid**** to just sessionid in my logs. Is there a quick way to do this ... in Windows? There must

How to redirect webpage from one domain to another?

ε祈祈猫儿з 提交于 2019-12-06 04:37:33
问题 How to redirect domain to another domain, when the first domain (webpage) load? 回答1: A pure HTML alternative is the following <meta> tag in your HTML <head> : <meta http-equiv="refresh" content="0;http://anotherdomain.com"> The 0 is here the amount of seconds the page has to stay open before redirecting. In this case, it'll happen immediately as soon as you loads the page. In contrary to the proposed JS solution, this will work fine as well in browsers with JS disabled. However, if you've the

Visual Studio 2008 sp1 classic asp Intellisense and Outlining not functioning

假装没事ソ 提交于 2019-12-06 04:11:56
问题 As the topic suggests I've got VS 2008 with sp1 installed and am not receiving full Intellisense or ANY outlining capabilities when editing classic asp pages. My coworker is also using VS2008sp1 and has outlining working correctly (but he has no idea why) I've made a screen, you can find here Classic asp outlining issue screen shot 1 Has anyone else had this problem? Am I missing something simple? Thanks for your help -Birk 回答1: You can reset your settings by going to Tools -> Import/Export

Classic ASP Twitter Libraries [closed]

倾然丶 夕夏残阳落幕 提交于 2019-12-06 04:05:35
Closed. This question is off-topic . It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . Does of anyone know of any Classic ASP (VBScript) Twitter libraries? Thanks. http://scottdesapio.com/VBScriptOAuth/ Not a twitter library but rather a true VBScript OAuth interface. That help? Made one in VbScript as well http://sitejunction.awardspace.com/vbscript_tweets/ I write my own Twitter API implementation with VBScript, http://asp.web.id/asp-twitter it is currently support user show user timeline

classic asp - reading csv file having alphanumeric data

Deadly 提交于 2019-12-06 03:56:24
I'm having trouble in reading csv file that are having alphanumeric data. below is my code in classic asp: strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & _ ls_map_path & ";Extended Properties=""Text;HDR=Yes;FMT=Delimited"";" Set lo_conn = Server.CreateObject("ADODB.Connection") lo_conn.Open strConn Set lo_rs = Server.CreateObject("ADODB.recordset") lo_rs.CursorLocation = adUseClient lo_rs.open "SELECT * FROM " & as_file_name, lo_conn, adOpenStatic, adLockOptimistic, adCmdText and below is the data: user_id,status,last_name,first_name,middle_name 1234,1,DeVera,athan,M. 1234,1,De

Classic asp “An error occurred when verifying security for the message.” iis7 transport level security

冷暖自知 提交于 2019-12-06 03:54:33
On II7 we host a WCF/asp.net based API. In order to allow users of a classic asp application to connect to the API we had to publish a version we refer to as "transport". This Transport version is written in asp.net too, it points to the same assembly , its just the security layer is different to allow classic asp to authenticate. Transport level security is used as opposed to message based security. When using a browser to load the service reference i can loading the svcutil.exe ... WDSL page. When using my test asp page to call a web method from this reference i get the following returned:

how to count records in ASP classic?

一个人想着一个人 提交于 2019-12-06 03:42:41
I'm not quite familiar with programming ASP classic. I just need a small code to run on my webpage. How do i count the record of the returned query? <% Set rsscroll = Server.CreateObject("ADODB.Recordset") Dim strSQLscroll, rsscroll strSQLscroll = "SELECT * FROM tblItems where expiration_date > getdate() order by expiration_date desc;" rsscroll.open strSQLscroll,oConn %> thanks, It is possible (but not recommended) to use the RecordCount property on the Recordset object as follows: iTotalRecords = rsscroll.RecordCount If your table is really large, this can take a long time to run. I would

Multipart/form-data and UTF-8 in a ASP Classic application

大憨熊 提交于 2019-12-06 02:13:55
问题 I have a problem that I really don't understand. I'm trying to upload a files in a asp classic app, without the use of an external component. I also want to post some text that will be stored in a DB. The file upload perfectly, I'm using this code: Upload Files Without COM v3 by Lewis E. Moten III The problem is the other form input fields. I'm using UTF-8, but they don't end up as UTF-8. I.e Swedish characters å ä and ö is displayed as question marks if I print them out using Response.Write.

Password encryption/decryption between classic asp and ASP.NET

别说谁变了你拦得住时间么 提交于 2019-12-06 01:28:18
I have 2 websites: one written in classic asp and another written in ASP.NET (1.1 framework). Both applications use a login mechanism to validate user credentials based on a shared database table. Up to now passwords are stored in a 1-way MD5 hash, meaning people must be given a new generated password if they lose the old one. I now want to change this and make the passwords decryptable. I found this Rijndael code to use with classic asp: http://www.frez.co.uk/freecode.htm#rijndael But I cannot find the same solution for ASP.NET. I tried this, but it gives me different encryption and

Write ASP-style cookie (with keys) using Javascript; read using classic ASP

杀马特。学长 韩版系。学妹 提交于 2019-12-06 01:22:30
In Classic ASP, a single cookie can be a collection of name/value pairs. For instance, a cookie collection named "user" could be created to have keys which contains information about a user: ("user")("firstname")="John" ("user")("lastname")="Smith" ("user")("country")="Norway" ("user")("age")="25" Is it possible to write that kind of cookie using Javascript, so that ASP would recognize it and parse it accordingly? Should be doable. Your asp example would make a cookie that would look similar to this: Name: user Value: firstname=John&lastname=Smith&country=Norway&age=25 so when you set your