I am trying to host my asp.net website using OfficeLive web server, but one of my apsx web pages has a Codebehind file attached to it.
When i try to upload my files to the remote site, it gives me an error saying that Code-Behind attribute is not supported.
My code-behind file has the following code in the Page_load function.
public partial class Contact : PageBase
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
txtName.Focus();
}
}
How can I include this function in the aspx page itself and get rid of the code-behind file.