I would like to load different web page depending on browser. for example
I have internetexp.aspx and chrome.aspx.
if user browser is chrome it should load chorme.aspx page if other then chrome browser it should load internetexp.aspx.
how can i achieve this?
Loading
Joginder BangerPosted Mar 31, 2015, 5:08 PM
Thanks for sharing your knowledge. it's really help me if face requirement in future.
-jsb
Raghu RaoPosted Mar 31, 2015, 4:51 PM
we do have HTML5 elements in our aspx page. the same page we though to redirect depending on browsers but instead we are going in another approach that using conditional formatting in page it self like
if browser is IE and version is less then 9 then execute the below code\script ( for example)
if the browser is above 10 then execute the below code\script ( for example)
// my html code\script goes here , this will target only ie versions above 10
i know this is something different which i asked previously but this is going to fulfill my requirement.
i will also plan to implement the jquery logic as well , i will keep u posted.
thanks for your time. if you have jquery logic example that would be helpful for me.
once again thanks.
Joginder BangerPosted Mar 31, 2015, 3:47 PM
Raghu RaoPosted Mar 31, 2015, 3:42 PM
Joginder BangerPosted Mar 31, 2015, 1:51 PM
like below.
if($.browser.chrome)
{ //set you page here. }
else if ($.browser.mozilla)
{//set you page here. }
else if ($.browser.msie)
{ //set you page here.}