Click here to Skip to main content
15,885,869 members
Home / Discussions / ASP.NET
   

ASP.NET

 
SuggestionRe: How solve this error "ModuleNotFoundError: No module named 'requests' " by using pycharm Pin
Richard Deeming11-Sep-19 23:39
mveRichard Deeming11-Sep-19 23:39 
AnswerRe: How solve this error "ModuleNotFoundError: No module named 'requests' " by using pycharm Pin
Richard MacCutchan12-Sep-19 0:19
mveRichard MacCutchan12-Sep-19 0:19 
QuestionRazor Pages Inconsistent Behaviour Pin
Mycroft Holmes7-Sep-19 13:49
professionalMycroft Holmes7-Sep-19 13:49 
AnswerRe: Razor Pages Inconsistent Behaviour - Resolved Pin
Mycroft Holmes7-Sep-19 13:51
professionalMycroft Holmes7-Sep-19 13:51 
QuestionWhen I have deployed My web application In IIS I am getting some extra words Pin
Nigam,Ashish30-Aug-19 2:40
Nigam,Ashish30-Aug-19 2:40 
AnswerRe: When I have deployed My web application In IIS I am getting some extra words Pin
Richard Deeming30-Aug-19 3:16
mveRichard Deeming30-Aug-19 3:16 
Questionhen I have deploy My web application In IIS I am getting some extra words Pin
Nigam,Ashish30-Aug-19 2:35
Nigam,Ashish30-Aug-19 2:35 
QuestionError bind data to html datatable with WebMethod and JavaScript (No data available in table) Pin
BERTHA Nelson26-Aug-19 17:39
BERTHA Nelson26-Aug-19 17:39 
Please help me error when bind data to html datatable, i don't know what's wrong in my code, thx before..

Vb Code
VB
<pre><System.Web.Services.WebMethod()>
    Public Shared Function GetListPriority()
        Dim client As New HttpClient()
        Dim Resp = client.GetAsync(New Uri(ConfigurationManager.AppSettings("WS") + "ListPriority"))
        Dim ds = JsonConvert.DeserializeObject(Of List(Of ListPriority))(Resp.Result.Content.ReadAsStringAsync().Result)
        Dim details As New List(Of ListPriority)()
        For Each i In ds
            Dim oListPriority As New ListPriority
            oListPriority.PriorityCode = i.PriorityCode
            oListPriority.bAktif = i.bAktif
            oListPriority.InputBy = i.InputBy
            oListPriority.InputDate = i.InputDate
            details.Add(oListPriority)
        Next
        Return details.ToArray
    End Function

    Public Class ListPriority
        Public Property PriorityCode As String
        Public Property bAktif As String
        Public Property InputBy As String
        Public Property InputDate As String
    End Class



ASPX

ASP.NET
<asp:Content ID="Content" ContentPlaceHolderID="MainContent" runat="server">
<div id="content-wrapper">
<div class="card mb-3">
        <div class="card-header">
            
               / Master / Priority
            <div style="float: right">
                <button type="button" class="btn btn-info btn-sm" data-toggle="modal" data-target="#myModal">NEW</button>
            </div>
        </div>
        <div class="card-body">
            <div class="table-responsive">
                <table class="table table-bordered" id="dataTable" width="100%" cellspacing="0">
                    <thead>
                        <tr>
                            <th>Priority Code</th>
                            <th>bAktif</th>
                            <th>Input By</th>
                            <th>Input Date</th>
                        </tr>
                    </thead>
                    <tfoot>
                        <tr>
                            <th>Priority Code</th>
                            <th>bAktif</th>
                            <th>Input By</th>
                            <th>Input date</th>
                        </tr>
                    </tfoot>
                   <tbody>
                   </tbody>
                </table>
            </div>
        </div>
        <div class="card-footer small text-muted">Updated yesterday at 11:59 PM</div>
    </div>
 </div>

</asp:Content>


JavaScript

