asp-classic

Classic ASP submitting multi-value checkbox selections and then displaying choices with other table items

社会主义新天地 提交于 2019-12-11 11:08:01
问题 I've looked all over the web and cannot find the answer to this riddle. I am still using VBSCRIPT (Classic ASP) and I have two tables in SQL, (Jobs and Tasks) Jobs Table ID TaskID Tasks Table ID TaskName I basically have a form where a new job can be created and the user can choose one or more tasks from the Tasks Table using checkboxes. Let's assume the user checks Task #1 and #3. This form then submits the selected tasks and then inserts it into the TaskID field inside the Jobs table with a

Why isn't the ADO Extended Properties “HDR=No” flag being obeyed here?

六月ゝ 毕业季﹏ 提交于 2019-12-11 10:58:17
问题 I have a CSV file with no header output by a process I do not control: FOO,<auto>,12345678,8005882300, ,2 FOO,<auto>,23456789,2128675309, ,2 FOO,<auto>,34567890,3125577203, ,2 FOO,<auto>,45678901,9198423089, ,2 I'm trying to access it using Classic ASP with ADO then print out the phone number using this code: stmt = "SELECT * FROM baz.txt" connectstring = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=I:;Extended Properties='Text;HDR=No;FMT=Delimited'" Set conn = Server.CreateObject("ADODB

Requesting field names and values from form and add them on the fly in a script

て烟熏妆下的殇ゞ 提交于 2019-12-11 10:40:32
问题 Hi I have a form and the action is submitting into a script named autoform.asp. In this script I usually request the fields values like this: txtFirstName = Request.Form("txtFirstname") Now I want to make this to work dynamically without hard coding the requests in the script where the form is posting. I managed to do this code to get the the form fields dynamically but they are not being loaded on the fly. For Each Item In Request.Form fieldName = Item fieldValue = Request.Form(Item)

Format line so that I end up with =“08075”

試著忘記壹切 提交于 2019-12-11 10:39:23
问题 How many " (double quotes) do I put around this line so that I end up with ="08075" being pasted into my excel worksheet? The line is: Response.Write vbTab & ResultSet(8,r) I need and '=' sign with a single quote before the ResultSet(8,r) with a closing double quote after... I tried: Response.Write vbTab & "="" & ResultSet(8,r) & """ but that didn't work, plus a couple others but that didn't work, the number of quotes thing always gets me so if someone wants to give me a general rule of thumb

Stripe Integration with classic ASP

狂风中的少年 提交于 2019-12-11 10:29:00
问题 i am trying to integrate stripe payment gateway in classic ASP using vb script , i am very new to ASP and vb script and trying to learn how it could be done. meanwhile i have got a great resource : Integrate stripe using Classic ASP i am just trying to do the same as explained in the above article. My Folder Structure : /stripe -aspJSON1.17.asp -index.asp --My index.asp file-- <!–#include virtual="aspJSON1.17.asp" –> <% Function GetStripe(url,typ) Set xml = Server.CreateObject("Microsoft

XMLHTTP classic asp Post

筅森魡賤 提交于 2019-12-11 10:25:04
问题 I am working with Classic ASP web application. Goal here is to do a time consuming data processing without having client to wait for a response. That resulted in using xmlhttp object async post. Here is the piece of code that should post to desired URL. I am able to hit this page directly when typing the url, and all data processing is functional, however i am unable to kick start this send request in my vbscript. I opted for VBscript because i am doing validations and making sure data is in

Session after login and the possible of hacking

亡梦爱人 提交于 2019-12-11 10:06:07
问题 I want to know once and for all in classic ASP! if i have a form like this <form action="login.asp" method="post"> <input type="text" name="username" value="" /> <input type="password" name="password" value="" /> </form> and in the login.asp page i check if the username and password are correct i give a session("loggedin") a value then in everypage i check for that session and for that value my question - is that the right, most common secure thing to do??? or i miss something? 回答1: I am

using a multi-value Lookup field in a WHERE clause under ADODB

你说的曾经没有我的故事 提交于 2019-12-11 10:03:05
问题 How do you select rows based on a multi-value Lookup field in an Access database? The below ASP code returns no value when using multi-data column: <% Dim Contractors Dim Contractors_cmd Dim Contractors_numRows Set Contractors_cmd = Server.CreateObject ("ADODB.Command") Contractors_cmd.ActiveConnection = MM_Listings_STRING Contractors_cmd.CommandText = "SELECT * FROM Contractor WHERE UserStatus = 'Active' AND AgentID= "& Session("AgentID") Contractors_cmd.Prepared = true Set Contractors =

Registered COM+ object cannot be found in classic asp

强颜欢笑 提交于 2019-12-11 09:59:17
问题 I created a dll in VS2008 using C#. It was compiled using .Net Framework 2.0. The project was created using the Class Library template under Visual C# / Windows. I don't know if that matters but I am trying to use the resulting dll in both classic asp and asp.net applications not on a desktop app. This was created by taking existing classic asp vbscript code and rewriting it in C#. I am not very experienced with creating dlls so there is a lot of still need to learn. I have been searching the

Chosen Jquery, retrieving multiple select values in vbscript/classic asp and ASPupload

牧云@^-^@ 提交于 2019-12-11 09:42:56
问题 this morning I posted a question regarding the Chosen jQuery script which was how im i able to retrieve the values from a chosen jquery multiple select box with classic asp, someone asked me for demo code so when building it, everything seems to work all of the sudden fine, and thought you know i'm getting to old, however after trying to implement the code i ran into the same issues, but I think i might have found the problem that i'm running against. Below you will find the code involved: