Sunday, February 23, 2014

Can't Access methods of class in web user control ASP.NET

The problem is that your Search method requires parameters and you haven't supplied any when you called it. Your code should look like this:



Category Cat = new Category();
DataTable dt = Cat.Search("MyField", "MyValue");





~~Bonnie DeWitt [C# MVP]


http://ift.tt/1bPbIRj


No comments:

Post a Comment