Not the answer you're looking for? That seems odd to me. Connect with top rated Experts 11 Experts available now in Live! Here's some code from the aspx file and code-behind (just the relevant snippets): ASPX page:
Designed by Wordpress Templates Home Services Forums Advertise Contact or Login Login to Your Account Remember Me? Why do Latin nouns (like cena, -ae) include two forms? Thanks for your help (and the reference - I'll have to look into that too)! Is it bad form to write mysterious proofs without explaining what one intends to do? see here
I had it set to the Type of object within my IEnumerable. How much overhead / throughput penalty does it create? Click the button on keypress in asp.net TextBox In this post, I am explaining the button click functionality on key press in a textbox. Asp.net Eval() and Bind() expressions in data bound controls like GridView and DetailsView The asp.net Eval() and Bind() expressions are heavily used in asp.net GridView and DetailsView data bound controls.
If you think about it, the SelectCountMethod does not make sense at all because the total item count could also be retrieved by the SelectMethod. MS SQL Server MS SQL Server 2005 MS SQL Server 2008 Key concepts of Delegate using C# Article by: ROMA It was really hard time for me to get the understanding I went through many websites and articles but I found them very clumsy. Objectdatasource Could Not Find A Non-generic Method That Takes Parameters Of Type more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed
SelectCountMethod error - looking for parameters? c# asp.net radgrid objectdatasource share|improve this question asked Aug 19 '15 at 3:04 user3196511 230215 add a comment| 1 Answer 1 active oldest votes up vote 0 down vote accepted This Objectdatasource Could Not Find A Non-generic Method That Has No Parameters Anyway, in your case, you are using paging and sorting so the ObjectDataSource will automatically add the parameters for sorting and paging later. Could Not Find A Non-generic Method 'insert' That Has Parameters Newer Post Older Post Home Subscribe to: Post Comments (Atom) Popular Posts How to Create DataTable Programmatically in C#, ASP.NET ?
So that, I can debug the current project and find out why the Exception is thrown. Check This Out Is it possible to parameterize the count method? So I suggest you post some snippets of the code which include the method definition in the c sharp file and the select parameter definition in the HTML source. How to change the schema of stored procedure without recreating it How to respond to a ridiculous request from a senior colleague? Objectdatasource 'objectdatasource1' Could Not Find A Non-generic Method
Why does remote Bash source .bash_profile instead of .bashrc Where should a galactic capital be? I stumbled uponan answer to my problem. miky Manu wrote: Miky, The ObjectDataSource will search for a SelectCount method with the parameters specified in the SelectParameters collection. http://deftmag.com/could-not/objectdatasource-could-not-find-a-non-generic-method-that-takes-parameters-of-type.html Is it possible to parameterize the count method?
Here's the aspx page:
It always throw below error: As I can see all the code is correct in my case. My question - what am I doing wrong in order to implement paging? From your description, I can not understand the issue clearly. I'll look into your thoughts on attributes.
current community chat Stack Overflow Meta Stack Overflow your communities Sign up or log in to customize your list. business logic layer (BLL) or using both business logic layer (BLL) and Data Access Layer (DLL). I keep getting an exception because it is looking for the two original parameters to the Select method even though the SelectCount method is not supposed to have any parameters at have a peek here Dav Guest January 10th,02:27 PM #2 RE: objectdatasource custom paging SelectCount method Hi, Welcome to MSDN newsgroup!
Also, keep in mind that you can add attributes to the methods that will be consumed by the ObjectDataSource with attributes like: System.ComponentModel.DataObjectMethodAttribute(Sy stem.ComponentModel.DataObjectMethodType.Insert) and you know why? Thanks for clearing it up gbam! –Michael Angstadt Apr 8 '14 at 14:01 add a comment| up vote 0 down vote Try making the method public to see if that works. However, it is requiring me to use the same parameters in the SelectCount method that I use for the Select method, which isn't a big problem, but is not the way I am trying to own somebody else's code so i might not be 100% familiar with every single bit of it and in the process missing something important, perhaps?
© Copyright 2017 deftmag.com. All rights reserved.