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.
I am trying to capture some information about 404 errors occurring on our website. I have defined a custom error page in IIS5 using the properties of the site. I am creating a 404 error by mistyping an address. The custom 404 page is called, but there is no data in Server.GetLastError.
Code: Dim objError Set objError = Server.GetLastError() strNumber = objError.AspCode strSource = objError.Category strPage = objError.File strDesc = objError.Description
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 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 .
I am not sure if this has already been addressed before- I am trying to access the clipboard object from a web-form using ASP.NET. The scripting language is VB. I can do this on VB.NET but not sure how to get a reference to the clipboard object on ASP.NET
I have an MS Access DB and wanting to display OLE Object(pictures) data type of MS Access to the browser. Is there a way that I can call it from the database?
I've got a form handler that I'm useing to grade a test. The test contains some random questions pulled from a database. I'm wondering if there is a way with the request object, to get the name of the form element from the page with the form in addition to the information entered in the text box, or the value of the radio button clicked. I can get the value's from text boxes and the values of radio buttons selected, but I can't get the name of the form element. I've looked in the reference material I've got and Googled for an answer, but can't seem to find one.
The problem is that I cannot create an object at the Application level using GLOBAL.ASA. However, the aftfam object works perfectly well when created on an ASP page using Server.createobject. It outputs "true556" which is expected. The problems does not seem to be syntax since the reference to the AUtils object seems to work just fine. Is there some magic difference in my VB code that differs depending on how I create the object?
when trying to connect remote desktop web connection...the "non-web" connection works perfectly (i.e. just launching mstsc and connection directly to an IP).I believe that the problem might exist in my connect.asp file
I'm reading 'ASP in a nutshell' and i'm trying out the error trapping features. The book says that from ASP 3.0 on there is a server object method called GetLastError. It also advocates this beiing the best way of analyzing errors.I do not have this method on my IIS installation. (All the other ASP code I run according to the book is ok). I have Windows NT 4.00.1381 and IIS 4.0 (Is my IIS version to old?) If this is the case what is the best approach in trapping errors?
The current code (see below) works. But, I wonder if there's better way to test if a node object has something or not.
<% ... ' want to find if /Root/Node's id attribute is 1, ' if yes: get its child node <num> Dim nodeA : Set nodeA = xmlDoc.selectSingleNode("/Root/Node[@id='1']/num") ' test if nodeA have something If TypeName(nodeA) = "Nothing" Then ' -- NO: nodeA has nothing Else ' -- TypeName is "IXMLDOMElement" ' -- YES: nodeA has something End If ... %>
I have tried other functions, such as IsEmpty(), IsNull(), IsObject(): none can get the result I wanted.
I have a registered COM object in my server, named ObjectA. And ObjectA has 2 functions, named FunctionA and FunctionB.
Now, I am having problem in accessing some of the functions in ObjectA. For example, when I call to ObjectA.FunctionA, it works fine. But, when I call to ObjectA.FunctionB, it didn't jump into the ObjectA at all. Anyone know why this happen?
i build my sql string by using bunch of if-end if statements, after storing the whole SQL string into variable strSQL i put into the command object's CommandText property like so:
objCommand.CommandText = strSQL Set rsRec = objCommand.Execute 'rsRec being a recordset
then i want to be able to display the data: While Not rsRec.EOF Response.Write(rsRec("FIRST_NAME") & " " & rsRec("LAST_NAME") & " - " & rsRec("FIRM_NAME") & _ " " & rsRec("EMAIL") & " " & rsRec("CITY") & "<BR>") rsRec.MoveNext Wend
but this gives me an error saying: Object doesn't support this property or method: 'CommandText'
We have a desgined a web application with ASP, VB, Oracle, Javascript. Ours is a three tier applicaton with the component proxy exported to IIS on the web server.
We have the error 'object required' throwed inconsistently by ASP. After awhile, if we refresh the page the page is working fine. We have been having performance problems like Failureenlisting Resource Manger and MSDTC errros also.