Hi,
Has your page been created in Visual Studio and contains a code behind?
The code created by VS adds this line (to InitializeComponent)
this.Load += new System.EventHandler(this.Page_Load);
If it is just the aspx page without code behind - you need to register to
"Load" event.
If you are not sure that ths code is being called - try a dirty way. Put
there a line that will cause an error and see if it happens..
I hope that my answer is in the right direction.
Eric
"vv" wrote:
I created a very simple web application and all I want to do
is this:
private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here
Label1.Text = "hello";
}
But the IS shows a blank page or just (if I put it in a properties
window) default text of a label.
What to do???