Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Preventing Page ResubmitsPreventing Page Resubmits
Previous
 
Next
New Post
1/24/2006 5:09 PM
 

I would like to find out about how DNN (4) can prevent page resubmits. Although the site I am planning does not include financial transactions, the client wants to be sure that the implementation does not permit resubmits of pages. I think that this may be overkill ... but the client's always right.

 
New Post
1/25/2006 8:42 PM
 

You are going to have to handle this on your own with every single module you use.  This means you will need to use javascript to disable the button on click or some custom button you create and replace in every single module.  The framework itself cannot do this.

 


Chris Paterra

Get direct answers to your questions in the Community Exchange.
 
New Post
1/27/2006 9:18 AM
 

The solution to this problem is not really DNN specific.  There are measures that you can take to stop the user from "happy clicking", like disable the button.  When it comes down to it though the user will always be able to use the browser's navigation to do a refresh (resubmit).  Probably the best way I know to handle this situation is to use Session state (I know, some people have their misgivings about this).  But the basic idea is with each request in your module you write the current time into a hidden FORM field.  When the Page.IsPostBack occurs you compare the date posted in the hidden field with the last date you saved in session state.  If it is newer then allow the post to go through and assign the hidden field's date to your session state variable.  If it is older (or the same) throw an error.  Like I mentioned eariler, this is just one way of handling it.


 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Preventing Page ResubmitsPreventing Page Resubmits


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out