asp-classic

Classic ASP - display records from databse in the table Week-wise or month-wise

冷暖自知 提交于 2019-12-13 04:29:49
问题 I'm using asp code i.e classic ASP and SQL server 2000 in this process to display records from database into a table. I have two links called week-wise and month-wise . when the user clicks on this link he will see the data week-wise or month-wise assuming the database have a date field which stores all the dates, when the record is inserted. So far i'm able to display records present in the table for that particular user. How can i display his/her records WEEK or MONTH wise. this is the

batch file execution asp classic

最后都变了- 提交于 2019-12-13 04:18:55
问题 I need help executing a batch file from a client (accessing via HTTP intranet executing using ASP Classic). OS used: Client (Windows XP) - Here is where the user will access the HTML page. Server (Windows server 2003) - Here is where the folder is being created including the batch file. This is also where the ASP pages and HTML pages is stored and run through IIS Scenario: The user will access an HTML page that is linked to an asp page.... HTML code: <html> <body> <form method="GET" action=

correct formatting for excel spreadsheet [duplicate]

若如初见. 提交于 2019-12-13 04:18:39
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: create excel spreadsheet What is the correct formatting for a document so that it is recognized in excel? What character, if you are manually creating it, denotes the end of a column and/or create a new line? I am manually creating a .xls file, using the file system, and populating it with data. However, I don't know what excel expects. No, I don't want to create a .csv file because I don't want the user to be

validate empty textboxes before leaving the textbox

孤街醉人 提交于 2019-12-13 04:06:00
问题 I am developing an asp web application and I have an online form, I can already prompt the users that the text box is empty after clicking the submit button, however I want to prompt the user that the textbox cannot be left blank.. for example last name, middle name, and first name, when I am on the last name field, and I went to the middle name field, the last name textbox was left empty, I want to prompt the users that the last name textbox was left empty, and when there is already value,

Classic ASP Session Variables Lost on Windows Server 2008 R2 / IIS 7

谁说我不能喝 提交于 2019-12-13 04:01:03
问题 We transferred our existing website which is running on a Server 2003 machine using iis6 and coded with classic asp to a Server 2008 64 bit machine using iis7 and classic asp. The only changes to the pages were for our calls to a Universe db, which need a new connection string . We tested all the pages within the department running 4-5 users and all went well. When we made it live for everyone (between 40 and 100 users) users were losing their session variables some immediately and others

Is it possible to use V8 in ASP?

﹥>﹥吖頭↗ 提交于 2019-12-13 04:00:38
问题 Since ASP (Active Server Pages) seems to be supported for at least 10 years, would it be possible to run ASP on V8? (Have anyone tried that?) (Note: I know that there is node.js or owin and advantages of these:) UPDATE: According to Wikipedia it also supports third party scripting languages for instance PerlScript. So, it seems to me that scripting layer is provided by a COM, therefore it might by possible to create COM wrapper for V8 that could be used in ASP. 回答1: As many people have said

How to disable a link based on the database value (ASP page)

倖福魔咒の 提交于 2019-12-13 03:45:17
问题 I would like to disable a link based on the database value (ASP page). Does anyone know how to do this? Are there any example available? Need your help. Thanks. 回答1: This is a pretty vague question but in Classic ASP you can use VBScript to test your database value and then Response.Write out either the anchor tag or just a span tag with the text: <% If CBool(rs("showlink")) = True Then %> <a href="somewhere.asp">Link Text</a> <% Else %> <span>Link Text</span> <% End If %> This assumes that

activex can't create object by vbs but can by classic asp

我们两清 提交于 2019-12-13 03:43:20
问题 On my Windows Server 2008 R2 I installed a COM object and can create it from a classic ASP page. When I call it from a vbscript file, I get the "can't create" message. I have tried starting Powershell as administrator and using that to run the script. No luck. I have tried giving the "everyone" user full control over the COM DLL. No luck. Any ideas? 回答1: The only thing that makes sense to me is that the COM object is the same bit-ness as the class ASP and a different bit-ness than the script

Migrate from Classic ASP -> ASP.NET over six months - strategy for session?

和自甴很熟 提交于 2019-12-13 03:41:23
问题 I'm using an ASP Classic app that makes use of session state. It's got quite a few pages. I'm slowly migrating to .NET, with an ETA of about six months. Is it worth changing over the classic asp to use a custom DB session for an implementation of that time frame? Or should I just migrate so features are separate between the apps and no session is shared? Thanks! 回答1: In the past, I've transitioned by maintaining two apps, and passing authenication information between the two at the database

Are there restricted characters in ADO varchars?

末鹿安然 提交于 2019-12-13 03:31:08
问题 We have a simple file browser on our intranet, built using ASP/vbscript. The files are read by the script and added to an ADO Recordset (not connected to a database), so we can sort the contents easily: Set oFolderContents = oFolder.Files Set rsf = Server.CreateObject("ADODB.Recordset") rsf.Fields.Append "name", adVarChar, 255 rsf.Fields.Append "size", adInteger rsf.Fields.Append "date", adDate rsf.Fields.Append "type", adVarChar, 255 rsf.Open For Each oFile In oFolderContents if not left