Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jun 17, 2009 02:04 PM by satalaj
Aug 15, 2008 12:52 PM|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 11:35 AM|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 02:04 PM|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/