protected void Page_Load(object sender, EventArgs e)
{
if (Request.Browser.IsMobileDevice)
{
Response.Redirect(“~/MobilePages/Default.aspx”);
}
}
Archive for the ‘Development Environment’ Category
ASP .Net Mobile Device Detection
Monday, January 5th, 2015How to set an application name in the Tomcat Manager
Tuesday, October 14th, 2014Web.xml in the WAR should have a tag <display-name>
Using Spring StopWatch to measure performance of your server code
Tuesday, October 14th, 2014import org.springframework.util.StopWatch;
//Very 1st statement in controller method :
StopWatch stopwatch = new Stopwatch(“some name here”);
stopwatch.start(“snippet 1″);
//code snippet 1 here
stopwatch.stop();
stopwatch.start(“snippet 2″);
//code snippet 2 here
stopwatch.stop();
…
logger.debug(stopwatch.prettyPrint());