can't change label's property on webForm!
hi everyone,
i created an ASP.NET web application and on the webForm i dragged a label, which i was trying do change the text property calling the
Page_Load() function, but doesn't work. I think it's not even executing this code. If anyone could help!
namespace Weblog1
{
/// <summary>
/// Summary description for WebForm1.
/// </summary>
public class WebForm1 : System.Web.UI.Page
{
protected System.Web.UI.WebControls.Label Label1;
private void Page_Load(object sender, System.EventArgs e)
{
Label1.Text = "Label's text changed!";
}
}
}
thanks to all!
|