JavaScript display data from database in angularjs and json display data from another sheet in excel,display data from

I am trying to display data from database in angularjs using webservice But geting Error[object Object] while retriving data

My web method is:

<WebMethod()> _
<ScriptMethod(ResponseFormat:=ResponseFormat.Json)> _
Public Function GetData() As String
    Dim strCon As SqlConnection = New SqlConnection("Data Source=PC12\SQL2;Initial Catalog=TestData;User ID=abc;Password=xxxx; timeout=0;")
    Dim dt As DataTable = New DataTable
    Dim da As SqlDataAdapter
    Dim cmd As SqlCommand = New SqlCommand("select * from user", strCon)
    strCon.Open()
    da = New SqlDataAdapter(cmd)
    da.Fill(dt)
    Dim serializer As New System.Web.Script.Serialization.JavaScriptSerializer()
    Dim rows As New List(Of Dictionary(Of String, Object))()
    Dim row As Dictionary(Of String, Object)
    For Each dr As DataRow In dt.Rows
        row = New Dictionary(Of String, Object)()
        For Each col As DataColumn In dt.Columns
            row.Add(col.ColumnName, dr(col))
        Next
        rows.Add(row)
    Next
    Return serializer.Serialize(rows)
End Function

My javascript to call webservice:-

$(document).ready(function () {
        $.ajax({
            type: 'POST',
            url: 'WebService1.asmx/GetData',
            data: '{}',
            contentType: 'application/json; charset=utf-8',
            dataType: 'json',
            success: function (data) {
                alert("Result: " + data);
            },
            error: function (XMLHttpRequest, textStatus, errorThrown) {
                alert("Error: " + errorThrown + XMLHttpRequest + textStatus);
            }
        });
    });
Answer:1

In an isomorphic application with Reactjs, you need to pass the identical initial state that was rendered on the server down to the client (which will then 'rehydrate' the app with event bindings and ...

In an isomorphic application with Reactjs, you need to pass the identical initial state that was rendered on the server down to the client (which will then 'rehydrate' the app with event bindings and ...

  1. json.stringify window object
  2. pass json object in window.location.href

I have a javascript object and want to use angular's filter on a specific deep property but it does not seem to work. function MyCtrl($scope, $filter) { $scope.items = [ {id:{val:1,str:'abc'}, ...

I have a javascript object and want to use angular's filter on a specific deep property but it does not seem to work. function MyCtrl($scope, $filter) { $scope.items = [ {id:{val:1,str:'abc'}, ...

  1. angularjs filter specific fields
  2. angularjs filter specific property
  3. angularjs filter specific column
  4. angularjs filter by property
  5. angularjs filter by multiple properties
  6. angularjs filter by object property
  7. angularjs filter by date
  8. angularjs filter by
  9. angularjs filter by name
  10. angularjs filter by field
  11. angularjs filter by property value
  12. angularjs filter by function
  13. angularjs filter by array of values
  14. angularjs filter by multiple values
  15. angularjs filter by value
  16. angularjs filter by id
  17. angularjs filter by key
  18. angularjs filter by two properties
  19. angularjs filter by array
  20. angularjs filter by property in controller

I am trying to develope a e-learning site for kids. It contains an excercise to select the right answer among the given four options,by seeing the clue image. When the kid selects the right answer,the ...

I am trying to develope a e-learning site for kids. It contains an excercise to select the right answer among the given four options,by seeing the clue image. When the kid selects the right answer,the ...

  1. javascript validation error message display
  2. javascript validation error
  3. javascript validation error in eclipse
  4. javascript validation error messages
  5. javascript validation error class
  6. javascript throw validation error
  7. javascript add validation error
  8. javascript remove validation error
  9. javascript show validation error
  10. javascript form validation error div
  11. javascript form validation error messages
  12. javascript html validation error
  13. javascript internal validation error
  14. javascript checkbox validation error
  15. javascript validation remove error message
  16. javascript input error validation
  17. javascript focus on validation error
  18. javascript show validation error message
  19. javascript custom validation error message
  20. javascript input validation error message

I'm using Cors requests to communicate between my client and server placed in two different domain. I configurate my apache http server this way it's using SSL : //with AJAX withCredentials=true (...

I'm using Cors requests to communicate between my client and server placed in two different domain. I configurate my apache http server this way it's using SSL : //with AJAX withCredentials=true (...

  1. cors request method options
  2. cors access-control-request-method
  3. invalid cors request post method