51Degrees ASP.NET Detector in Web Forms can both redirect to another page and change the content. To redirect, see the redirect section of the config.
The simplest way to change content on a Web Forms page is to use Page_Load event together with 51Degrees properties from the Request.Browser object:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Test.aspx.cs"
<form id="form1" runat="server">
<asp:Label runat="server" ID="test_label"></asp:Label>
public partial class Test : System.Web.UI.Page
protected void Page_Load(object sender, EventArgs e)
if (Request.Browser["IsMobile"] == "True")
test_label.Text = "This is a mobile device";
test_label.Text = "This is not a mobile device";
This code will display 'This is a mobile device' if the request was from a mobile device and display 'This is not a mobile device' if it wasn't. This method can be used to invoke almost any action, such as using a different style sheet or sending different images. can also be used to redirect the request to another page.