PDA

View Full Version : Removing whitespace from HTML with OptimizeASP.NETHe


ghporras
10-28-2010, 09:19 AM
Hello...

I have a site in .Net MVC 2 working in DiscountASP.Net.

I´d like to remove the whitespace in my pages and I´m trying to doing with OptimizeASP.NET (http://optimizeasp.net/remove-whitespace-from-html).

As I read in this article I did put the WebOptimizer.dll in my Bin folder and added this line in my Web.Config:
<add name="RemoveWhitespaceModule" type="WebOptimizer.Modules.RemoveWhitespaceModule, WebOptimizer" />

In my localhost (with VS2010) with works perfectly. All pages are "compressed" removing the whitespaces. But I upload my site and the pages in production has no one changes. You can verify the source of my home: http://tqmadrid.com/

Some have installed the OptimizeASP.NET and / or removing the whitespace of html pages?

Thanks!

bruce
10-29-2010, 11:13 AM
any error?

ghporras
10-29-2010, 12:43 PM
Nope...

It simply dont works in production (DiscountAsp.Net)...

Compare the code in my local enviroment (local.txt) and the production enviroment (prod.txt).

The page is http://tqmadrid.com/Botin/1232/

I follow the instructions and you can see the web.config and the OptimizaASP.Net in my bin folder.

Thanks!

bruce
11-01-2010, 11:59 AM
Hmmm.. in general, if something doesn't work, it should throw some kind of error. I am not familiar with this component you are using. I recommend you contact the creator of this component to see what they recommend.

ghporras
11-01-2010, 01:07 PM
Thanks Bruce.. I realdery did but none anwser...
Any case I found this other "technique".. I´m usng it: http://stackoverflow.com/questions/855526/removing-extra-whitespace-from-generated-html-in-mvc

Greetin!