2 Things I want in ASP.NET
-
1. A new property
Control.DontOutputIdAttribute
2. A new propertyPage.DontPrefixAllMyControlsWithTheIdOfAllTheirAncestors
cheers, Chris Maunder
CodeProject.com : C++ MVP
Yes! I don't add an id attribute to the control unless you want it to be accessed from code behind. The naming containers come into action and generate a scope prefixed name. In general you can avoid ids for all controls except for form controls. Alternatively you can use control adapters. I am feeling encouraged to write an article: "Avoiding the id mess in ASP.NET"
You have, what I would term, a very formal turn of phrase not seen in these isles since the old King passed from this world to the next. martin_hughes on VDK
-
Not if
Page.TrustMeIKnowWhatImDoing
was set totrue
.cheers, Chris Maunder
CodeProject.com : C++ MVP
-
Yes! I don't add an id attribute to the control unless you want it to be accessed from code behind. The naming containers come into action and generate a scope prefixed name. In general you can avoid ids for all controls except for form controls. Alternatively you can use control adapters. I am feeling encouraged to write an article: "Avoiding the id mess in ASP.NET"
You have, what I would term, a very formal turn of phrase not seen in these isles since the old King passed from this world to the next. martin_hughes on VDK
Rama Krishna Vavilala wrote:
Avoiding the id mess in ASP.NET
Please do!
cheers, Chris Maunder
CodeProject.com : C++ MVP
-
Absolutely! these two "MSFT knows better" behaviors are infuriating.
Jon Smith & Wesson: The original point and click interface
What about having to keep specifying Runat="Server" when there is no option?
-
Yes! I don't add an id attribute to the control unless you want it to be accessed from code behind. The naming containers come into action and generate a scope prefixed name. In general you can avoid ids for all controls except for form controls. Alternatively you can use control adapters. I am feeling encouraged to write an article: "Avoiding the id mess in ASP.NET"
You have, what I would term, a very formal turn of phrase not seen in these isles since the old King passed from this world to the next. martin_hughes on VDK
Rama Krishna Vavilala wrote:
I am feeling encouraged to write an article: "Avoiding the id mess in ASP.NET"
+1
[My Blog]
"Visual studio desperately needs some performance improvements. It is sometimes almost as slow as eclipse." - Rüdiger Klaehn
"Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe -
1. A new property
Control.DontOutputIdAttribute
2. A new propertyPage.DontPrefixAllMyControlsWithTheIdOfAllTheirAncestors
cheers, Chris Maunder
CodeProject.com : C++ MVP
-
1. A new property
Control.DontOutputIdAttribute
2. A new propertyPage.DontPrefixAllMyControlsWithTheIdOfAllTheirAncestors
cheers, Chris Maunder
CodeProject.com : C++ MVP
How about a
Silverlight.LeaveMeAlone = TRUE
configuration for all browsers while visiting MS website?Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP
-
Rama Krishna Vavilala wrote:
Avoiding the id mess in ASP.NET
Please do!
cheers, Chris Maunder
CodeProject.com : C++ MVP
Chris Maunder wrote:
Please do!
Ok if you like the article then you have to send me a CP T-Shirt ;P
You have, what I would term, a very formal turn of phrase not seen in these isles since the old King passed from this world to the next. martin_hughes on VDK
-
I had about a dozen witty replies to this but I have to say I'm truly curious as to what the alternative would be in an ASP.NET site.
cheers, Chris Maunder
CodeProject.com : C++ MVP
Look at the MVC framework, it's like ASP.NET without the events. Another option is to not use a server side form. The controls actually output clean HTML without viewstate if they can't find the serverside form element. 3.5 extensions[^] in standard new microsoft style, the best intro is the 3rd video on the download page.
The difference between pH 13 and pH 8 is five, which meant that pH 13 was ten to the fifth power - a hundred thousand times - more alkaline than pH 8. That kind of thing goes on all the time. But no matter how many diplomas are tacked to your wall, give people a figure like that and they'll pass you off as a flake. You can't get most people to believe how wildly the eco-laws get broken. But if I say "More than twice the legal limit," they get comfortably outraged. - Neal Stephenson
-
How about a
Silverlight.LeaveMeAlone = TRUE
configuration for all browsers while visiting MS website?Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP
What's wrong with silverlight? If you don't like it you can uninstallit.
-
Paul Selormey wrote:
they are actually there
I dont understand what you mean. :confused:
xacc.ide - now with IronScheme support
IronScheme - 1.0 alpha 1 out now -
1. A new property
Control.DontOutputIdAttribute
2. A new propertyPage.DontPrefixAllMyControlsWithTheIdOfAllTheirAncestors
cheers, Chris Maunder
CodeProject.com : C++ MVP
Funny, I have the same problem. My biggest issue comes with trying to use Cross Browser compatible javascript. Just mix in some classic style asp and your done :p
Need a C# Consultant? I'm available.
Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway -
1. A new property
Control.DontOutputIdAttribute
2. A new propertyPage.DontPrefixAllMyControlsWithTheIdOfAllTheirAncestors
cheers, Chris Maunder
CodeProject.com : C++ MVP
-
What's wrong with silverlight? If you don't like it you can uninstallit.
What if I just don't want to install it? I simply can't see it standing anywhere closer to flash. The "Install silver light now" just bugs me off.
Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP
-
Chris Maunder wrote:
Please do!
Ok if you like the article then you have to send me a CP T-Shirt ;P
You have, what I would term, a very formal turn of phrase not seen in these isles since the old King passed from this world to the next. martin_hughes on VDK
I owe you a T-shirt already I think. I'm hoping to actually get around to doing some more in the next 2 weeks.
cheers, Chris Maunder
CodeProject.com : C++ MVP