|
-
Aug 21st, 2006, 04:30 AM
#1
Thread Starter
Addicted Member
I follow tutorials word for word but I still get build errors...
I keep doing tutorials and typing stuff out word for word but I always get build errors and I keep having to leave it and go onto the next because I can't fix it myself. I've just followed a video tutorial and watched the guy write it all out, so I copied it, and I got errors.
Errors are as follows:
Error 1 The best overloaded method match for 'int.Parse(string)' has some invalid arguments C:\Websites\Begin\Chapter10\SimpleUserControl\Global.asax 39 25 C:\...\SimpleUserControl\
Error 2 Argument '1': cannot convert from 'method group' to 'string' C:\Websites\Begin\Chapter10\SimpleUserControl\Global.asax 39 35 C:\...\SimpleUserControl\
The errors referred to this piece of code:
void Session_End(object sender, EventArgs e)
{
int userCount = int.Parse(Application.Get("userCount").ToString);
userCount--;
Application.Set("userCount", userCount);
}
The best bit is I have the exact same code in the Session_Start and there are no errors, but I can't see any difference. What is wrong with that?
Thanks in advance
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|