Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 24th, 2006, 11:44 AM
Friend of Wrox
 
Join Date: Oct 2005
Posts: 173
Thanks: 0
Thanked 2 Times in 1 Post
Default Procedure or function STOREDPROC has too man

Hi All

I have this problem and I haven’t found the answer to it as yet. Though a few posts in this forum are close.

I have been using Visual Web Developer Express to create a FormView control that updates a SQL database using parameters and a stored procedure.

The error I am receiving is:

 
Quote:
quote:Procedure or function GUPDATE has too many arguments specified
Quote:
I have checked that I have the same parameters within the UpdateParameters of my ASPX page and my stored proc but still seem to get the error.

Can anyone point me in the right direction as what else I should check.

An example of my parameters are:

Code:
<asp:Parameter Name="Title" Type="String" />
<asp:Parameter Name="FirstName" Type="String" />
<asp:Parameter Name="LastName" Type="String" />
<asp:Parameter Name="Mail" Type="Boolean" />
<asp:Parameter Name="Gender" Type="Boolean" />
<asp:Parameter Name="Nation" Type="Int32" />
..and the stored proc...
Code:
@Title nvarchar(30),
@FirstName nvarchar(30),
@FamilyName nvarchar(30),
@Mail bit,
@Gender bit,
@Nation int
Many thanks

Rit
__________________
Rit
www.designandonline.co.uk
INSPIRE | CREATE | DELIVER
 
Old January 24th, 2006, 01:02 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi Rit,

Take a look at this post: http://p2p.wrox.com/topic.asp?TOPIC_ID=38876

Maybe you're suffering from the original_ problem as well?

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old January 24th, 2006, 01:13 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Never mind my previous post, as that doesn't probably apply here.

Take a look here instead: http://www.developersdex.com/asp/mes...P09.phx.gbl%3E

This thread seems to suggest that two way data binding may be the problem. If that doesn't help, can you post the rest of your code?

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old January 25th, 2006, 09:35 AM
Friend of Wrox
 
Join Date: Oct 2005
Posts: 173
Thanks: 0
Thanked 2 Times in 1 Post
Default

Many thanks Imar,

I created the page using VWD and it seemed to work... shame as now I would like to have known what was causing the error... me or it?... I would say me.

Many thanks for your help though.

Rit
 
Old January 25th, 2006, 09:51 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi Rit,

Do you still have the old page? Comparing the two might explain the source of the problem....

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Function Procedure reneemettrie Excel VBA 0 June 13th, 2008 11:06 AM
Function used in procedure mikedeepak SQL Server 2000 3 February 13th, 2008 05:23 AM
Procedure or function has too many arguments Raby VB Databases Basics 6 November 16th, 2007 11:38 AM
Function and Procedure code_lover Oracle 2 July 24th, 2007 07:05 AM
Accummulated Man-Hours mateenmohd SQL Server 2000 0 July 15th, 2005 11:31 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.