ASP.NET Browsers Filter!! - Web Dev And Stuff
Tuesday, August 12, 2008 9:49 AM djsolid

ASP.NET Browsers Filter!!

Yesterday .NET SP1 released and many new features for ASP.NET where added. But yesterday i also discovered a feature that ASP.NET has from version 2.0

Let's say we have a button. We can decide what value will the properties have for different browsers!!! And we can do that with this way...

<asp:Button ie:Text="IEText" runat="server" mozilla:Text="FFText" />

The result in IE will be a button with IEText and in Firefox FFText.


The above works with all properties like OnClientClick!

This could be useful i.e. at file upload control where each browser handles different the rendering of the tag.

Cool eh?

kick it on


Filed under: , , , ,


No Comments