J
Jeff
IDE vs .NET 2003
OS: XP pro sp2
I need to create a asp.net page which will receive data sent to it via
GET... The data sent into the page is a number, this number should be added
together with the numbers sent into the page by other users...
for example:
user A: http://localhost/test.aspx?value=1
and
user B: http://localhost/test.aspx?value=2
if user C want to retrieve this value, he should get the value 3 (1 +2)
Here som of the code in my Global.asax.cs:
public class Global : System.Web.HttpApplication
{
/// <summary>
/// Required designer variable.
/// </summary>
///
int b;
protected void Application_Start(Object sender, EventArgs e)
{
b ++;
Application.Add("test", b);
}
As you can see from my code above, I'm trying to fix this problem using
HttpApplication... Is that the correct approach? If it isn't, what is the
correct approach then??
Jeff
OS: XP pro sp2
I need to create a asp.net page which will receive data sent to it via
GET... The data sent into the page is a number, this number should be added
together with the numbers sent into the page by other users...
for example:
user A: http://localhost/test.aspx?value=1
and
user B: http://localhost/test.aspx?value=2
if user C want to retrieve this value, he should get the value 3 (1 +2)
Here som of the code in my Global.asax.cs:
public class Global : System.Web.HttpApplication
{
/// <summary>
/// Required designer variable.
/// </summary>
///
int b;
protected void Application_Start(Object sender, EventArgs e)
{
b ++;
Application.Add("test", b);
}
As you can see from my code above, I'm trying to fix this problem using
HttpApplication... Is that the correct approach? If it isn't, what is the
correct approach then??
Jeff