Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Procedure or function has too many arguments specified

Reply
Thread Tools

Procedure or function has too many arguments specified

 
 
John Smith
Guest
Posts: n/a
 
      06-29-2005
It seems other people have had this problem, but none of the solutions
proposed fixes my situation. If someone could review the code below
and tell me what I'm missing. Thank you!


<asp:FormView id="LogText" DataKeyNames="LogID" runat="server"
DataSourceID="dsEdit" DefaultMode="Edit">
<EditItemTemplate>
<asp:TextBox id="editText" runat="server" Text='<%#
Bind("LogText") %>' rows="25" columns="120" TextMode="MultiLine" />
<asp:Button Text="Save" CommandName="Update"
runat="server" />
</EditItemTemplate>
</asp:FormView>

<asp:SqlDataSource ID="dsEdit" runat="server"
ConnectionString="Data Source=(local);Initial
Catalog=testDB;Integrated Security=True"
ProviderName="System.Data.SqlClient" SelectCommand="usp_admin_edit"
UpdateCommand="usp_admin_update" SelectCommandType="StoredProcedure"
UpdateCommandType="StoredProcedure"
OldValuesParameterFormatString="{0}">
<UpdateParameters>
<asparameter name="id" Type="Int32" />
<asp:ControlParameter name="strLog"
ControlID="LogText$editText" PropertyName="Text" Type="String" />
</UpdateParameters>

<SelectParameters>
<asp:QueryStringParameter DefaultValue="0" Name="id"
QueryStringField="LogID" Type="Int32" />
</SelectParameters>
</asp:SqlDataSource>




CREATE PROCEDURE [dbo].[usp_admin_update]
@id int,
@strLog text

AS


UPDATE tbl_Test
SET

LogText = @strLog
WHERE LogID = @id





 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Procedure or function Authorize_Member has too many arguments specified Seth Williams ASP .Net 1 09-16-2008 02:21 PM
Procedure or function has too many arguments specified David Lozzi ASP .Net 0 03-02-2007 02:39 AM
Procedure or function has too many arguments specified Mike ASP .Net 3 10-28-2006 07:55 PM
Procedure or function RecordTxn has too many arguments specified c676228 ASP General 2 09-14-2006 04:14 PM
'Procedure or function <stored procedure name> has too many arguments specified',,,ARGH! Mike P ASP .Net 0 06-19-2006 01:19 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57