I have a BLL (Business Logic Layer) and a DAL (Data Access Layer) created.
I drop a dropdownbox onto my web form, select DataSource and select ObjectDataSource.... Everything works but i would like a separate control to be based on the selected item of this dropdown, therefore i looked at the SelectedIndexedChange event where i
declared an instance of my BLL and called the method - but this doesnt work. How should i be doing this?
I know there is an AJAX control available for this but im trying to use layers to do this at present before jumping into AJAX.
EssCee
Member
548 Points
760 Posts
BLL and SelectedIndex issue
Mar 03, 2011 04:25 PM|LINK
I have a BLL (Business Logic Layer) and a DAL (Data Access Layer) created.
I drop a dropdownbox onto my web form, select DataSource and select ObjectDataSource.... Everything works but i would like a separate control to be based on the selected item of this dropdown, therefore i looked at the SelectedIndexedChange event where i declared an instance of my BLL and called the method - but this doesnt work. How should i be doing this?
I know there is an AJAX control available for this but im trying to use layers to do this at present before jumping into AJAX.
Thank you
sansan
All-Star
53942 Points
8147 Posts
Re: BLL and SelectedIndex issue
Mar 03, 2011 04:33 PM|LINK
Set AutoPostBack="true" for the DropDownList in the page markup. Then, You can call the method in the BLL in SelectedIndexChanged event.