you can do that but then you will have to read from that file.
default.aspx:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs"
Inherits="_Default" %>
http://www.w3.org/TR/xhtm
l1/DTD/xht
ml1-transi
tional.dtd
">
http://www.w3.org/1
999/xhtml"
>
<% if (Request.UserAgent == "MOBILE_PHONE_BROWSER1") { %>
<%=readFromFile(@"c:\asdf.t
xt") %>
<% } else { %>
<%=readFromFile(@"c:\asdf.t
xt") %>
<% } %>
default.aspx.cs:
using System;
using System.Collections.Generic
;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
public string readFromFile(string file)
{
TextReader tr = new StreamReader(file);
string ret = tr.ReadToEnd();
tr.Close();
return ret;
}
}