I have tried some examples from Beginning ASP .NET Databases with C# and also some from Beginning Visual C# books, but it looks like ASP dynamic codes don't run and i can only see thost static ones.
For example, i put a label (copyright)with ID 'labelCopyright 'in .aspx file and modify the .cs Page_Load function like below.
int year = DateTime.Now.Year; if (year == 2002) labelCopyright.Text = "Copyright © xxxx " + year; else labelCopyright.Text = "Copyright © xxxx 2002-" + year;
Even if i replace the text with some other, in the web page, it just displays (copyright) which is label's text. So, i suppose something is wrong with my computer to run ASP codes.
Pls anyone help me asap.
Thx a lot Regards, Andre
|