asp.net网站手机支持 [英] asp.net site mobile phone support

查看:230
本文介绍了asp.net网站手机支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要让我的网站在黑莓手机上正常工作,我没有付出太多努力来获得这个工作,但我有几个问题,google是困扰。

I need to make my site work well on a blackberry, i haven't put too much effort into getting this working yet, but i have a few questions which google is struggling with.

我已经阅读过关于检测浏览器类型和修改asp.net控件的默认行为这里

I've read about detecting brower type and modifying the default behaviour of asp.net controls here

如何向特定浏览器提供不同的样式表,我应该怎么做?

How would I go about supplying a differant stylesheet to a specific browser, should i just do this?

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

这将工作正常,但我觉得有一个更好的方法,i我确定我已经阅读了过去的一些东西,但我似乎不能回忆。

This will work fine, but i feel like there is a better method, i'm sure i've read about something in the past but i can't seem to recall.

我也考虑一个response.redirect到一个不同的页面

I'm also considering a response.redirect to a differant page for a blackberry, which at the moment i would implemenet in a similar way.

任何想法或建议。

推荐答案

查看这个

http://mdbf.codeplex.com/

也可以在nerddinner.com的 http://nerddinner.codeplex.com/

Also nerddinner.com at http://nerddinner.codeplex.com/

这篇关于asp.net网站手机支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