Developer forum

Forum » Development » Limited amount of form submitions

Limited amount of form submitions


Reply

Hi all!


 


I have to make a counter that counts the number of forms submited.


 


The case is that our customer has a limited number of openings for some kind of session/meeting, so they wish that the form is automaticly closed after a certain amount of posts.


 


How do I do that?


 


Best Regards


Martin S. Nielsen


Replies

 
Reply

When the form is submitted:


 


System.Web.HttpContext.Current.Application("Openings") += 1


 


Before the form is displayed:


 


If System.Web.HttpContext.Current.Application("Openings") < MaxOpenings Then


'Show


End If

 
Reply

 


This smells a hole lot like .Net code. That was not the intention. The point was for it to be possible within the system.


 


Sorensen wrote:


When the form is submitted:




 




System.Web.HttpContext.Current.Application("Openings") += 1




 




Before the form is displayed:




 




If System.Web.HttpContext.Current.Application("Openings") < MaxOpenings Then




'Show




End If



 
Nicolai Høeg Pedersen
Reply

Hi Martin


 


It is not possible from within the solution. Have to be done by code.

 

You must be logged in to post in the forum