|
| Web News |
Telecoms operators make another big broadband bet Telecoms operators are poised to invest hundreds of billions of dollars in faster broadband Internet connections -- a bet that for some watchers evokes worrisome reminders of the industry's ruinous 3G spending spree. The question this time is not whether consumers will find uses for high-speed connections, but whether they will pay extra for a basic package of three services...
French parliament dumping Windows for Linux France's gendarmes and Ministry of Culture and Communication have done it, and now members of the country's parliament are about to switch to open source. Starting in June 2007, PCs in French deputes' offices will be equipped with a Linux operating system and open-source productivity software The project, backed by parliament members Richard Cazenave and...
French filmmaker sues Google The producer of The World According to Bush has taken legal action against Google for distributing the film for free, becoming the latest media company to seek compensation for lost business on the internet. French production house Flach Film said it has issued a writ against the internet search engine and its French arm Google France for copyright infringement before a Paris commercial court.
Some Products You Just Can't Find Online L'Oreal and several other cosmetics manufacturers have barred distributors from selling their high-end beauty lines online, or have made the requirements so stiff that it would cost a merchant dearly to comply. For instance, L'Oreal demanded that an online sales agent provide video equipment to connect a customer with a cosmetics consultant for interactive Web chats in real time.
|
 | |
|
12.07.06 ASP.NET: Remove HTML Comments At Runtime By
Mads Kristensen I've been playing a bit with regular expressions lately and have to find some useful tasks in order to practice the skill.
So, today I wanted to make a little method that
strips HTML comments from an ASP.NET webpage at runtime. The practical use of the exercise is somewhat limited for most developers, but some websites have so many comments that it might just save a decent amount of bytes from the response stream.
The problem with this exercise is that a lot of JavaScript is using HTML comments to hide it's workings from older browsers. That would mean that those script tags would be empty. That's why I made a rule saying that every JavaScript has to implement the HTML comments correctly. Some don't so you have to change it your self.
This is how the JavaScript is wrongly commented which also breaks my regex.
Cost Effective Website and Network Monitoring IPCheck Server Monitor - Free Download |
|
The commenting should look like this which is also the right way to do it.
The regular expression is very simple and all you need to do is to add the following method to your webpage, user control or master page.
Maybe not the most useful stuff I've ever written, but fine for learning. The only thing that bugs me is the JavaScript rule.
About the Author: Mads Kristensen currently works as a Senior Developer at Traceworks located in Copenhagen, Denmark. Mads graduated from Copenhagen Technical Academy with a multimedia degree in 2003, but has been a professional developer since 2000. His main focus is on ASP.NET but is responsible for Winforms, Windows- and web services in his daily work as well. A true .NET developer with great passion for the simple solution.
http://www.madskristensen.dk/
|
|