Hi!
Here is problem I got.
I use vb.net and MSSQL Server 2000.
My dropdownlist box gets information from view, and it works. However when I
am trying to get information from the dropdownlist I get error message.
Also during step by step debug dropPP.Selected Item.Text gets value "NOTHING"
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.NullRefe renceException: Object reference not set
to an instance of an object.
Source Error:
Line 442: If txtPD.Text <> "" Then .Item("dept_cod e") =
txtPD.Text
Line 443: If txtEffort.Text <> "" Then .Item("effort") =
txtEffort.Text
Line 444: If dropPP.Selected Item.Text <> "" Then
..Item("dept_na me") = dropPP.Selected Item.Text
Line 445: 'If dropBT.Selected Item.Text <> "" Then
..Item("budget_ title") = dropBT.Selected Item.Text
Line 446: If txtStart.Text <> "" Then .Item("efft_dat e_from") =
txtStart.Text Else .Item("efft_dat e_from") = 0
Thanks.
Vlad
Here is problem I got.
I use vb.net and MSSQL Server 2000.
My dropdownlist box gets information from view, and it works. However when I
am trying to get information from the dropdownlist I get error message.
Also during step by step debug dropPP.Selected Item.Text gets value "NOTHING"
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.NullRefe renceException: Object reference not set
to an instance of an object.
Source Error:
Line 442: If txtPD.Text <> "" Then .Item("dept_cod e") =
txtPD.Text
Line 443: If txtEffort.Text <> "" Then .Item("effort") =
txtEffort.Text
Line 444: If dropPP.Selected Item.Text <> "" Then
..Item("dept_na me") = dropPP.Selected Item.Text
Line 445: 'If dropBT.Selected Item.Text <> "" Then
..Item("budget_ title") = dropBT.Selected Item.Text
Line 446: If txtStart.Text <> "" Then .Item("efft_dat e_from") =
txtStart.Text Else .Item("efft_dat e_from") = 0
Thanks.
Vlad
Comment