views:

21

answers:

0

Hi.

I have some problem to be solved.
There're directories in web service which will construct my webpage's menu and controls.

Example of paths:

\\*Country\\*Division\\*Part\\*Item\\*Control

*some_root_path\USA\LADivision\ReportsPart\EditReportItem\LoadItemsControl
*some_root_path\USA\LADivision\ReportsPart\EditReportItem\ClearItemsControl
*some_root_path\USA\LADivision\ManagementPart\ManagePersonItem\AddPersonControl
*some_root_path\USA\DCDivision\MarketingPart\CreatePlanItem\UploadNewPlanControl
*some_root_path\Canada\OntarioDivision\SalesPointPart\ReportItem\ViewReportControl

Here:

  • Country - item of the dropdown menu list
  • Division - item of the horisontal submenu bulleted list
  • Part + *Item + *Control - vertical submenu bulleted list

*Control is a user control which should be loaded when corresponding link was clicked.

I decided to use HttpModule for menu construction and controls loading.

My question is how I could build my menu list dynamicly and dynamicly load controls from HttpModule in connection with ViewState or other asp.net principle?

Is it good practice connect to web service from HttpModule? What about web service timeout and exception handling in HttpModule?

May be i should use some another method instead of HttpModule?