Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ObjectDataSource Parameters Name
Message
From
26/06/2008 10:01:37
 
General information
Forum:
ASP.NET
Category:
ADO.NET
Miscellaneous
Thread ID:
01326895
Message ID:
01326925
Views:
15
Thanks for reply :

How to call UpdateMethod from detailsView, where UpdateParameter Name different from the UpdateMethod?

eg: my UpdateParameters is pplId in detailsView, where in my UpdateMethod, parameters rename as iCusId. as show in my code :
>{asp:ObjectDataSource ID="ObjectDataSource2" runat="server" InsertMethod="AddBrdCusOr"  SelectMethod="GetBrdCusOr1" TypeName="mySqlBrdBLL" UpdateMethod="UpdateBrdCusOr" }
>        {UpdateParameters}
>
>
>            {asp:Parameter Name="pplId" Type="Int32" /}  <---------------------------- here is pplid
>            {asp:Parameter Name="id" Type="Int32" /}

.
Where in updatemethod, using iCusId as parameter
public bool UpdateBrdCusOr(Int32 iCusId, Int32 id)  <------------------------ here, using ICusId
If I call updatemethod, vs2005 will prompt me error : cannot found the general method which have paramters iPplId, id.....

TIA.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform