Click here to Skip to main content
15,949,741 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Team,

I have the code as follow.

XML
<%@ 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>


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.
Posted
Comments
[no name] 27-Feb-14 11:10am    
how to work further ..?? please let me know.
Debug and see how these values are present inside DisplayImageCountForDEOList variable. You will get the hint.
[no name] 27-Feb-14 11:42am    
it is in ARRAY Object..
[no name] 28-Feb-14 5:26am    
Is any one can help ...?????
[no name] 3-Mar-14 2:13am    
Any one can help me from this situation???
Thanks
Harshal

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900