rss2
asked on
Example webservice with ASP.NET 2.0 calling sql stored procedure
Hello Gurus,
I have asp.net 2.0 framework. Can you send me an example webserivce that gets data from a stored procedure in sql 2005 and puts it in a grid?
Banging my head against the wall on this, and can't make it work. Keep getting "webservice undefined".
I have asp.net 2.0 framework. Can you send me an example webserivce that gets data from a stored procedure in sql 2005 and puts it in a grid?
Banging my head against the wall on this, and can't make it work. Keep getting "webservice undefined".
ASKER
I thought a webservice like GetData should have the following parameters:
[WebMethod]
public static List<Claim> GetData(int startIndex, int maximumRows, string sortExpressions, List<GridFilterExpression> filterExpressions)
{
?
[WebMethod]
public static List<Claim> GetData(int startIndex, int maximumRows, string sortExpressions, List<GridFilterExpression>
{
?
it should have whatever parameters it needs - mine was just a simple example to show how it could be done. Normally a routine to get some data would include some kind of filtering with parameters - but not always.
ASKER
I've attached my code. When I run this, I get Service2ns is undefined.
Please help? :(
Please help? :(
ASKER
Attaching code again..just take the extension "txt" off the end of each file in order to open them up.
Service2.zip
Service2.zip
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
The calling code can then consume that webservice and load the resulting datatable into a grid.
Open in new window