[Webinar] Learn how to a build a cloud-first strategyRegister Now


asp.net update stored procedure c#

Posted on 2007-10-12
Medium Priority
Last Modified: 2013-12-17
I have the following code using wizard, and my hand codings, assume we have detailview, and they are working...
And when the update link is clicked, it always said that "Procedure or function Up_updateoffer has too many arguments specified.
Any ideas why? I used asp.net 2.0 c#

<asp:SqlDataSource ID="SqlDataSource_SingleOfferID"
                       ConnectionString="<%$ ConnectionStrings:DBconnection %>"
            <asp:SessionParameter Name="memberid" SessionField="loginid" Type="Int32" />
            <asp:QueryStringParameter Name="offerid" QueryStringField="offerid" Type="Int32" />
            <asp:Parameter Name="memberid" />
            <asp:Parameter Name="manufactureid" />

ALTER PROCEDURE dbo.up_updateoffer
      @memberid int,
      @manufacturerid int
      /* SET NOCOUNT ON */
      UPDATE tblproductlist
      manufacturerid = @manufacturerid
      WHERE  (memberid = @memberid)

Question by:riskyricky1972
LVL 29

Accepted Solution

QPR earned 1000 total points
ID: 20069909

            <asp:Parameter Name="memberid"  Type="Int32" />
            <asp:Parameter Name="manufactureid"  Type="Int32" />

Author Comment

ID: 20070400
same error after the try

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses

868 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question