Hi,
I am new to tableadapters and I am trying out this example to do custom paging and stuff with tableadapters:
http://www.asp.net/learn/data-access/tutorial-26-vb.aspx
What they did inside was to simply select all products in the database table. What if I need to get a count of the products with name starting with,say 'amd%'. If I were to use call the 'SelectCountMethod' in the ObjectDataSource,would it be able to accept functions with input parameters?
Like say,SelectCountMethod=TotalNumberOfProducts(anyword) ?
How do I do this? Any help is much appreciated!
Thanks!
I am new to tableadapters and I am trying out this example to do custom paging and stuff with tableadapters:
http://www.asp.net/learn/data-access/tutorial-26-vb.aspx
What they did inside was to simply select all products in the database table. What if I need to get a count of the products with name starting with,say 'amd%'. If I were to use call the 'SelectCountMethod' in the ObjectDataSource,would it be able to accept functions with input parameters?
Like say,SelectCountMethod=TotalNumberOfProducts(anyword) ?
How do I do this? Any help is much appreciated!
Thanks!
Last edited by a moderator: