如何从Web服务URL访问值

编程入门 行业动态 更新时间:2024-10-24 12:28:25
本文介绍了如何从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访问值

本文发布于:2023-11-08 14:14:45,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1569601.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Web   URL

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!