rotating image in all web browsers

Posted by ncplsatyamutyvsp-20221 under JavaScript on 1/16/2013 | Points: 10 | Views : 954 | Status : [Member] | Replies : 1
hi ,

I developed a web page(rotating image) using javascript, asp.net 4.0. the page opens all latest versions web browsers.the page not open iphone and ipad browsers .please suggest or guide me the code. how to open iphone,ipad browsers.

thanks & regards,
j.satyamurty.




Responses

Posted by: Shubham on: 1/16/2013 [Member] Starter | Points: 25

Up
0
Down
Hi!!!!

use this code on page load event!!!!
void compatibility()
{
if (Request.UserAgent.IndexOf("AppleWebKit") > 0)
{
Request.Browser.Adapters.Clear();
}
}

Thanks&Regards:-
Shubham Choudhary
Software Engineer
www.facebook.com/shubham.kunar

ncplsatyamutyvsp-20221, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response