is my work environment damaged?

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?
 
G

Guest

try running 'aspnet_regiis.exe -c' on the server which will register the
client side scripts.

- Augustin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top