MVC3 exposes an IsMobileDevice flag in the Request.Browser object.
So in your razor code, you can query this variable and render accordingly.
For example, in your view (razor):
@if (Request.Browser.IsMobileDevice) {
<!-- HTML here for mobile device -->
} else {
<!-- HTML for desktop device -->
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…