Change style sheet for mobile browser

I want to use a different style sheet if my site is viewed on a mobile version of IE - I thought that the best way to do this would be to use a .browser file in the app_browser folder, but i’m not sure this is possible/correct. All my pages use a master page where the css is set so is this the best place to do this?

thanks for any suggestions

monkey

Yup, get an updated set of .browser files and then just do if (Request.Browser.IsMobile) {} wherever you need to . . .

What’s this? Nice!!! I wish I’d have known of this before. :slight_smile:

So, where do I get an updated set of .browser files? edit - Whoops. Found them. :slight_smile:

Thanks - worked a treat. On the same tack - if i want to change the skin used by my gridviews, is there a way i can do this in one place for all grid views or do i have to do it on a page by page basis?

I am also looking at the possibility to completely changing the gridview when view on a mobile device so that columns in each row become rows so each record is like a card:

record: 23
Name: Jon
Age:16

record: 34
Name Jane
Ages: 23

etc etc

is this possible and if so could you point me inthe direction of some tutorials

cheers