quote:
Originally posted by feline
i worked out how to add a button to the design view of the website, but this has no effect on the "Default.aspx.cs" file. can you point me in the right direction here?
This is no declare in web project with partial class.
Example adding a button with click event would write this.
--- file .aspx
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" />
--- file .aspx.cs
protected void Button1_Click(object sender, EventArgs e)
{
Button1.Text = "test";
}
No where you gonna find the "real" declare of the button like it was the case in asp.net 1.0
System.Web.UI.WebControls.Button Button1;