Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. 2 Things I want in ASP.NET

2 Things I want in ASP.NET

Scheduled Pinned Locked Moved The Lounge
csharpc++asp-netcomarchitecture
29 Posts 20 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L leppie

    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

    P Offline
    P Offline
    Paul Selormey
    wrote on last edited by
    #8

    The non-runat-server controls are actually there. Simply most put up the .NET cup when working with ASP.NET without forgetting that they simply writing HTML with replaceable tags. Best regards, Paul.

    Jesus Christ is LOVE! Please tell somebody.

    1 Reply Last reply
    0
    • V Vasudevan Deepak Kumar

      Wouldn't that defeat the unique IDs for DOM elements?

      Vasudevan Deepak Kumar Personal Homepage
      Tech Gossips
      A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson

      C Offline
      C Offline
      Chris Maunder
      wrote on last edited by
      #9

      Not if Page.TrustMeIKnowWhatImDoing was set to true.

      cheers, Chris Maunder

      CodeProject.com : C++ MVP

      M D 2 Replies Last reply
      0
      • L leppie

        What stops you from using non-'runat=server' controls?

        xacc.ide - now with IronScheme support
        IronScheme - 1.0 alpha 1 out now

        C Offline
        C Offline
        Chris Maunder
        wrote on last edited by
        #10

        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

        L M D A 4 Replies Last reply
        0
        • C Chris Maunder

          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

          L Offline
          L Offline
          leppie
          wrote on last edited by
          #11

          :~ I think I had 'stupid' for breakfast, I don't understand any reply today! :sigh:

          xacc.ide - now with IronScheme support
          IronScheme - 1.0 alpha 1 out now

          1 Reply Last reply
          0
          • C Chris Maunder

            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

            M Offline
            M Offline
            Mike Dimmick
            wrote on last edited by
            #12

            Use ASP.NET as a compiled ASP, I imagine. Don't use any built-in ASP.NET controls, just use it to spew tag soup. You gain absolute control over the HTML output, at the cost of having to take complete control over the output.

            DoEvents: Generating unexpected recursion since 1991

            1 Reply Last reply
            0
            • C Chris Maunder

              Not if Page.TrustMeIKnowWhatImDoing was set to true.

              cheers, Chris Maunder

              CodeProject.com : C++ MVP

              M Offline
              M Offline
              Mladen Jankovic
              wrote on last edited by
              #13

              Then you should write your code on bare metal. ;P

              Mostly, when you see programmers, they aren't doing anything. One of the attractive things about programmers is that you cannot tell whether or not they are working simply by looking at them. Very often they're sitting there seemingly drinking coffee and gossiping, or just staring into space. What the programmer is trying to do is get a handle on all the individual and unrelated ideas that are scampering around in his head. (Charles M Strauss)

              1 Reply Last reply
              0
              • C Chris Maunder

                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

                D Offline
                D Offline
                Daniel Turini
                wrote on last edited by
                #14

                Chris Maunder wrote:

                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.

                Hey, can't you read things in red? Don't post programming questions on The Lounge! :-D

                I see dead pixels Yes, even I am blogging now!

                1 Reply Last reply
                0
                • C Chris Maunder

                  1. A new property Control.DontOutputIdAttribute 2. A new property Page.DontPrefixAllMyControlsWithTheIdOfAllTheirAncestors

                  cheers, Chris Maunder

                  CodeProject.com : C++ MVP

                  R Offline
                  R Offline
                  Rama Krishna Vavilala
                  wrote on last edited by
                  #15

                  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

                  C D 2 Replies Last reply
                  0
                  • C Chris Maunder

                    Not if Page.TrustMeIKnowWhatImDoing was set to true.

                    cheers, Chris Maunder

                    CodeProject.com : C++ MVP

                    D Offline
                    D Offline
                    dabs
                    wrote on last edited by
                    #16

                    Aha, the Sledge Hammer property :-)


                    Wenn ist das Nunstück git und Slotermeyer? Ja! Beierhund das oder die Flipperwaldt gersput!

                    1 Reply Last reply
                    0
                    • R Rama Krishna Vavilala

                      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

                      C Offline
                      C Offline
                      Chris Maunder
                      wrote on last edited by
                      #17

                      Rama Krishna Vavilala wrote:

                      Avoiding the id mess in ASP.NET

                      Please do!

                      cheers, Chris Maunder

                      CodeProject.com : C++ MVP

                      R 1 Reply Last reply
                      0
                      • O Oakman

                        Absolutely! these two "MSFT knows better" behaviors are infuriating.

                        Jon Smith & Wesson: The original point and click interface

                        B Offline
                        B Offline
                        Brady Kelly
                        wrote on last edited by
                        #18

                        What about having to keep specifying Runat="Server" when there is no option?

                        1 Reply Last reply
                        0
                        • R Rama Krishna Vavilala

                          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

                          D Offline
                          D Offline
                          DavidNohejl
                          wrote on last edited by
                          #19

                          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 Reply Last reply
                          0
                          • C Chris Maunder

                            1. A new property Control.DontOutputIdAttribute 2. A new property Page.DontPrefixAllMyControlsWithTheIdOfAllTheirAncestors

                            cheers, Chris Maunder

                            CodeProject.com : C++ MVP

                            E Offline
                            E Offline
                            Ed Poore
                            wrote on last edited by
                            #20

                            I know it's more work but can't you write something like the CSS adapters so that you can control these things?

                            1 Reply Last reply
                            0
                            • C Chris Maunder

                              1. A new property Control.DontOutputIdAttribute 2. A new property Page.DontPrefixAllMyControlsWithTheIdOfAllTheirAncestors

                              cheers, Chris Maunder

                              CodeProject.com : C++ MVP

                              R Offline
                              R Offline
                              Rajesh R Subramanian
                              wrote on last edited by
                              #21

                              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

                              K 1 Reply Last reply
                              0
                              • C Chris Maunder

                                Rama Krishna Vavilala wrote:

                                Avoiding the id mess in ASP.NET

                                Please do!

                                cheers, Chris Maunder

                                CodeProject.com : C++ MVP

                                R Offline
                                R Offline
                                Rama Krishna Vavilala
                                wrote on last edited by
                                #22

                                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

                                C 1 Reply Last reply
                                0
                                • C Chris Maunder

                                  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

                                  A Offline
                                  A Offline
                                  Andy Brummer
                                  wrote on last edited by
                                  #23

                                  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

                                  1 Reply Last reply
                                  0
                                  • R Rajesh R Subramanian

                                    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

                                    K Offline
                                    K Offline
                                    Kastellanos Nikos
                                    wrote on last edited by
                                    #24

                                    What's wrong with silverlight? If you don't like it you can uninstallit.

                                    R 1 Reply Last reply
                                    0
                                    • L leppie

                                      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

                                      J Offline
                                      J Offline
                                      jcdevnet
                                      wrote on last edited by
                                      #25

                                      I guess, he means why should you specify the runat="server" on Server Controls

                                      Greets! Joel

                                      1 Reply Last reply
                                      0
                                      • C Chris Maunder

                                        1. A new property Control.DontOutputIdAttribute 2. A new property Page.DontPrefixAllMyControlsWithTheIdOfAllTheirAncestors

                                        cheers, Chris Maunder

                                        CodeProject.com : C++ MVP

                                        E Offline
                                        E Offline
                                        Ennis Ray Lynch Jr
                                        wrote on last edited by
                                        #26

                                        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 Reply Last reply
                                        0
                                        • C Chris Maunder

                                          1. A new property Control.DontOutputIdAttribute 2. A new property Page.DontPrefixAllMyControlsWithTheIdOfAllTheirAncestors

                                          cheers, Chris Maunder

                                          CodeProject.com : C++ MVP

                                          M Offline
                                          M Offline
                                          Member 96
                                          wrote on last edited by
                                          #27

                                          Writing your own web server is surprisingly easy to do, I say this from experience.


                                          When everyone is a hero no one is a hero.

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups