what i am trying to achieve is simple; Among all the view which i have in my web application, i have only two razor views that i have created a mobile version for them. so i
You can use
if (Request.Browser["IsMobileDevice"] == "true") { //Mobile Browser Detected } else { //Desktop Browser Detected }