473,320 Members | 1,861 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Forms RePost best practice?

Okay, this should be pretty simple for those of you who have written several
enterprise level web applications:

I'm looking for simple concepts to deal with a client re-posting the same
data over and over. IE: Adding a comment to a record, adding an item to a
cart etc. (hitting the refresh button over and over re-posting the old values)

I’m looking for a solution a little more elegant than comparing data values
etc. I would rather intercept and detect that this is an “unnecessary” re
post early in the process.

What are some of the "best practices" that have been used? I'm not looking
for the detail of implementation (but feel free to explain if you would like).

I have been tossing a few ideas around in my head such as a base class that
all web forms inherit from that assigns a simple "time stamp" key to the form
value and then increments or modifies it on the server with each post but
this is not a "best practice" because it introduces process affinity.

Most of what I do is deployed in a web farm/garden environment so we do use
SQLServer session management. I prefer to stay clear of methods that would
make it necessary to store the “key” in session for every post.

Any thoughts?

Thanks!

Nov 18 '05 #1
2 2092
If you want to prevent multiple clicks you could hide the whole form and
display a wait message instead.

If this is more a data consistency problem, it's likely best to suggest only
items that are not yet added or to react accordingly based on expected usage
(for example you could consider the user wants either to command an
additional quantity or replace its command, you could them ask them wether
he wants to do one or the other).

Patrice
--

"digitalQ" <di******@discussions.microsoft.com> a crit dans le message de
news:BE**********************************@microsof t.com...
Okay, this should be pretty simple for those of you who have written several enterprise level web applications:

I'm looking for simple concepts to deal with a client re-posting the same
data over and over. IE: Adding a comment to a record, adding an item to a
cart etc. (hitting the refresh button over and over re-posting the old values)
I'm looking for a solution a little more elegant than comparing data values etc. I would rather intercept and detect that this is an "unnecessary" re
post early in the process.

What are some of the "best practices" that have been used? I'm not looking
for the detail of implementation (but feel free to explain if you would like).
I have been tossing a few ideas around in my head such as a base class that all web forms inherit from that assigns a simple "time stamp" key to the form value and then increments or modifies it on the server with each post but
this is not a "best practice" because it introduces process affinity.

Most of what I do is deployed in a web farm/garden environment so we do use SQLServer session management. I prefer to stay clear of methods that would
make it necessary to store the "key" in session for every post.

Any thoughts?

Thanks!

Nov 18 '05 #2
i would take a look at this recent article if i were you.

http://www.msdn.microsoft.com/asp.ne...rockAspNet.asp

It talks about trapping the refresh. Good article!

"digitalQ" wrote:
Okay, this should be pretty simple for those of you who have written several
enterprise level web applications:

I'm looking for simple concepts to deal with a client re-posting the same
data over and over. IE: Adding a comment to a record, adding an item to a
cart etc. (hitting the refresh button over and over re-posting the old values)

I’m looking for a solution a little more elegant than comparing data values
etc. I would rather intercept and detect that this is an “unnecessary” re
post early in the process.

What are some of the "best practices" that have been used? I'm not looking
for the detail of implementation (but feel free to explain if you would like).

I have been tossing a few ideas around in my head such as a base class that
all web forms inherit from that assigns a simple "time stamp" key to the form
value and then increments or modifies it on the server with each post but
this is not a "best practice" because it introduces process affinity.

Most of what I do is deployed in a web farm/garden environment so we do use
SQLServer session management. I prefer to stay clear of methods that would
make it necessary to store the “key” in session for every post.

Any thoughts?

Thanks!

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: David | last post by:
Hello. I am looking for advice on what is "best practice" regarding looping through a form to check its checkboxes and associated data fields. Here is what I am trying to do (Here is the page...
136
by: Matt Kruse | last post by:
http://www.JavascriptToolbox.com/bestpractices/ I started writing this up as a guide for some people who were looking for general tips on how to do things the 'right way' with Javascript. Their...
1
by: Romao | last post by:
Hi, None of the C#/ADO documentation I was able to read refers what are the best practices/implementations for this "kind of" problem, I would like to get help/opinions please, let me explain...
1
by: John Rivers | last post by:
Hello, This topic has bugged me for years. The ideal for handling web forms would be that submitting the form replaces the browser history's current url with the url resulting from the form...
6
by: William F. Zachmann | last post by:
We've got a project going that involves moving an old web site with a massive dll written in C++ that produces most of the output from a SQL 7.0 data base on NT4 onto IIS on Windows 2003 Server...
6
by: Edwinah63 | last post by:
Hi everyone, could someone give me some thoughts on the best way to manage mdi parent and child forms? in vb6 i could scroll through the forms collection and determine which forms were...
4
by: Bob | last post by:
- For cleanup, is it sufficient to set a Thread to Nothing after it's done? - It is OK to pass objects out of the thread? (dumb question maybe but I want to be sure) - What's the best way to...
2
by: Frankie | last post by:
Using SQL Server 2005 and .NET 2.0; I'm creating a Windows Forms application that will need to display photos of people, along with a bunch of information about each person. In a Web...
2
by: kbutterly | last post by:
All, I have a menu which contains Category as the master and Product as the child. When I click on a Category in the menu, I want one formView control, fvpc, to show, and then when I click on...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shllpp 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.