asp-classic

Response.Write vs <%= %>

南楼画角 提交于 2019-12-20 09:49:03
问题 Bearing in mind this is for classic asp Which is better, all HTML contained within Response.Write Statements or inserting variables into HTML via <%= %>. Eg Response.Write "<table>" & vbCrlf Response.Write "<tr>" &vbCrLf Response.Write "<td class=""someClass"">" & someVariable & "</td>" & vbCrLf Response.Write "</tr>" & vbCrLf Response.Write "</table>" & vbCrLf VS <table> <tr> <td class="someClass"><%= someVariable %></td> </tr> </table> I am mainly asking from a performance point of view in

.NET vs ASP.NET vs CLR vs ASP

别说谁变了你拦得住时间么 提交于 2019-12-20 08:26:51
问题 Although I know the terms I used to forget the differences sometimes...So just to maintain a place for reference...Thanks all for your answers. 回答1: ASP, Active Server Pages (now referred to as ASP Classic) is a server-side scripting environment that predates .Net and has nothing to do with it ASP pages are usually written in VBScript, but can be written in any language supported by the Windows Scripting Host - JScript and VBScript are supported natively, with third-party libraries offering

How to convert pdf to excel? [closed]

南笙酒味 提交于 2019-12-20 07:56:04
问题 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 4 years ago . I am looking for a code/solution in server side (ASP.Net, ASP or PHP) that can convert PDF to excel or read PDF data to excel. I have found iText and I don't know how to make it work with my site. 回答1: Try this You could use Bytescout PDF Extractor SDK. I see you can also download a trial version. You can find

I have already enabled classic asp support on IIS for windows 7, and configured IIS web for classic asp,Yet .asp page is not being displayed? [closed]

ぃ、小莉子 提交于 2019-12-20 07:46:26
问题 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 . My .asp page is in the folder named "MyWeb", and "MyWeb" folder is under wwwroot folder which is under inetpub. I also added MIME types in IIS Manager for .asp as application/asp, and for .aspx as application/aspx I tried it a long but still it is not working. When I go to open that .asp file it is asking for

Passing SQL variable to ASP

我是研究僧i 提交于 2019-12-20 06:31:30
问题 Just a bit of a syntax problem here. I'm using SQL and ASP and have this code thus far: set rs=Server.CreateObject("ADODB.recordset") rs.Open "Select * from Questions", conn sql="INSERT INTO Questions(QuestionText, QuestionType)" sql=sql & " VALUES " sql=sql & "('" & qtext & "'," sql=sql & "'" & "checkbox" & "');" sql=sql & "DECLARE @testID int;" sql=sql & "SET @testID = @@identity;" on error resume next conn.Execute sql,recaffected if err<>0 then Response.Write("An Error Has Occured") else

ActiveX Calendar Control Not Working In Windows 7

丶灬走出姿态 提交于 2019-12-20 06:28:11
问题 We have a classic ASP application that uses the following calendar object: <HTML> <BODY bgcolor="lightgrey"> <OBJECT id=Calendar1 style="LEFT: 0px; TOP: 0px" classid="clsid:8E27C92B-1264-101C-8A2F-040224009C02" VIEWASTEXT> <PARAM NAME="_Version" VALUE="524288"> <PARAM NAME="_ExtentX" VALUE="7620"> <PARAM NAME="_ExtentY" VALUE="5080"> <PARAM NAME="_StockProps" VALUE="1"> <PARAM NAME="BackColor" VALUE="-2147483633"> <PARAM NAME="Year" VALUE="2002"> <PARAM NAME="Month" VALUE="10"> <PARAM NAME=

window history back (-1) not working

为君一笑 提交于 2019-12-20 04:59:06
问题 I have use below code to back for the previous page, but it's not working. the alert box still popup even i click ok on the page. actually there have 3 page include this windows page code. 1st page is user need to fill up the form is name redeem_newcust.asp and the action should be save all the data into the database named redeem_newcustDB.asp. In page redeem_newcustDB.asp have one code to select option for type of redemption then this page will point action to the page redeem_newprocess.asp

Why should I close and destroy a recordset?

人走茶凉 提交于 2019-12-20 04:38:17
问题 I read this article: http://www.utteraccess.com/wiki/Recordsets_for_Beginners, and it says that it's important for me to close and destroy RS's like this: rs.close Set rs = Nothing and if I don't, some bugs may happen. What kind of bugs? What does rs.close means? Does it mean that the connection to the database is kept open for as long as the rs isn't closed? 回答1: rs.close cleans up the resources that are used internally, however because ASP is a single process that doesn't have any GC the

Using VBScript to create CSV files. A function to deal with values to make Excel happy

孤人 提交于 2019-12-20 04:21:11
问题 I would like opinions/suggestions for improvement etc on the following function. It will be wrapped around every value being passed into a CSV file on a classic ASP page. As is below it is handling all situations we are up against, for now.... I would like to know why If Len(txt) = 0 Then fails when it is run in the page that creates the CSV file althouh runs fine when in a regular ASP page. I ma having to use If "" & txt = "" Then to make it work on both pages function insertCSV(txt) 'If Len

create excel spreadsheet

谁都会走 提交于 2019-12-20 02:55:01
问题 Is there any way to create an excel spreadsheets using VBScript? I can create a text file using a FileSystemObject and use any extension I want, but when I try and download this and it gives me the open in excel option a message then appears stating that it is in a different format, and that is what I want to avoid: set fs=Server.CreateObject("Scripting.FileSystemObject") set tfile=fs.CreateTextFile(Server.MapPath("xls/streamtest.xls"),true,false) I know this is pushing text into the file in