Reputation: 36654
I have the following short markup. I try to "view this page in browser" via visual studio 2010, but it fails on timeout. Can someone see why?
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Add.aspx.cs" Inherits="TB.Site.Add" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<label for="Author">Author</label>
<input type="text" id="Author" runat="server" />
<br />
<label for="Email">Email</label>
<input type="text" id="Email" runat="server" />
<br />
<label for="TextArea1">Text</label>
<textarea id="TextArea1" cols="20" dir="ltr" name="S1" rows="2" runat="server"></textarea>
<br />
<br />
<label id="output" runat="server"></label>
</div>
</form>
</body>
</html>
code behind is
namespace TB.Site
{
public partial class Add : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
}
Upvotes: 1
Views: 183
Reputation: 36654
Still don't know what was it. Opened the same solution on another machine and saw yellow error on the Add.aspx opened a new aspx and copied componenet by component - and it works.
Upvotes: 0
Reputation: 16399
In a fresh project, your page loads fine. That leads me to believe you have another bit of code somewhere with the Add page defined, probably in a renamed file.
Do a search for
public partial class Add
see if it comes up in another file.
Upvotes: 2