Support for asp.net mobile phone

I need my site to work well on blackberries, I haven’t put too much effort into getting this work yet, but I have a few issues google is struggling with.

I read about detecting browser type and changing default behavior for asp.net controls here

What can I do with a different stylesheet in a specific browser, should I just do this?

if (Request.Browser.Browser.ToString() == "blackberry") //pseudocode
{
    Response.Write("bb.css");
}
else
{
    Response.Write("bb.css");
}

This will work well, but I feel that there is a better method, I'm sure I read something in the past, but I can’t remember.

I also look at response.redirect on another page for a blackberry, which I would currently perform in a similar fashion.

Any thoughts or suggestions.

+2
source
3

, ( , , Opera, , IE, ). , , , . ;)

+1

, , " ".

, , - , , , . , , , .

, , -, , , , "Blackberry", . , , , , - .

I'm sorry that I feel the need to be such a demotivator.

+1
source

Source: https://habr.com/ru/post/1782940/


All Articles