Welcome to WebmasterWorld Guest from 18.104.22.168
Forum Moderators: ocean10000
But I basically need to do this PHP code I wrote, in it's equivalent ASP and ASP.Net code (if they are different)
echo "<link href=\"http://www.example.com/csspath/layoutwebkit.css" rel=\"stylesheet\" type=\"text/css\" media=\"screen, projection\" />";
I tried researching for this first, looking for strpos, user-agent, but I might not be able to put it all together correctly. And if the variable values are not case-sensitive, maybe the strtolower is not needed.
I know there are other ways to make CSS more cross-browser compatible, but the site I am working on is just so messed up and I do not want to do everything from scratch and decided to do browser user-agent detection.
Asp.net has a built in browser identification system which can be used on a per page bases. So you do not need to try and figure out for your self the Browser and version details from the User-Agent.
Here is a MS KB Article [support.microsoft.com] on topic.