Editing record in SQL Server DB in ASP.Net
<p>After filling DataTable, I am trying to edit my record in SQL Database.
The code is </p>

<pre><code>Dim dRow As DataRow
    dRow = dSet.Tables("tblTest").Rows(0)
    dRow.BeginEdit()
    dRow.Item("Name") = txtName.Text
    dRow.EndEdit()
    dAdt.Update(dSet, "tblTest")
</code></pre>

<p>But it returns error, Object reference not set to an instance of an object.  It comes on  <code>dRow = dSet.Tables("tblTest").Rows(0)</code>
Please advise.
Thanks</p>
