L
lauralucas
I'm starting to suspect something is damaged in my working environment.
(asp.net 1.1 and visual studio 2003)
for example: is this normal?
I add a label
I assign the label a value of "hello" in design time.
in codebehind, I change the value of the label.
private void Page_Load(object sender, System.EventArgs e)
{
if ( !Page.IsPostBack ) //if first time
{
Label.Text = "changed";
}
}
on a linkbutton command I try tro retrieve the label value. I always
get "hello". this is executed after Page_Load and IsPostBack equals
true.
viewState for page and labels is enabled. Is this normal?
protected void NavigationLink_Click ( Object sender, CommandEventArgs e
)
{
String theText = Label.Text; //I get "hello"
}
Also, several problems with pages that were working, and suddenly, the
buttons on them stopped triggering the event handlers, even if the code
to create such handlers was there. Should I reinstall?
(asp.net 1.1 and visual studio 2003)
for example: is this normal?
I add a label
I assign the label a value of "hello" in design time.
in codebehind, I change the value of the label.
private void Page_Load(object sender, System.EventArgs e)
{
if ( !Page.IsPostBack ) //if first time
{
Label.Text = "changed";
}
}
on a linkbutton command I try tro retrieve the label value. I always
get "hello". this is executed after Page_Load and IsPostBack equals
true.
viewState for page and labels is enabled. Is this normal?
protected void NavigationLink_Click ( Object sender, CommandEventArgs e
)
{
String theText = Label.Text; //I get "hello"
}
Also, several problems with pages that were working, and suddenly, the
buttons on them stopped triggering the event handlers, even if the code
to create such handlers was there. Should I reinstall?