• <tfoot id='1l71A'></tfoot>

    • <bdo id='1l71A'></bdo><ul id='1l71A'></ul>

    1. <i id='1l71A'><tr id='1l71A'><dt id='1l71A'><q id='1l71A'><span id='1l71A'><b id='1l71A'><form id='1l71A'><ins id='1l71A'></ins><ul id='1l71A'></ul><sub id='1l71A'></sub></form><legend id='1l71A'></legend><bdo id='1l71A'><pre id='1l71A'><center id='1l71A'></center></pre></bdo></b><th id='1l71A'></th></span></q></dt></tr></i><div id='1l71A'><tfoot id='1l71A'></tfoot><dl id='1l71A'><fieldset id='1l71A'></fieldset></dl></div>

      1. <small id='1l71A'></small><noframes id='1l71A'>

        <legend id='1l71A'><style id='1l71A'><dir id='1l71A'><q id='1l71A'></q></dir></style></legend>

        在 ASP.NET 上创建 JSON 标头

        Creating a JSON Header on ASP.NET(在 ASP.NET 上创建 JSON 标头)

        <small id='brZbD'></small><noframes id='brZbD'>

          <bdo id='brZbD'></bdo><ul id='brZbD'></ul>
        • <legend id='brZbD'><style id='brZbD'><dir id='brZbD'><q id='brZbD'></q></dir></style></legend>
          <i id='brZbD'><tr id='brZbD'><dt id='brZbD'><q id='brZbD'><span id='brZbD'><b id='brZbD'><form id='brZbD'><ins id='brZbD'></ins><ul id='brZbD'></ul><sub id='brZbD'></sub></form><legend id='brZbD'></legend><bdo id='brZbD'><pre id='brZbD'><center id='brZbD'></center></pre></bdo></b><th id='brZbD'></th></span></q></dt></tr></i><div id='brZbD'><tfoot id='brZbD'></tfoot><dl id='brZbD'><fieldset id='brZbD'></fieldset></dl></div>
        • <tfoot id='brZbD'></tfoot>

                    <tbody id='brZbD'></tbody>
                  本文介绍了在 ASP.NET 上创建 JSON 标头的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在将脚本从 PHP 转换为 ASP.net C#.在 PHP 中,我可以使用类似的东西:

                  I am converting a script from PHP to ASP.net C#. In PHP, i could use something like:

                  header('Content-type: text/json');

                  header('Content-type: text/json');

                  header('Content-type: application/json');

                  header('Content-type: application/json');

                  如何告诉我的 aspx 页面在标题中声明它正在打印 JSON 文件?

                  How can I tell my aspx page to declare in the header that it is printing a JSON file?

                  推荐答案

                  Response.ContentType = "application/json";
                  

                  或更一般地

                  Response.Headers.Add("Content-type", "text/json");
                  Response.Headers.Add("Content-type", "application/json");
                  

                  这篇关于在 ASP.NET 上创建 JSON 标头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  PHP Upload File Validation(PHP 上传文件验证)
                  PHP Error - Uploading a file(PHP 错误 - 上传文件)
                  How can I write tests for file upload in PHP?(如何在 PHP 中编写文件上传测试?)
                  php resizing image on upload rotates the image when i don#39;t want it to(php在上传时调整图像大小会在我不想要它时旋转图像)
                  How to send additional data using PLupload?(如何使用 PLupload 发送附加数据?)
                  change button text in js/ajax after mp4 =gt;mp3 conversion in php(在 php 中的 mp4 =gt;mp3 转换后更改 js/ajax 中的按钮文本)
                • <legend id='si9Q0'><style id='si9Q0'><dir id='si9Q0'><q id='si9Q0'></q></dir></style></legend>
                    <i id='si9Q0'><tr id='si9Q0'><dt id='si9Q0'><q id='si9Q0'><span id='si9Q0'><b id='si9Q0'><form id='si9Q0'><ins id='si9Q0'></ins><ul id='si9Q0'></ul><sub id='si9Q0'></sub></form><legend id='si9Q0'></legend><bdo id='si9Q0'><pre id='si9Q0'><center id='si9Q0'></center></pre></bdo></b><th id='si9Q0'></th></span></q></dt></tr></i><div id='si9Q0'><tfoot id='si9Q0'></tfoot><dl id='si9Q0'><fieldset id='si9Q0'></fieldset></dl></div>
                        <tbody id='si9Q0'></tbody>

                      <small id='si9Q0'></small><noframes id='si9Q0'>

                        <bdo id='si9Q0'></bdo><ul id='si9Q0'></ul>

                          <tfoot id='si9Q0'></tfoot>