title: 0x800a138f - JavaScript runtime error: Unable to get property 'childNodes' of undefined or null reference
body: <p>JavaScript runtime error: Unable to get property 'childNodes' of undefined or null reference..
  Here i my Html &amp; Java script Code</p>
  
  <pre><code>  &lt;script type="text/javascript"&gt;
      var sn = 1;
      $(document).ready(function () {
          $('#txtSearch').keyup(function () {
              filterTable(document.getElementById("txtSearch"), document.getElementById("tbl"));
          });
          LoadGrid();
      });
  
      function LoadGrid() {
          var d = "Key=LoadGrid";
          $.ajax({
              type: "POST",
              url: "Default.aspx",
              data: d,
              success: function (rs) {
                  $("#tbody").html(rs);
              }
          });
      }
  
         &lt;table class='tbl' id="tbl"&gt;
          &lt;thead&gt;
              &lt;tr&gt;
                  &lt;th style="width: 50px;"&gt;
                      SN
                  &lt;/th&gt;
                  &lt;th&gt;
                      Category
                  &lt;/th&gt;
                  &lt;th&gt;
                      SubCategory
                  &lt;/th&gt;
                  &lt;th style="width: 50px"&gt;
                  &lt;/th&gt;
              &lt;/tr&gt;
          &lt;/thead&gt;
          &lt;tbody id="tbody"&gt;
          &lt;/tbody&gt;
      &lt;/table&gt;
  </code></pre>
  
  <p>Here is code behind code
  simply calling the function &amp; then returning it.....</p>
  
  <pre><code>protected void Page_Load(object sender, EventArgs e)
      {
          string key = Request["key"] + "";
          if (key != "")
          {
              if (key == "LoadGrid")
              {
                  Response.Write(LoadGrid());
              }
          }
      }
  
      public string LoadGrid()
      {
          StringBuilder sb = new StringBuilder();
          int sn = 1;
          foreach (var item in new VendersDAL().GetAll())
          {
              sb.Append("&lt;tr&gt;");
              sb.Append("&lt;td&gt;");
              sb.Append(sn);
              sb.Append("&lt;/td&gt;");
              sb.Append("&lt;td&gt;");
              sb.Append(item.VenderID);
              sb.Append("&lt;/td&gt;");
              sb.Append("&lt;td&gt;");
              sb.Append(item.VenderName);
              sb.Append("&lt;/td&gt;");
  
              sb.Append("&lt;/tr&gt;");
              sn++;
          }
          return sb.ToString();
      }
  </code></pre>
  
  <p>Its working fine in SQL 2008 but here in SQL 2012........ it showing Error in Jquery. i have added Jquery reference in Master page.</p>