Tuesday, August 12, 2008 9:49 AM
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.
Filed under: Web Development, ASP.NET, .NET, Tips n tricks, Browser Filter