in my asp.net+vb+sql database web there is a edit page in which data is displayed from two different tables and it works fine
when there is no persnumber(common id in both tables) is not there in table2 then the following error comes. how can i rectify this
There is no row at position 0
the table2 is a table in which all the pernumber is not fed as a person goes for leave then onlt the pernumber gets fed into it
If lvety.Text = dt1.Tables("lve").Rows(0).Item("type") Is DBNull.Value Then
lvety.Text = ""
Else
lvety.Text = dt1.Tables("lve").Rows(0).Item("type")
the code which i used is as above