FYI, I'm blogging most of my stuff over at More Wally now.
You might want to add my rss feed to your reader at:http://morewally.com/cs/blogs/wallym/rss.aspx
Special Button in Atlas - "abortButton" - Wallace B. McClure

Wallace B. McClure

All About Wally McClure - The musings of Wallym on .NET, Sql, ASP.NET, and other crazy shenanigans

News

Personal Blog

Work Blog

.NET

Book Authors

Business

Family

Friends

Georgia Tech Bloggers

Personal

Special Button in Atlas - "abortButton"

I was just reading thru Nikhil's posts about the new build of Atlas and I cam across this interesting little nugget of information.  You can stop an async operation through the <ProgressTemplate> by creating a special button with the id of "abortButton."  I like the idea, however, I just hate magic numbers, or buttons in this case.  Perhaps the team could put in some type of special attribute on a regular button or something like that....................
Posted: Feb 09 2006, 08:33 PM by Wallym | with 4 comment(s)
Filed under: ,

Comments

Nikhil Kothari said:

The special attribute (on a regular button, image button, etc.) happens to be "id", and the value we look for happens to be "abortButton" :-)

Any other attribute or value would be equally "special", right?
# February 10, 2006 12:46 AM

John Walker said:

I couldn't agree more!
# February 10, 2006 1:00 AM

David Taylor said:

Wallace,

This is actually a standard way ASP.NET 2 works with certain templated controls, nothing specific to Altas.

To get your head around this, get visual studio to output a template for the asp:Login control (use the ToolTip and pick the option to "convert to Template"). Note that there are lots of buttons that have a particular action based on the ID of the button.

In general, one of the nice things introduced with ASP.NET 2 controls was this ability for a control to have behaviour, but for the exact template of the control to be completely up to the page developer, as long as they give the right buttons/labels/etc the correct IDs.

I hope this helps.
# February 10, 2006 4:42 AM

Andrey Skvortsov said:

Entirely agree with you,intro of magic "id"s smells bad;-)
# February 10, 2006 5:03 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)