Following up on my C# Friday quick tip on selecting navigation in master pages with C# .net, here’s another equally slick tip, how to detect an iPhone using C#.
Following up on my C# Friday quick tip on selecting navigation in master pages with C# .net, here’s another equally slick tip, how to detect an iPhone using C#, it’s pretty easy in fact it’s basically a one liner. Just simply check the UserAgent…
if(Request.UserAgent.Contains("iPhone")) {
//do something with your iphone specifc-ness here.
//maybe redirect to yoursite.com/m/?
}












Leave Your Response