473,394 Members | 1,787 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

ASP Parameters

Hi guys. When executing the following code, i get this error:

Microsoft VBScript runtime error '800a01b6'

Object doesn't support this property or method: 'sqlRegistrantUser.Paratemers'

/register.asp, line 211

Anyone can help please. I am a asp.net developer and i don't understand why this is happening.
Expand|Select|Wrap|Line Numbers
  1.  
  2. Set conn = server.CreateObject("ADODB.Connection")
  3. Set sqlRegistrantUser = server.CreateObject("ADODB.Command")
  4. Set objparam = server.CreateObject("ADODB.Parameter")
  5. conn.ConnectionString = Application ("ALloyd")
  6. conn.Open
  7. sqlRegistrantUser.CommandText = "dbo.usp_InsertRegisteredUser"
  8. sqlRegistrantUser.CommandType = adCmdStoredProc
  9. sqlRegistrantUser.ActiveConnection = conn
  10.  
  11. Set objparam = sqlRegistrantUser.CreateParameter("@titleChecked", adVarChar, adParamInput, 4, titleChecked)
  12. sqlRegistrantUser.Paratemers.Append objparam 
  13. Set objparam = sqlRegistrantUser.CreateParameter("@firstNameChecked", adVarChar, adParamInput, 50, firstNameChecked)
  14. sqlRegistrapntUser.Paratemers.Append objparam 
  15. Set objparam = sqlRegistrantUser.CreateParameter("@lastNameChecked", adVarChar, adParamInput, 50, lastNameChecked)
  16. sqlRegistrantUser.Paratemers.Append objparam 
  17. Set objparam = sqlRegistrantUser.CreateParameter("@emailChecked", adVarChar, adParamInput, 200, emailChecked)
  18. sqlRegistrantUser.Paratemers.Append objparam 
  19. Set objparam = sqlRegistrantUser.CreateParameter("@passwordChecked", adVarChar, adParamInput, 50, passwordChecked)
  20. sqlRegistrantUser.Paratemers.Append objparam 
  21.  
  22. sqlRegistrantUser.Execute 
  23.  
  24. Set conn = Nothing
  25. Set sqlRegistrantUser = Nothing
  26. Set objparam = Nothing
  27.  
Jun 26 '08 #1
4 1292
jeffstl
432 Expert 256MB
Do you have these at the top of your .aspx page in which you are working with?

<% @Import Namespace="System.IO" %>
<% @ Import Namespace="System.Data" %>
<% @ Import Namespace="System.Data.SqlClient" %>

That is required to import the librarys needed for your code. I think the 3rd one is all you need but the other 2 are also for some pretty basic functions.
Jun 26 '08 #2
jhardman
3,406 Expert 2GB
Could you clarify please? you state you are an ASP.NET developer, but your error message appears to come from an ASP page. Is this ASP or ASP.NET? (The file extension for ASP.NET should be .aspx)

Jared
Jul 1 '08 #3
jhardman
3,406 Expert 2GB
Expand|Select|Wrap|Line Numbers
  1.  
  2. sqlRegistrantUser.Paratemers.Append objparam 
  3.  
Maybe the issue is that you misspelled "Parameters".

Jared
Jul 1 '08 #4
Curtis Rutland
3,256 Expert 2GB
Maybe the issue is that you misspelled "Parameters".

Jared
Nice catch. I never would have noticed that.
Jul 1 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Zlatko Matić | last post by:
Let's assume that we have a database on some SQL server (let it be MS SQL Server) and that we want to execute some parameterized query as a pass.through query. How can we pass parameters to the...
2
by: Mark | last post by:
I created a test to check the execution time difference between executing a SQL Server stored procedured using explicit parameters versus not. In one case I created new SqlParameters in the code,...
4
by: Tim::.. | last post by:
Can someone tell me a better way or give me a link that shows a better way to create large numbers of SQL parameters... Example... A better way to write this code! <code> Sub...
14
by: cody | last post by:
I got a similar idea a couple of months ago, but now this one will require no change to the clr, is relatively easy to implement and would be a great addition to C# 3.0 :) so here we go.. To...
18
by: John Friedland | last post by:
My problem: I need to call (from C code) an arbitrary C library function, but I don't know until runtime what the function name is, how many parameters are required, and what the parameters are. I...
2
by: Hexman | last post by:
Hello All, Well I'm stumped once more. Need some help. Writing a simple select and update program using VB.Net 2005 and an Access DB. I'm using parameters in my update statement and when trying...
12
by: pamelafluente | last post by:
Hi guys, In the past I have used several time optional parameters in my function. But Now I am more inclined to think that they are more dangerous than useful, and probably better to be...
1
by: John Kotuby | last post by:
Hi all, I am working on porting an application from VB6 to VB.NET 2003 and am running into some problems. When declaring and populating the parameters for a SQL Stored Procedure by using the...
0
by: Xah Lee | last post by:
In this article, i explain how the use of bit masks is a hack in many imperative languages. Often, a function will need to take many True/False parameters. For example, suppose i have a function...
2
by: Jared Grant | last post by:
I am trying to find the value from some output parameters from a stored procedure. I have tried several different methods but somehow cannot get it to work. here is my source code: dim dr as...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.