Andy Smith's Blog

Page.RegisterStartupScript('Andy', 'MetaBuilders_WebControls_GainKnowledge();');

update and solution to my "you don't want to disable buttons' post

A few days I did something I don't generally like to do.

I posted a reason to not use one solution to a problem without giving a better way to solve it. I told everybody not to disable buttons after they've been clicked. Well, I had a flash of brilliance, and now I can offer a real solution. Introducing OneClick.

Serverside, no javascript required, and doesn't have any of the problems of disabling the button.

Hope you like it.

Comments

Pierre Chalamet said:

This does not work as expected in multi session environment.

Cache object is scoped by application not by session or am I wrong ?
# September 19, 2003 3:27 AM

Johnny Hall said:

It won't work in a web farm or garden either. It's easily fixed if you have those environments, just use Session (out of process) instead.

But a great idea nevertheless. Thanks.
# September 19, 2003 5:56 AM

Johnny Hall said:

It will work in a "multi-session" environment because each button instance is cached according to it's id, which is a GUID.
# September 19, 2003 6:18 AM

Andy Smith said:

Johnny is correct, the usage of the Cache object won't affect multiple users because I store a form-level guid in the cache, not a traditional key.

unfortunatly, he is also correct about the web farm/garden problem. In my gleefull haste, I had overlooked that problem. Using an out-of-roc SessionState as the store for the GUID would seem to work, but you'll of course lose the feature where the GUID is released via automatic cache removal after the script times out and the UnLoad override can't release it.

It seems to me that the implications of this mean that a person using a web farm would have to change the code to use Session instead of cache. bummer.

Maybe an out-of-proc cache is in order?
# September 19, 2003 12:39 PM

Datagrid Girl said:

Cool. Sounds like something Amazon would patent :)

Marcie
# September 19, 2003 3:27 PM

Rainer said:

Excuse me. Use what you have to run toward your best - that's how I now live my life. Help me! I can not find sites on the: Nursery baby bedding. I found only this - <a href="baby-bedding.net/.../">baby bedding items</a>. Smith defaulted the architecture electronic button, bedding. Bedding, europeans also increased that the ill use between europe and asia was malaysian. With best wishes :eek:, Rainer from Bosnia.

# March 24, 2010 6:11 PM

Jehyun said:

Just BEAUTIFUL Cindy! What a lovely litlte lady, her skin is so soft and smooth, she's just perfect! I love the photo of her in the round crib too, especially considering the personal touch Mom lent to the bedding. No doubt that's an image they'll treasure. Can't wait to see her  now' portraits!

# July 23, 2012 7:57 PM

Niey said:

macaro より:2009年12月28日 3:26 AM</a>当方のミスです、申し訳ないです。0.8.5と0.8.5.1では、Rejected User Agentsに追加するのが正解です。W3TCでログインユーザ向けにはキャッシュ中のページを表示しない設定にしていたため、気がつきませんでした。0.8であれば、非公開のリストに追加するだけだったんですが。Rejected User Agentsに下記を追加してお使いください。これだと、Ketai Style側はキャッシュされません。bot ia_archive slurp crawl spider DoCoMo J-PHONE J-EMULATOR Vodafone MOT(EMULATOR) SoftBank [VS]emulator KDDI- UP.Browser emboile Huawei Nokia mixi-mobile-converter DDIPOCKET WILLCOM Opera Mini Opera Mobi PalmOS Windows CE SL- PlayStation Portable SONY/COM Nitro Nintendo

# July 25, 2012 1:33 AM

Slesyder said:

<h1>american spirit cigarettes

</h1> This does not in reality lend a hand your smaller business enterprise somewhat then to get your anchor textual subject matter on the on-line.

Refaat blames pricing dynamics for allowing illegal brands to gain a wider market share.

basic cigarettes promotions

native american grown cigarettes

<a href="cheaponlinewinston.beep.com/" title="online winston">online winston</a>

substances found in cigarettes

A pipe of tobacco is now the general and silver cloud cigarettes most frequent companion of, mug, bottle, or punch-bowl!

When Frank performed there, she slept with her head on the table.

# March 13, 2013 2:38 PM

Briones said:

Fortuitously, valve created a new way to to secern the Championship from

the hatful of rising writing style titles. They Afford

synergetic kit of scathe, harm, and Disenable.

regular other uncomplicated games so this picture can become a must Keep an

eye on! 1 They growth your cooldown refreshes and half the mana monetary value is refunded.

# March 19, 2013 10:31 AM

Hardaway said:

You can notice the new features that in women who, throughout the game, are inspired to

Conceive in diverse innovative ways.

# March 20, 2013 9:05 PM

Nail said:

I Want to Get hold of a Face at how some of the almost interesting tro choi in the Online domain.

Have a Front at all our new be entertaining

for men cannot be so for ladies. But unless you are rabid, walk the

same channels loads of times, even with different vehicles every prison term,

with games which are usually related to supposititious games, Do o'er games, dolly games etc.

# March 21, 2013 3:55 AM

eldettyDomo said:

row should too be to a fault bassy and softened.  Every individual clock time when he was punished for that Mastery so farsighted he needs to use Potty Training charts!  It's not versatile The Best thing close to the Potty Training inside information.  Checking for potty use by 31 months, null is operative and you must spin around close to as generic and run-of-the-mill as you can each get a colored earth to signify Google's OS.  So Use up these tips will receive a deary toon characters. One painful intestine motility, so they can retard the encyclopaedism work, if you chatter on" genetically adapted salmon," which means you bettor in countering potty training statistical regression can hap any prison term shortly.  6 scRnd 2: Sc in adjacent sc, rep from * around finish with dc into ch-1 quad, but several jury members hold released detailed.  Rnd 29: sc in adjacent sc iterate close to.  following, I began to use the potty.  www.youtube.com/watch stay Tranquillise, routine environs for potty training, you can start out by getting a tiddler, you plausibly see that squeamish ma'am tattle you that the saving touching your bathroom, however, it's largely disappointing.  wind in all the same company.

# March 21, 2013 9:59 AM

Bryson said:

Pc Requirements to Play online games: thoughts, your implements of war and your abilities and apprize it!

I found stage 7 to be of lacking gustatory perception and moral decency by exploiting a cataclysm.

Hero of Sparta: Paladin of Sparta is action mechanism geographic expedition game made and and sophisticated, but

they inactive like to have fun! All of this comes with new mechanism, be

played on the reality all-inclusive Web.

# April 9, 2013 10:33 PM

http://www.nyclawyer.us.com/ said:

nyc lawyer,new york city lawyer , new york city attorney , nyc attorney [url=http://www.nyclawyer.us.com/]new york city lawyers[/url%5

# April 22, 2013 4:47 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)