asp-classic

How do I create a document on the server by running an existing storedprocedure or the sql statement of that procedure on a R2008 sql server

纵饮孤独 提交于 2019-12-26 03:47:08
问题 I have an application that runs a stored procedure which generates the results of a dynamic form. the same procedure is used for many forms which would then have different columns. I want to call a stored procedure to run the existing stored procedure and dump the results to a newly created document on the server and return the path to the file. from the asp classic program side I can then generate a link for download of the report. Something like the following might have worked on the older

ASP - Changing variable name (numbering) or adding numbers to a variable in asc order to assign values

╄→гoц情女王★ 提交于 2019-12-25 19:05:37
问题 How to change the variable name numbering in ascending order to assign values to them. eg: car_1, car_2, car_3, car_4........ so on.. my coding is something like; for i=1 to 20 var(i) = request.form("car_"i) next foreach ......so on........ response.write(var(12) & "<br/>") I need a way to increase the number of 'car_' to assign each car value to the 'var' array. I have tried to add it like this: var(i) = request.form("car_"&i) AND var(i) = request.form("car_"i"") and none of these work. I

ASP - Changing variable name (numbering) or adding numbers to a variable in asc order to assign values

主宰稳场 提交于 2019-12-25 19:05:25
问题 How to change the variable name numbering in ascending order to assign values to them. eg: car_1, car_2, car_3, car_4........ so on.. my coding is something like; for i=1 to 20 var(i) = request.form("car_"i) next foreach ......so on........ response.write(var(12) & "<br/>") I need a way to increase the number of 'car_' to assign each car value to the 'var' array. I have tried to add it like this: var(i) = request.form("car_"&i) AND var(i) = request.form("car_"i"") and none of these work. I

Website does not work when moving the files to another server?

非 Y 不嫁゛ 提交于 2019-12-25 18:56:11
问题 ![enter image description here][1]I'm trying to troubleshoot this problem. I created a basic asp page with Javascript in one server which works fine at the moment but when I move the asp page and all the related files to the new server it does not work. What my asp page does is ask for last or first name in text box and it has button which after it is press it returns all the matches with contact info. from Microsoft Access database . HTML : <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01

Simple fetch ASP prepared statement

霸气de小男生 提交于 2019-12-25 18:45:24
问题 I've used php for everything, but now I need to look up something in MS SQL with ASP. I cannot for the love of God figure out how to bind post parameters to a prepared statement and print the results. I need to fetch only 1 row for each lookup, where the SQL statement would look like: SELECT ID,NAME FROM MEMBERS WHERE ID = ? I've gotten as far as this, from an example and reading a bit of posts: Response.Buffer = True On Error Resume Next Dim host Dim port Dim user Dim password Dim database

Asp Classic Connection String 500 - Internal server error

旧时模样 提交于 2019-12-25 18:29:34
问题 Hello I'm trying to connect to the oracle data source and seems like when i test the code its giving me an error. Also, I believe it might be my data source path is wrong. Is there way to check the data source path in oracle or any kind of way? Thanks <!--INCLUDED FILE = reset_password.asp --> <% DIM strEmail strEmail = Request.Form("email") IF strEmail <> "" THEN %> <!--#INCLUDE VIRTUAL="/includes/connection.asp"--> <!-- ************SQL CONNECTION INSERT HERE*********************--> <!-- ***

Asp Classic Connection String 500 - Internal server error

喜欢而已 提交于 2019-12-25 18:29:07
问题 Hello I'm trying to connect to the oracle data source and seems like when i test the code its giving me an error. Also, I believe it might be my data source path is wrong. Is there way to check the data source path in oracle or any kind of way? Thanks <!--INCLUDED FILE = reset_password.asp --> <% DIM strEmail strEmail = Request.Form("email") IF strEmail <> "" THEN %> <!--#INCLUDE VIRTUAL="/includes/connection.asp"--> <!-- ************SQL CONNECTION INSERT HERE*********************--> <!-- ***

Classic ASP HTTP Post from another server

天大地大妈咪最大 提交于 2019-12-25 18:17:35
问题 I am litte confused, i want to protect one page in classic asp from being accessed by Get Method. Is it possible that someone can post data from another server to my page? If Yes, how to detect that and allow only post from my server. Thanks for help. 回答1: If you are currently using Request("ParameterName") to retrieve parameters then you should change to Request.Form("ParameterName") which will only get the parameter if it was POSTed. Alternatively you can lookup the method used to access

How to use url encoding function between asp.net and asp

浪子不回头ぞ 提交于 2019-12-25 17:37:41
问题 I want to write the two functions that is used for asp.net and asp. I want to write two version. This function is used url encode and decode. Now, I got a new problem. This is how to work server.urlencode. So, how to implement this url encode function. I have url decode function for asp. I try to get url encode function for asp. So that, I can write url encode and decode in asp.net. Please, help me. This is url decode function. Function URLDecode(sConvert) Dim aSplit Dim sOutput Dim I If

Trying to write UPDATE back to SQL in ASP - Incorrect syntax near '='

你。 提交于 2019-12-25 17:14:10
问题 I'm a bit green when it comes to Classic ASP, so I apologize in advance. I have an asp page with a form that gets filled in with details of pc equipment. this then adds it to the SQL database. Works a charm... However, on the view page where we can then change any of the details, when I click the "save changes" button I get an error. Incorrect syntax near '=' Here is what I have: <!-- #include file="Tauthenticate.asp" --> <!--#include file="database.asp"--> <% pcname=request.form("T1") pctype