1.
Create Server side controls e.g. DropDownLists and GridView
2.
Load Categories on Page load
3.
Implement ICallbackEventHandler interface
4.
Create subcategories data in server memory to bind to Subcategory DropDownLists.
5.
Render control (subcategory DropDownLists) and show output.
6.
Create products data in server memory to bind to Products GridView.
7.
Render Control (products GridView) and return rendered contents to
client side to show
8.
Set innerHTML of each control by rendered contents
Create DropDownLists and GridView Controls
Listing 1
<b>Categories:</b>
<br />
<asp:DropDownList ID="ddlCategories" runat="server" Width="100" onchange="CallSrv(this);">
</asp:DropDownList>
<br />
<b>Subcategories</b>:
<div id="ddlSubcategories">
</div>
<b>Products:</b>
<div id="grvProducts">
</div>