本文介绍了如何将json渲染到html表jquery的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Team,



我的代码如下。



Hello Team,

I have the code as follow.

<%@ Page Title="DisplayImageCountForDEO" Language="C#" MasterPageFile="~/Site.Master"

    AutoEventWireup="true" CodeBehind="DisplayImageCountForDEO.aspx.cs" Inherits="QBPO.UI.Web.DisplayImageCountForDEO" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div>
        <table class="style1" border="1">
            <tr>
                <td colspan="2" style="text-align: center">
                    RECORD COUNT FOR EACH DATA ENTRY OPERATOR
                </td>
            </tr>
            <tr>
                <td>
                    <label id="DEOName">
                        DataEntryOperatorsNetworkID</label>
                </td>
                <td>
                    <label id="DEOCount">
                        DataEntryOperatorsCount</label>
                </td>
            </tr>
        </table>
    </div>
    <script>
        var DisplayImageCountForDEOList;
        $(function () {
            try {
                GetDisplayImageCountForDEO();
                $.ajaxSetup({
                    async: false
                });

            }
            catch (exception) {
                manageOverlay(false);
                alert(exception);
            }
        });


        function GetDisplayImageCountForDEO() {
            debugger;
            $.ajax({
                url: 'DisplayImageCountForDEO.aspx/GetDisplayImageCountForDEO',
                type: 'POST',
                contentType: 'application/json; charset=utf-8',
                dataType: "json",
                success: function (result) {
                    debugger;
                    if (result.d != '') {
                        if (result.d != '' && result.d != null) {
                            DisplayImageCountForDEOList = JSON.parse(result.d);
                        }
                        manageOverlay(false);
                    }
                },
                error: function (error) {
                    manageOverlay(false);
                    alert(error.responseText);
                },
                async: false
            })
        };
    </script>
</asp:Content>





我在HTML PAge中有两个标签。我正在获取NetworkID和RecordCount ...这是很好。

但是如何使用Jquery在HTML表格中显示Pagec上的Recordcount和NetworkID(我希望向用户显示Recordcount和NetworkID)我得到了很大的坚持...





谢谢,

Harshal。



I have two Label in HTML PAge.As i am getting the NetworkID and RecordCount ... which is fine.
But how to show that Recordcount and NetworkID on Page(i want to Display Recordcount and NetworkID to user) in HTML Table using Jquery..I got badily Stuck ...


Thanks,
Harshal.

推荐答案







我在HTML PAge中有两个标签。我正在获取NetworkID和RecordCount ...这是很好。

但是如何使用Jquery在HTML表格中显示Pagec上的Recordcount和NetworkID(我希望向用户显示Recordcount和NetworkID)我得到了很大的坚持...





谢谢,

Harshal。



I have two Label in HTML PAge.As i am getting the NetworkID and RecordCount ... which is fine.
But how to show that Recordcount and NetworkID on Page(i want to Display Recordcount and NetworkID to user) in HTML Table using Jquery..I got badily Stuck ...


Thanks,
Harshal.


这篇关于如何将json渲染到html表jquery的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-09 18:05