title: how to resolve this error "Use of getPreventDefault() is deprecated. Use defaultPrevented instead."
body: <p>I tried to fetch datas for a particualr user from sql sever database using json data. But its always showing error in the console as:</p>
  
  <blockquote>
    <p>"Use of getPreventDefault() is deprecated. Use defaultPrevented
    instead."</p>
  </blockquote>
  
  <p>And values are not retrieving from the database.</p>
  
  <p>My code is :</p>
  
  <p>Client-side:</p>
  
  <pre><code>&lt;body&gt;
  &lt;form id="form1" runat="server"&gt;
  &lt;table border="0" &gt;
      &lt;tr&gt;
          &lt;td&gt;
              &lt;asp:Label ID= "lblName" runat="server" Text="Name" &gt;&lt;/asp:Label&gt;
          &lt;/td&gt;
          &lt;td&gt;
              &lt;asp:TextBox ID="txtName" runat="server" Text="" /&gt;&lt;br /&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
              &lt;td&gt; &amp;nbsp &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td colspan ="2" &gt;
             &lt;asp:Button ID="btnShow" Text="Show" runat="server" /&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
      &lt;hr /&gt;&lt;asp:GridView ID="gvUsers" runat="server" AutoGenerateColumns="false" HeaderStyle-BackColor="#3AC0F2"
      HeaderStyle-ForeColor="White" RowStyle-BackColor="#A1DCF2"&gt;
      &lt;Columns&gt;
          &lt;asp:BoundField DataField="Username" HeaderText="Username" /&gt;
          &lt;asp:BoundField DataField="Password" HeaderText="Password" /&gt;
      &lt;/Columns&gt;
  &lt;/asp:GridView&gt; 
  &lt;/form&gt;
  &lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="http://cdn.jsdelivr.net/json2/0.1/json2.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
      $(function () {
          $("[id*=btnShow]").bind("click", function () {
              var user = {};
              user.Name = $("[id*=txtName]").val();
              user.grd = $("[id*=gvUsers]").val();
              $.ajax({
                  type: "POST",
                  url: "View.aspx/ViewUser",
                  data: '{user: ' + JSON.stringify(user) + '}',
                  contentType: "application/json; charset=utf-8",
                  dataType: "json",
                  success: function (response) {
                      //alert("User has been added successfully.");
                      window.location.reload();
                  }
              });
              return false;
          });
      });
  &lt;/script&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>Server-Side :</p>
  
  <pre><code>&lt;WebMethod()&gt; _
  &lt;ScriptMethod()&gt; _
  Public Shared Sub ViewUser(user As Users)
      Dim grd As GridView
      grd = user.grd
      'Dim gvUsers As GridView
      Dim constr As String = ConfigurationManager.ConnectionStrings("constr").ConnectionString
      Using con As New SqlConnection(constr)
          Using cmd As New SqlCommand("SELECT * FROM Users Where Username = @Name")
              Using sda As New SqlDataAdapter()
                  Dim dt As New DataTable()
                  cmd.CommandType = CommandType.Text
                  cmd.Parameters.AddWithValue("@Name", user.Name)
                  cmd.Connection = con
                  sda.SelectCommand = cmd
                  sda.Fill(dt)
                  'grd.Visible = True
                  grd.DataSource = dt
                  grd.DataBind()
              End Using
          End Using
      End Using
  End Sub
  End Class
  Public Class Users
  Public Property Name() As String
      Get
          Return _Name
      End Get
      Set(value As String)
          _Name = value
      End Set
  End Property
  Private _Name As String
  Public Property grd() As GridView
      Get
          Return _grd
      End Get
      Set(value As GridView)
          _grd = value
      End Set
  End Property
  Private _grd As GridView
  End Class
  </code></pre>
  
  <p>But my datas are not displaying in the webpage. Thank you in advance</p>