No. Of Times Form Posted

  • Thread starter Thread starter Arpan
  • Start date Start date
A

Arpan

How do I find out how many times a Web Form has been posted by one SINGLE user within the SAME SESSION? For e.g. suppose a user named Nancy is filling out a Web Form. Due to some reasons or the other, she has to post the same Form 4 times after which she winds up. She leaves i.e. her session expires & another user, say, Simon sits on the same machine to fill out the same Form. Citing this example, how do I find out how many times had Nancy (not Simon) posted the Form?

Thanks,


Arpan
 
Arpan,
If you are trying to find out this information after all this has
occurred, then you will need to log the counts in a database for later
reporting. You can increment a variable in the Session object, but this
data will be gone when the session expires. Or you could save the
information to the database during the Session_End event.

--
Best regards,
Jeffrey Palermo
Blog: http://dotnetjunkies.com/weblog/jpalermo


How do I find out how many times a Web Form has been posted by one SINGLE
user within the SAME SESSION? For e.g. suppose a user named Nancy is filling
out a Web Form. Due to some reasons or the other, she has to post the same
Form 4 times after which she winds up. She leaves i.e. her session expires &
another user, say, Simon sits on the same machine to fill out the same Form.
Citing this example, how do I find out how many times had Nancy (not Simon)
posted the Form?

Thanks,


Arpan
 
Thanks, Jeffrey, for your advice.Yeah I know that the count can be tracked using a database or by using a Session variable. Actually I thought that maybe ASP.NET has come out with something new with respect to this & hence the question!

Anyway, thanks once again for your prompt response,

Regards,

Arpan
"Jeffrey Palermo [MCP]" <http://dotnetjunkies.com/weblog/jpalermo> wrote in message Arpan,
If you are trying to find out this information after all this has
occurred, then you will need to log the counts in a database for later
reporting. You can increment a variable in the Session object, but this
data will be gone when the session expires. Or you could save the
information to the database during the Session_End event.

--
Best regards,
Jeffrey Palermo
Blog: http://dotnetjunkies.com/weblog/jpalermo


How do I find out how many times a Web Form has been posted by one SINGLE
user within the SAME SESSION? For e.g. suppose a user named Nancy is filling
out a Web Form. Due to some reasons or the other, she has to post the same
Form 4 times after which she winds up. She leaves i.e. her session expires &
another user, say, Simon sits on the same machine to fill out the same Form.
Citing this example, how do I find out how many times had Nancy (not Simon)
posted the Form?

Thanks,


Arpan
 
Happy Coding!

--
Best regards,
Jeffrey Palermo
Blog: http://dotnetjunkies.com/weblog/jpalermo


Thanks, Jeffrey, for your advice.Yeah I know that the count can be tracked
using a database or by using a Session variable. Actually I thought that
maybe ASP.NET has come out with something new with respect to this & hence
the question!

Anyway, thanks once again for your prompt response,

Regards,

Arpan
"Jeffrey Palermo [MCP]" <http://dotnetjunkies.com/weblog/jpalermo> wrote
in message Arpan,
If you are trying to find out this information after all this has
occurred, then you will need to log the counts in a database for later
reporting. You can increment a variable in the Session object, but this
data will be gone when the session expires. Or you could save the
information to the database during the Session_End event.

--
Best regards,
Jeffrey Palermo
Blog: http://dotnetjunkies.com/weblog/jpalermo


How do I find out how many times a Web Form has been posted by one SINGLE
user within the SAME SESSION? For e.g. suppose a user named Nancy is
filling
out a Web Form. Due to some reasons or the other, she has to post the same
Form 4 times after which she winds up. She leaves i.e. her session expires
&
another user, say, Simon sits on the same machine to fill out the same
Form.
Citing this example, how do I find out how many times had Nancy (not
Simon)
posted the Form?

Thanks,


Arpan
 
Back
Top