>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