My solution to your earlier Question covers this topic.
How to create a JSON restful webservice in ASP.NET C# that connect to MS SQL Database and retrieve stored procedures values from the database?
This solution based on your comments.
Quote:
@RaisKazi, I cannot use .net 3.5 or 4.0.I have to make this webservice in .net 2.0.And .NET 2.0 does not support WCF.
You may refer below link to get idea about REST.
http://en.wikipedia.org/wiki/Representational_state_transfer
To develop REST Service, WCF support is not obligatory, you can develop REST Service even using simple
HttpHandler or
HttpModule.[Copied from my earlier solution as fact remains the same.]
You may refer below article which very well explains, how to develop REST service using simple
HttpHandler.
Developing a REST Web Service using C# - A walkthrough