本文介绍了如何从Web服务URL访问值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个会显示值的网址
{result_page:[{type:auction-summary,self_url: uat2-server.auctionmobility/v1/auction/1-DB6T/summary\",\"detail_url\":\"uat2-server.auctionmobility/v1/auction/1-DB6T/ truncated_description:Jenny Stamp Locket,World Coins,US Currency,US Coins,row_id:1-DB6T,auction_type:live,last_updated:2015-05-15T18:00 :04Z TIME_START: 2015-05-20T18:00:00Z, 持续时间: PT6H, 时区: 美国/纽约, auction_code:空, 称号: 其Rarities Auction,viewing_information:null,publication_status:full,location_name:纽约,纽约,cover_thumbnail:uat-images.auctionmobility/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/v1/auction/1-DB6T/lots\"}],\"query_info\":{\"base_query\":\"uat2-server.auctionmobili ty/v1/auction/upcoming?include_draft=false\",\"next_page\":null,\"prev_page\":null,\"page_size\":20,\"page_start_offset\":0,\"total_num_results\":1}} 我想点击一下按钮调用此网址,我想将此结果存储为项目中的JSON字符串 < asp:按钮 ID = btnSubmit runat = server 高度 = 27px 文字 = 提交 宽度 = 70px >这是我的按钮。 请帮助我。提前谢谢
解决方案在代码项目中看到这篇文章: 使用C#从Web获取JSON数据并将其映射到.NET Class =>轻松! [ ^ ] www.c-sharpcorner/UploadFile/dacca2/了解-jquery-ajax-function-call-web-service-using-jque / [ ^ ]
I have an url which will show the values
{"result_page":[{"type":"auction-summary","self_url":"uat2-server.auctionmobility/v1/auction/1-DB6T/summary","detail_url":"uat2-server.auctionmobility/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":"uat-images.auctionmobility/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":"uat2-server.auctionmobility/v1/auction/1-DB6T/lots"}],"query_info":{"base_query":"uat2-server.auctionmobility/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:Button ID="btnSubmit" runat="server" Height="27px" Text="Submit" Width="70px">This is my button. Please Help me.Thanks in advance
解决方案 see this article in code project : Use C# to get JSON Data from the Web and Map it to .NET Class => Made Easy![^] www.c-sharpcorner/UploadFile/dacca2/understand-jquery-ajax-function-call-web-service-using-jque/[^]更多推荐
如何从Web服务URL访问值
发布评论