c# - ASP.NET ObjectDataSource could not find a non-generic method that has parameters -


i using formview control on asp.net page objectdatasource linked business tier component connected stored procedures in sql server. getting objectdatasource not found error , have made sure components contain parameters (and exist).

enter image description here

i can't figure out why can't find parameters though there?

stored procedure:

update [anime_list] set [name] = @name, [animeimage] = @anime_image, [synopsis] = @synopsis, [type] = @type, [episodes] = @episodes, [genres] = @genres, [rating] = @rating (([animeid] = @original_animeid)); 

business component:

[dataobjectmethod(dataobjectmethodtype.update)] public static void updateanimelist(string name, string anime_image, string synopsis,      string type, short episodes, string genres, decimal rating, int original_animeid,     int animeid) {     animelist.animelistupdatecommand(name, anime_image, synopsis, type, episodes,         genres, rating, original_animeid, animeid); } 

database design:

enter image description here

table adapter configuration:

enter image description here

asp.net:

<asp:objectdatasource id="animedatasource" runat="server" deletemethod="deleteanimetitle" insertmethod="insertanimelist" oldvaluesparameterformatstring="original_{0}" selectmethod="getalltitles" typename="business.banimelist" updatemethod="updateanimelist">             <deleteparameters>                 <asp:parameter name="original_animeid" type="int32" />             </deleteparameters>             <insertparameters>                 <asp:parameter name="name" type="string" />                 <asp:parameter name="anime_image" type="string" />                 <asp:parameter name="synopsis" type="string" />                 <asp:parameter name="type" type="string" />                 <asp:parameter name="episodes" type="int16" />                 <asp:parameter name="genres" type="string" />                 <asp:parameter name="rating" type="decimal" />             </insertparameters>             <updateparameters>                 <asp:parameter name="name" type="string" />                 <asp:parameter name="anime_image" type="string" />                 <asp:parameter name="synopsis" type="string" />                 <asp:parameter name="type" type="string" />                 <asp:parameter name="episodes" type="int16" />                 <asp:parameter name="genres" type="string" />                 <asp:parameter name="rating" type="decimal" />                 <asp:parameter name="original_animeid" type="int32" />                 <asp:parameter name="animeid" type="int32" />             </updateparameters>         </asp:objectdatasource> 

thanks help!

it seems failing looking animeimage.

i'd suggest matching casing (capitalization, don't use under_case) , order of arguments error page asking for.

something like

[dataobjectmethod(dataobjectmethodtype.update)] public static void updateanimelist(string name, string **animeimage**, string synopsis,      string type, short episodes, string genres, decimal rating, int original_animeid, int animeid) {     ... } 

Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -