Thank you so much..you've really been of great help. Thanks again. wow, i am happy that i can also work with asp!!hey man. got lot more to ask to you. dont feel bad bt it ha.
well, on your given suggestion, i got the list of items on the second list according to selection on the first one. but the problem is that, if i select a new item from second list, the item being displayed on it does not get replaced.
Actually, now if i select any departments, then automatically respective department head's name and dept email address should pop in the two following ddlist boxes, namely dlDeptHead and dlDeptEmail.
well, i coded as below, but now it says, a debugging error as follows:
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.NullReferenceException: Object reference not set to an instance of an object.
Protected Sub DlDept_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles DlDept.SelectedIndexChanged
Public Sub DropDownDlDeptHead()
If DlDept.SelectedItem.ToString() = "Ag Infor Tech Unit".ToString() Then
DlDeptHead.Items.Add("Dr. Thomas Gerudn".ToString())
ElseIf DlDept.SelectedItem.ToString() = "AgBio Communications Unit".ToString() Then
DlDeptHead.Items.Add("Ms. Barb Hartinger".ToString())
Hope to hear from you soon
Does that relate something to the database??