By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,938 Members | 1,766 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,938 IT Pros & Developers. It's quick & easy.

is my work environment damaged?

P: n/a
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?

Aug 2 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
try running 'aspnet_regiis.exe -c' on the server which will register the
client side scripts.

- Augustin

"la********@gmail.com" wrote:
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?

Aug 2 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.