Click here to Skip to main content
14,733,542 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi Someone want to send on my page a request with POST using the following parameters
1.orderId
2.amount

After I need to Return a JSON formatted as follows:

{"Success":0,"Message":"PUT A MESSAGE YOU WANT TO REACH THE CLIENT HERE","Status":0}

Success can only receive 1 or 0. it is 1 when you are sure the orderId correspond to the amount payed, otherwise return always 0
Message can be anything you want the client to receive
Status can vary from 0 to any number, given different stages of response you want to return.

Please can someone help me how to do this by an example in code .

Thanks!
Posted
Comments
Jameel VM 19-Aug-13 5:04am
   
which technology you are using ASP.NET or ASP.NET MVC?
El Dev 19-Aug-13 6:04am
   
asp.net

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900