Category Name: | AutoPostBack="true" Width="146px" ontextchanged="DropDownList1_TextChanged"> |
SubCategory Name: | onselectedindexchanged="DropDownList2_SelectedIndexChanged" ontextchanged="DropDownList2_TextChanged"> |
Level Name: /td> |
Loading
Category Name: | AutoPostBack="true" Width="146px" ontextchanged="DropDownList1_TextChanged"> |
SubCategory Name: | onselectedindexchanged="DropDownList2_SelectedIndexChanged" ontextchanged="DropDownList2_TextChanged"> |
Level Name: /td> |
Neha RanaPosted Mar 19, 2016, 6:48 AM
Bhushan BhurePosted Aug 9, 2012, 10:56 AM
You are getting object refrence error on this line
DropDownList2.SelectedItem.Text= sn;
because, you don't have any items populated in DropDownlist2 and you are trying to set selectedItem.
Make sure you populate DropDown2 before.
click "accept answer" if this resolves your problem
amaan ahmedPosted Aug 9, 2012, 1:14 AM
Bhushan BhurePosted Aug 8, 2012, 9:58 AM
It will be good, if you post your complete code with question (or attach as zip).