I have been modifying a forum I found on the web for a web site I am developing. Everythiing has been going great (www.tastytuscany.com/forum) until I yesterday when I hit a brick wall. There seesm to be an issue with the email functionality. The author wrote a "send_email" function that I just can't figure out why I keep getting this error:
Microsoft VBScript runtime error '800a0005'
Invalid procedure call or argument
/forum/admin/functions/functions_send_mail.asp, line 158
In the script for the email function, here is an excerpt of the code (he uses a select statement for various email types...) and a call to the function from a page. Might I just modify that include file with my own CDONT script? I use cdonts on other pages in the site just fine? BUT, I would really like to get this to work.. Code:
I'm looping through the source code of an HTML page, looking for links, grabbing the source of those links and saving each one in turn to an HTML page on disk.
This is working fine about 70% of the time, but sometimes it falls over when I try to write the source code as a text file to disk: Code:
I am receiving the following error from the simple script below. This works fine from a .NET form but when I access the dll from a Classic ASP page it fails.
I'm having an "ocassional" problem with a script. I have been unable to duplicate the error on my mac or pc but it's happening to about 5% of our customers.
The page is called add.asp It takes the info from a form, sets a cookie to track the customer, adds the purchase info to the database and redirects to the shopping cart (cart.asp) Code:
I would like to know if anyone knows how to execute a stored procedure from ASP.NET 2.0. I'm using the NorthWind database and I'm trying to execute the "CustOrderHist" stored procedure. The error I get is "Incorrect syntax near 'CustOrderHist'. "
Public Function GetCustomerOrderHistory(ByVal customerid As String) As SqlDataReader Dim conn As New SqlConnection(conString) Dim cmd As New SqlCommand("CustOrderHist", conn) cmd.Parameters.AddWithValue("@CustomerID", customerid) conn.Open() Dim dtr As SqlDataReader = cmd.ExecuteReader(CommandBehavior.CloseConnection) Return dtr End Function
I have a Stored Procedure (SP) being called by my ASP page, but nothing is being executed. The SQL Profiler shows a RPC execute, but the actual SP is not executing as nothing is being inserted.
If I run an EXEC in Query Analyzer, with the same data being passed, it works fine and returns my OUTPUT. The SQL Profiler shows all the hits to the database then too. Code:
I'm trying to call a stored procedure(package) from asp/vb using following code but I got the error message. What's the correct syntax for oracle stored procedured? Code:
My system is on a NT4 (w/SP6a) running IIS 4. I am developing a page that query one record from my Oracle DB 8.1.6 on a separate machine. I am using the MS ODBC for Oracle drive. In my ASP page I have (Connection object has been crreated.) then..
I am just wodering in asp program, if there is anybody writing store procedure for inserting data into database since there are so many parameters need to be passed into store procedure(assume there are many columns in the table).
I need to insert data into two separate tables, the relation between these two tables is 1 row of data in table1 could have multiple rows in table2 related to table1, but if the data insertion into any one of the tables is failed, the transaction will roll back and no data will be remained in any of the tables.
If this needs to be handled in asp program using transact sql, how do I implement it. If I need to it using store procedure, how do I pass the error or success signal to asp program from database.
How do I write the code for a button that will call a function/procedure in ASP and delete all records in an array? Should I use a function or procedure? Anyone who would like to finish this code? Code:
I really don't know what's happening now with my IIS, it's really annoying me, before, when I'm accesing my asp page, I got the "ActiveX component can't create object" error and that's pointing to the line of "Set objConn = Server.CreateObject("ADODB.Connection")".
And I think the registration of my components are fine. I already reinstall my MDAC 2.8 but still no luck, then I used the IIS lockdown tool and now I can run my asp pages. But there's another problem, when I used to process my first page to the second page...
It really takes a long time to process and nothing happens, and when i refreshed the page or close it....I got now this error msg "The remote procedure call failed and did not execute".
That's what I get when I try and view "default.asp" on my server.
EVERY other page works except that and no, it's not the ASP code since it works fine on our web host (uplinkearth.com) as you can see here.
Why does it do that? The service is stared in Services, along with the Locator...why shouldn't it work? It just started doing this not to long ago for no good reason (of course, we all know NOTHING happens for 'no good reason'). Any ideas?
If I type it in (http://frontier/) it doesn't load, so I 'Stop' it, then refresh and gives me that message...
I'm using Windows XP Pro with IIS 5...all service packs and updates installed along with mySQL.
I have a frameset containing two frames named "left" and "right". Their src are "left.asp" and "right.asp". In the right frame I have the following code where I send an argument to the left frame (left.asp).
My problem is how I can send the same argument to "right.asp" too. I want "MyArgument" to be sent to both frames by clicking the link, not only "left.asp". Code:
This code works fine most of the time. I have found cases when the browser drops the file extension of of the file leaving the Url as something like "Validation?BookingNo=45656756" and of course the browser then fails to find the correct web page. I have noted that the problem has occured you a user that is using Safari on a late Version Mac.
other people that have had the problem have also used Macs but I'm not sure what browser they used. Is there something wrong with my code or are these people just using shit browsers that are not worth me worring about. Is there a better way to redirect the user with some other code.
What I have is the database looking up a fieldname by an "Action" statement. I would like to be able to redirect the page if that fieldname does not exist. Code:
I am passing a XML to SP, and SP in return send XML back. When I comment out sp_xml_preparedocument (XML reading block) in SP, ASP is taking returning XML as valid, but, if I uncomment input XML reading block, ASP is giving following error: Code:
I'm trying to create a table in a new Access database, but the line in the code that says
catDB.Tables.Append tblNew
provokes this error:
Microsoft JET Database Engine error '80040e3c' Table ID is invalid.
Could this be a permissions problem? It's a brand-new hosting account, brand-new directories, etc. The DDL code that created the database ran successfully, but now I can't create a table in that database.
It has been said that When attempting to load an XML file saved as UTF-7 (a transfer encoding format for Unicode), the XML parser in Internet Explorer generates the following error message: Invalid at the top level of the document. The same error also occurs when using the MSXML parser from server-side or client-side script. I am getting this error when I use MSXML 3.0 as reference in a VB DLL function called by a ASP file.
IF trim(request(location))="" AND trim(request(FileType))="" AND trim(request(DateMonth)) = "" AND trim(request(DateYear))="" THEN Response.Redirect plmsearch.asp?ac=error END IF
why is the "?" causing the invalid character? everything is coded correctly on the plmsearch.asp page.
I am trying to pass parameter to a stored procedure on a SQL Server 2000 DB and one of the columns I think I am having a problem with is a float data type. Right now my append statement looks like this:
When I execute the stored proc, it returns a precision is invalid error, but I cannot find a adFloat parameter sample anywhere - am I missing something here? Any help would be greatly appreciated. I asked our DBA to make the data type for the column a decimal, but NOOOOO he wants it to be a float instead.
Invalid SQL statement; expected 'DELETE', 'INSERT', 'PROCEDURE', 'SELECT', or 'UPDATE'. /SeniorP/Alert5/ConfirmMember.asp, line 45 (which has this - cmd.Execute)
I have read may pages and Faq's but still no answer. All help would be appreciated.
I will try to attach the form (Member.asp) and the receiving page (ConfirmMember.asp).