A
Albert
I have a main web page that allows a user to perform searches on our
products. On this main web page I have a datalist that I would like to use
for all types of searches and it's declares as follows:
<asp:datalist id="ddl_generic" onitemCommand="itemSelected" runat=server>
</asp:datalist>
For the Header Template, Item Template and footer templates I have separate
ascx files that contain the content for the datalist based on the Search Type
selected by the user. The Search Type is a Text Box and 2 dropdowns lists.
The issue is that while I can load the templates with no problems I cannot
get the OnItemCommad event to fire unless the templates are loaded within the
Page's Init Sub. This would be fine except that the values from the Search
Type control are not refreshed until the Page Load event occurs.
So how does one wire up the loaded template's controls to the Datalist's
OnItemCommand event outside of the Page's Init Sub?
Thanks for the help!
products. On this main web page I have a datalist that I would like to use
for all types of searches and it's declares as follows:
<asp:datalist id="ddl_generic" onitemCommand="itemSelected" runat=server>
</asp:datalist>
For the Header Template, Item Template and footer templates I have separate
ascx files that contain the content for the datalist based on the Search Type
selected by the user. The Search Type is a Text Box and 2 dropdowns lists.
The issue is that while I can load the templates with no problems I cannot
get the OnItemCommad event to fire unless the templates are loaded within the
Page's Init Sub. This would be fine except that the values from the Search
Type control are not refreshed until the Page Load event occurs.
So how does one wire up the loaded template's controls to the Datalist's
OnItemCommand event outside of the Page's Init Sub?
Thanks for the help!