M
^MisterJingo^
Hi all,
I have a web page which has a single dropdownlist containing 3 items.
Below the dropdownlist are two listboxes. Depending on the option
selected from the dropdownlist, the left most listbox populates itself
from a DB table, assigning the correct id to each item as a value.
In between the listboxes are two buttons. On clicking an 'add'
button, I am trying to grab the id of the item selected (the goal being
to place this id and relevant information gained from it in a dataset
to populate the other listbox), but I keep getting an "Object
reference not set to an instance of an object" error.
From googling I think this is to do with posting back when the button
is clicked? How can I get around this problem, and get the ID I need?
Any help would be greatly appreciated.
Chris
I have a web page which has a single dropdownlist containing 3 items.
Below the dropdownlist are two listboxes. Depending on the option
selected from the dropdownlist, the left most listbox populates itself
from a DB table, assigning the correct id to each item as a value.
In between the listboxes are two buttons. On clicking an 'add'
button, I am trying to grab the id of the item selected (the goal being
to place this id and relevant information gained from it in a dataset
to populate the other listbox), but I keep getting an "Object
reference not set to an instance of an object" error.
From googling I think this is to do with posting back when the button
is clicked? How can I get around this problem, and get the ID I need?
Any help would be greatly appreciated.
Chris