Last post Jun 17, 2009 10:04 AM by satalaj
Aug 15, 2008 08:52 AM|dolittle|LINK
Having trouble deleting a user or I should say passing paramaters to the method if I'm reading this error correctly. This is coming froma gridview which has its data as follows...
and the objectsource =
the exception details error I'm getting is .
System.MissingMethodException: No parameterless constructor defined for this object.
what am I doing wrong,I'm simply configuring the grid to standard asp.net stored procedures with object sources..
thanks for any help.
Aug 16, 2008 07:35 AM|mbischoff|LINK
Make sure that your User class (or whatever the class is called that you are displaying in the GridView) has a default constructor, e.g:
public class User
Jun 17, 2009 10:04 AM|satalaj|LINK
You need to pass the parameters to the ObjectDatasource as your stored procedure is accepting parameters.
you can pass it programatically using C# or VB
or follow this http://www.asp.net/learn/data-access/