zoukankan      html  css  js  c++  java
  • 获取Json数据

    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="JsonSendWay.aspx.cs" Inherits="JsonSendWay" %>

    <% =GetJsonData()%>

    //代码

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using Newtonsoft.Json;

    public partial class JsonSendWay : System.Web.UI.Page
    {
      protected void Page_Load(object sender, EventArgs e)
      {



      }
      protected string GetJsonData()
      {
        string jsonData = "";
        string sendWayId = Request.QueryString["sendWayId"];
        if (!string.IsNullOrEmpty(sendWayId))
        {
          SendWay sendWay = OrderInfoManager.GetSendWayById(Int32.Parse(sendWayId));
          if (sendWay != null)
          {
            jsonData = JsonConvert.SerializeObject(sendWay);
          }
        }
        return jsonData;
      }
    }

      

  • 相关阅读:
    CodeForces 514B
    CodeForces 514A
    UVa 818
    HDU 1003
    UVa百题总结
    UVa 11526
    UVa 12412
    UVa 211
    UVa 1587
    UVa 225 – Golygons [DFS+剪枝]
  • 原文地址:https://www.cnblogs.com/simpleBlue3/p/3889112.html
Copyright © 2011-2022 走看看