Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have an url which will show the values
XML
{"result_page":[{"type":"auction-summary","self_url":"https://uat2-server.auctionmobility.com/v1/auction/1-DB6T/summary","detail_url":"https://uat2-server.auctionmobility.com/v1/auction/1-DB6T/","truncated_description":"Inverted Jenny Stamp Locket, World Coins, U.S. Currency, U.S. Coins","row_id":"1-DB6T","auction_type":"live","last_updated":"2015-05-15T18:00:04Z","time_start":"2015-05-20T18:00:00Z","duration":"PT6H","timezone":"America/New_York","auction_code":null,"title":"The Rarities Auction","viewing_information":null,"publication_status":"full","location_name":"New York, NY","cover_thumbnail":"http://uat-images.auctionmobility.com/image/1-DBZ6/","lot_count":109,"active_lot_count":109,"sold_lot_count":0,"total_sold_value":null,"currency_code":"USD","realtime_server_url":null,"lot_url":"https://uat2-server.auctionmobility.com/v1/auction/1-DB6T/lots"}],"query_info":{"base_query":"https://uat2-server.auctionmobility.com/v1/auction/upcoming?include_draft=false","next_page":null,"prev_page":null,"page_size":20,"page_start_offset":0,"total_num_results":1}}


And I want to call this url in a button click and I want to store this result as a JSON string in my project
ASP.NET
<asp:Button ID="btnSubmit" runat="server" Height="27px" Text="Submit" Width="70px">


This is my button.
Please Help me.Thanks in advance
Posted
Comments
Andy Lanng 20-May-15 4:19am    
Do you want to do this client side (javascript and AJAX) or server side (C#)?
F-ES Sitecore 20-May-15 4:20am    
Is the call to the url done on the client or the server? What have you tried so far? If you google "call web service from asp.net c#" you'll find lots of examples of doing this, or "call web service from jQuery" if you want to do it on the client. Go through those examples first and if you get stuck feel free to ask a specific question.

1 solution

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