function string themeChange() {
strMonth = System.DateTime.Month.ToString();
if ((c >= 4) && (System.DateTime.Month <= 6))
{
document.Page.Theme = Spring;
}
else if ((strMonth >= 6) && (strMonth <= 9))
{
document.Page.Theme = Summer;
}
else if ((str.Month >= 9) && (strMonth <= 11))
{
document.Page.Theme = Fall;
}
else if ((strMonth >= 11) && (strMonth <= 3))
{
document.Page.Theme = Winter;
}
Else
{
page.theme = default;
}
}
for line 1 i get an error " ( expected" but there is one.
on line 2 i get an error " ; expected" again there is one.
line 22 i get expression expected
when i try to run my webpage i get the error message..
"error CS1519: Invalid token 'string' in class, struct, or interface member declaration"
for line 1.

New Topic/Question
Reply



MultiQuote







|