Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
ASP .Net
System.NullReferenceException: Object reference not set to an instance of an object.
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="John Smith, post: 1581988"] Why do I get above error message while executing this code: Public Sub DropDown_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Dim list As DropDownList = CType(sender, DropDownList) Dim cell = CType(list.Parent, TableCell) Dim item = CType(cell.Parent, DataGridItem) Dim index = item.ItemIndex Dim ds As DataSet ds = DataGrid1.DataSource Dim row As DataRow row = ds.Tables(0).Select("ID = '" + item.Cells(0).Text + "'")(0) '<--- ERROR End Sub [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
ASP .Net
System.NullReferenceException: Object reference not set to an instance of an object.
Top