JavaScript
<script src="../vendor/jquery/jquery.min.js"></script>
<script src="../Scripts/demo/datatables-demo.js"></script>
<script src="../vendor/datatables/jquery.dataTables.js"></script>
<script type="text/javascript">
    $(document).ready(function() {
        $.ajax({
            type: "POST",
            contentType: "application/json; charset=utf-8",
            url: "Priority.aspx/GetListPriority",
            data: "{}",
            dataType: "json",
            success: function (data) {
                var trHTML = '';
                for (var i = 0; i < data.d.length; i++) {
                    trHTML += '<tr><td>' + data.d[i].PriorityCode + '</td><td>' + data.d[i].bAktif + '</td><td>' + data.d[i].InputBy + '</td><td>' + data.d[i].InputDate + '</td></tr>';
                    ;
                };$('#dataTable tbody').append(trHTML)},
                error: function(result) {
                alert("Error");
                }
            });
        });
</script>


And show like this :

Image
AnswerRe: Error bind data to html datatable with WebMethod and JavaScript (No data available in table) Pin
ZurdoDev27-Aug-19 1:06
professionalZurdoDev27-Aug-19 1:06 
SuggestionRe: Error bind data to html datatable with WebMethod and JavaScript (No data available in table) Pin
Richard Deeming27-Aug-19 3:00
mveRichard Deeming27-Aug-19 3:00 
QuestionHow to print from android web browser to Bluetooth thermal printer? Pin
enifsolutions21-Aug-19 18:44
enifsolutions21-Aug-19 18:44 
QuestionRe: How to print from android web browser to Bluetooth thermal printer? Pin
Richard MacCutchan21-Aug-19 22:20
mveRichard MacCutchan21-Aug-19 22:20 
QuestionRazor Pages Navigation Pin
Mycroft Holmes19-Aug-19 15:26
professionalMycroft Holmes19-Aug-19 15:26 
AnswerRe: Razor Pages Navigation Pin
F-ES Sitecore19-Aug-19 23:11
professionalF-ES Sitecore19-Aug-19 23:11 
GeneralRe: Razor Pages Navigation Pin
Mycroft Holmes20-Aug-19 14:59
professionalMycroft Holmes20-Aug-19 14:59 
AnswerRe: Razor Pages Navigation Pin
Richard Deeming20-Aug-19 1:59
mveRichard Deeming20-Aug-19 1:59 
GeneralRe: Razor Pages Navigation Pin
Mycroft Holmes20-Aug-19 15:01
professionalMycroft Holmes20-Aug-19 15:01 
QuestionHaving Issues to logging users to active directory through web form Pin
samflex15-Aug-19 4:40
samflex15-Aug-19 4:40 
AnswerRe: Having Issues to logging users to active directory through web form Pin
ZurdoDev15-Aug-19 7:46
professionalZurdoDev15-Aug-19 7:46 
GeneralRe: Having Issues to logging users to active directory through web form Pin
samflex16-Aug-19 3:50
samflex16-Aug-19 3:50 
GeneralRe: Having Issues to logging users to active directory through web form Pin
ZurdoDev16-Aug-19 3:53
professionalZurdoDev16-Aug-19 3:53 
AnswerRe: Having Issues to logging users to active directory through web form Pin
Nathan Minier16-Aug-19 8:29
professionalNathan Minier16-Aug-19 8:29 
QuestionHow to Import and Export Excel File in ASP.NET MVC? Pin
Member 1455824213-Aug-19 8:41
Member 1455824213-Aug-19 8:41 
AnswerRe: How to Import and Export Excel File in ASP.NET MVC? Pin
ZurdoDev13-Aug-19 10:00
professionalZurdoDev13-Aug-19 10:00 
AnswerRe: How to Import and Export Excel File in ASP.NET MVC? Pin
Vincent Maverick Durano13-Aug-19 11:17
professionalVincent Maverick Durano13-Aug-19 11:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.