Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ObjectDataSource Parameters Name
Message
 
 
To
26/06/2008 10:01:37
General information
Forum:
ASP.NET
Category:
ADO.NET
Miscellaneous
Thread ID:
01326895
Message ID:
01326926
Views:
16
>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.

Can you just use the same name of the parameter as you need in your ASPX page? That would be the simplest solution, I think.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform