I've made some progress with the form I was struggling with Friday - basically, I'm trying to write an online application that lets people upload their resume, references and supporting material.
Not everyone will have supporting material, so I'm trying to write something that will just ignore any fields where someone hasn't uploaded. If someone hasn't uploaded a file for each form field, the code below gives me Code:
i am getting this error 'object variable users not set' , can anyone help with what it means, the variable has been set in a global.asa file and i cant figure out what is wrong.
Im having a few prblems with object recordset and variables. I can print data into a table using objrecordset("Type").
But when i try to assign the value to a variable, ex. variable1=objrecordset("Type") i get an invalid use of null error. If i take out the code to assign it to a variable it works fine. So my question is how can i assign the value of objrecordset("type") to variable1.
Public Property Let TableName (sNewTableName) if sNewTableName <> "" Then sTableName = sNewTableName end if End Property
Public Property Get TableName () TableName = sTableName End property
.....
Then in a login page i do this
Set Session("cart") = New CShoppingCart
so now, the cart is a session object that can be called from every page in this session BUT.... when i do this in a different page:
Response.Write Session("cart").TableName
I get an asp error (Erreur d'exécution Microsoft VBScript (0x800A01B6) )saying this is not a supported method (the error is actually in french! i can paste it if u want)
The object seems to be valid (IsNull return false and IsObject returns true) but i cannot invoke its methods and read its properties ....
I've been browsing this and a few other related newsgroups trying to get my head around this problem, and so far all the trails seem to go cold, without an acceptable solution being reached. I'm posting here because there seems to be a few MVP's knocking around, and if they dont know, then it's a safe bet nobody does.
I'm beginning to think that what I want to do is simply not possible - but i'll put it out there once more.
Here goes: I'm writing a content managaement system - and i'm making use of dynamic includes via the "read a text file" technique, and then substitiuting values into markers in the template. Code:
I'll admit my ASP skills are very rusty, and come seeking help.
I'm currently using a dictionary object to store a multi-dimensional array.
I want to pass this dictionary object to an object, which holds an array of dictionary objects.
However I'm finding that the array is not getting set, thus I'm having great issue with dynamically resizing the object's property for every new dictionary object I'm adding.
I have a VC++ COM object which fires an event. I've written VB EXE apps against it and they receive the event notification.
I've now built a simple VB COM object which uses the VC++ COM object internally.
My question is, assuming the ASP page which loads the object does not immediately exit, will the VB COM object be able to receive the events from the internal object?
We are using .net 1.1 on windows 2003 server. This is we are facing in our production server.
When we are doing the load testing we are getting the bellow error. While the load testing this error is not coming frequently. When we run 20 threads for 3 mins we are getting this error message 2 or 3 times. But this line of code is executed by all the threads. Code:
I want to open a recordset object on an .asp page. When I open the recordset I would like to use a stored procedure that expects a parameter to be passed for the stored procedure. I will then use the recordset to loop thru the recordset, update values from the recordset and then update the database by passing parmeters to another stored procedure.
I would like to use the recordset object but can it be used to pass a parameter to a stored procedure? Do I need to use a command object to open the records instead in order to pass the parameter to a stored procedure?
A three-tier user authentication system was running without a problem for almost a year and now is suddenly dysfunctional. We don't know of any changes to any of the servers. It's quite maddening. The details:
1) We know the COM+ app is instanced on the COM+ server (Win 2000). The component graphic spins when CreateObject is called.
2) The proxy is installed on an IIS server (Win 2000) with delivers the interface, written in ASP, to the client PC.
3) These are the error messages displayed when a method of DAMS is called: Code:
I got that right now but i want the variable, console to be placed along with news so when it selects from the db it selects from gcnnews or whatever variable it's on. How do I do that?
I need to assign a value to a variable, but this variable name is dependant upon another variable!! I am including the code below so you can see it, cos if not I am sure you are thinking whattt?? Code:
I have one column in my access database named 'picture'. I uploaded the pictures in the database using OLE Object. Now I want to have a picture of an employe in my ASP form. It gives me an error. The page works without that code-line where picture is mentioned. Code:
I have an xml data that I want to store in a database.
I want the following fields 1. Account-id 2. order-number 3. first-name 4. last-name 5. address-line 6. address-line-2 7 city 8, state 9 postal-code 10 total-points-spent 11 the list of items that were purchased which are in the section item-redeemed
And this is the asp code that I use to move through the list. right now all I can get is the redemption top-level, but I cannot seem to go down to the subitems. Code:
I am creating an e-mail using the CDO object and using the AddAttachment method to attach a file from a URL. I am having a problem in that the file file attached is given a random name (something along the lines of ATXX412.pdf)
Does anyone know if it is possible to rename/assign a name to attached file before the e-mail is sent?
I am writing a function to take a recordset as parameter, and print a HTML Select element according to the record in the recordset. I would like to check if the input object a RecordSet before processing, how can i acheived that?
I have a table called "Document" which has 3 columns
Doc_ID Doc_Name Doc (this is a word doc stored as an OLE object in ms access)
Now in my asp if the user selects a document it should open the word file. I have my case statement that looks like as follows which I think might need some modifications to open a word file: Code:
I have an E-mail ASP Web form that is using a CDO Mail Object. This form has to be filled out before the customer can download our demo. Currently, the customer fills out the form, clicks to submit and a message appears to the customer telling them it was successful and to click on a picture on the form to download the demo. My problem is that many of the customer don't read the message. I want to modify the code so that after the customer clicks SUBMIT, the info is submitted and then the download immediately begins without them having to take further action.
What is the code I should add to begin downloading a file after the form is successfully submitted. Here's some of the code I am currently using:
i have this form sitting on my website that all the data submited trough it goes directly to an access database - what i would like to know is how could i also send an email with the data entered to the recipent? my server does not support CDONTS .
The original programmer of our website put "on error resume next" on every page to cover up his lack of skill. Many of our pages are returning errors that we never see.
I want to make a little script that emails me at the occurance of an error. I copied one that used the Err object but I don't want to use it because I would like line numbers is the email.
I then copied our custom 500 error page that uses the GetLastError function but it always seems to be empty, like no error occurred.
The function "If Err Then" returns true so the Err object sees the error. Why won't GetLastError return the error.