Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

httpmodule header / footer speed issue

Status
Not open for further replies.

Trebor100

Programmer
Mar 14, 2006
90
GB
Afternoon everyone,

I'm working on a httpmodule for adding a custom header and footer to all my sites. The concept is great but the performance is slow :(

I'm after adding the header and footer from a specific location (ie not hard coded). What i'm doing is scraping the html from the location and inserting via regex on the filter string.

does anyone have any ideas as to how i can get this to work faster? I'm wondering if this can be cached in the httpmodule but don't have a clue how I can do this in a httpmodule.

Regards,
Rob
 
this would probably be better suited for forum855 since you are working directly with the asp.net framework.

however you should not need to use an http module to manage headers/footers. with webforms you can use master pages to manage this. with an MVC framework you can use partial views/view components/layouts.

neither approach requires http modules.

Jason Meckley
Programmer
Specialty Bakers, Inc.

faq855-7190
faq732-7259
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top