Subscribe
|
About Me
|
Weekly Podcast
(
iTunes
) |
Forum
|
Tools List
|
Archives
|
Calendar
|
ASP.NET 3.5 Book
|
Scott Hanselman's ComputerZen.com
Programming Life and the Zen of Computers
First time here? Check out the site's "
greatest hits
" or read a post from the
archives
. Feel free to leave a comment or ask a question, and consider
subscribing to the latest posts via RSS
or
e-mail
. Thanks for visiting!
« TechEd 2005 - I'll be there
|
Main
|
Stop Complaining »
ASP.NET Rolled up Goodness
Posted in
ASP.NET
|
Javascript
|
Tools
.
Here's a copy of snazzy things from various locations, while I'm on the road.
ASP.NET Popup Test Web Server Control
(via
Larkware
) - Matt Berther makes detecting if popups are disabled simpler. Maybe he can make me one that tells me if JavaScript and/or Cookies are disabled?
Using Inheritance with ASP.NET Pages
- This great article from
Dino
shows more than just how to create an inheritance heirarchy of ASP.NET pages, but more importantly it shows some techniques like:
Trapping the Browser Refresh
- When you back up while browsing, you take the risk that you might re-POST a previous request. Dino has some clever ideas on how to detect that a POST has been "replayed."
Entertain Users During Long Operations
- At Corillian we're often dealing with slow hosts/mainframes and web browsers don't lend themselves to long or asychronous operations. Dino shows a nice generic way to present long-running operations to the user.
MultiViewBar Updated
- Andy's MetaBuilders site is a must-visit for any ASP.NET developer. Not only does he have a focus on cross-browser compatibility but his stuff just works. And it saves time. My favorites are the
DualList
, the
RowSelectorColumn
, and the infamous
OneClick
.
Monday, March 07, 2005 8:35:06 PM (Pacific Standard Time, UTC-08:00)
I have something similar to the Popup Test Web Control for javascript here: http://www.structured-solutions.net/ASP.NETUserControltoCheckforJavascript.aspx
Andy Miller
Monday, March 07, 2005 10:24:03 PM (Pacific Standard Time, UTC-08:00)
Why do you want to detect a re-post?
If you do have a form on your page (like this comment form) and don't want users to submit it twice, just do an http-redirect after the first submit. This works great for POST and GET.
The user submits the form, the server gets the data and stores it away. After storing it, it redirect the client (before outputting anything) to the same url without the form parameters - only with parameters which tell the page what to display.
Voila! The browser now only stores the redirected URL in its history - you don't get the chance to repost your form by pressing the back-button.
As a side effect, you don't even get a message like "the page has been the result of a post operation - do you want me to post the data again?".
Or did I get the intend to detecting the refresh wrong?
Cheers,
Ralf
Ralf Mueller
Tuesday, March 08, 2005 6:05:06 AM (Pacific Standard Time, UTC-08:00)
How to determine if JavaScript is enabled:
http://www.15seconds.com/issue/030303.htm
Darrell
Comments are closed.
Contact
Email
Free/Busy
Sponsors
Ads by The Lounge
Hosting By
On this page...
Tags
Africa (91)
ASP.NET (602)
ASP.NET Dynamic Data (15)
ASP.NET MVC (51)
BabySmash (17)
Back to Basics (10)
Bugs (168)
CodeRush (21)
Coding4Fun (38)
Corillian (26)
DasBlog (130)
Deployment (1)
DevCenter (1)
DevDays (5)
Diabetes (61)
DLR (1)
eFinance (14)
Gaming (113)
HttpHandler (16)
HttpModule (21)
Identity (3)
IIS (12)
INETA (8)
Internationalization (43)
IOC (1)
Javascript (67)
Learning .NET (98)
LINQ (16)
Longhorn (11)
Microsoft (68)
Mix (9)
Movies (44)
MSBuild (1)
Musings (483)
Nant (39)
NCover (12)
NDC (11)
NDoc (6)
NotNorthwind (2)
NUnit (46)
Open Source (6)
PDC (65)
PHP (2)
Podcast (155)
PowerShell (59)
Programming (233)
Python (1)
Reviews (126)
Ruby (61)
Screencasts (20)
Silverlight (29)
Source Code (48)
Speaking (185)
Subversion (14)
TechEd (122)
Thabo (3)
Tools (398)
VB (6)
ViewState (19)
Vista (2)
Watir (21)
Web Services (429)
Windows Client (31)
WPF (22)
XML (289)
XmlSerializer (31)
Zenzo (38)
Calendar
<
January 2009
>
Sun
Mon
Tue
Wed
Thu
Fri
Sat
28
29
30
31
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2
3
4
5
6
7
Posts in timeline
Posts in Large Calendar
Archives
January, 2009 (5)
December, 2008 (32)
November, 2008 (17)
October, 2008 (22)
September, 2008 (16)
August, 2008 (14)
July, 2008 (25)
June, 2008 (19)
May, 2008 (17)
April, 2008 (17)
March, 2008 (26)
February, 2008 (21)
January, 2008 (28)
December, 2007 (19)
November, 2007 (17)
October, 2007 (31)
September, 2007 (39)
August, 2007 (37)
July, 2007 (43)
June, 2007 (37)
May, 2007 (32)
April, 2007 (38)
March, 2007 (29)
February, 2007 (46)
January, 2007 (31)
December, 2006 (27)
November, 2006 (31)
October, 2006 (32)
September, 2006 (39)
August, 2006 (34)
July, 2006 (40)
June, 2006 (18)
May, 2006 (31)
April, 2006 (34)
March, 2006 (30)
February, 2006 (38)
January, 2006 (44)
December, 2005 (19)
November, 2005 (34)
October, 2005 (24)
September, 2005 (37)
August, 2005 (20)
July, 2005 (24)
June, 2005 (33)
May, 2005 (16)
April, 2005 (22)
March, 2005 (34)
February, 2005 (15)
January, 2005 (37)
December, 2004 (28)
November, 2004 (30)
October, 2004 (34)
September, 2004 (22)
August, 2004 (34)
July, 2004 (18)
June, 2004 (64)
May, 2004 (49)
April, 2004 (21)
March, 2004 (29)
February, 2004 (29)
January, 2004 (36)
December, 2003 (25)
November, 2003 (24)
October, 2003 (59)
September, 2003 (42)
August, 2003 (24)
July, 2003 (44)
June, 2003 (29)
May, 2003 (21)
April, 2003 (30)
March, 2003 (27)
February, 2003 (47)
January, 2003 (50)
December, 2002 (31)
November, 2002 (38)
October, 2002 (44)
September, 2002 (15)
May, 2002 (2)
April, 2002 (4)
Google Ads