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. Web Development
  3. ASP.NET
  4. AutoEventWireup

AutoEventWireup

Scheduled Pinned Locked Moved ASP.NET
csharpquestion
6 Posts 3 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.
  • B Offline
    B Offline
    Brendan Vogt
    wrote on last edited by
    #1

    Hi, When I create a new web user control or master page or a normal aspx page, then there is a property AutoEventWireup that is set to true. I am using C# 2.0. What I did was to take it out where ever I can see it, and add it once in my web.config file in the pages element. Will this be sufficient for the web user control, master page and the aspx file. Or does the pages element refer to only a aspx page? Thanks Brendan

    C S 2 Replies Last reply
    0
    • B Brendan Vogt

      Hi, When I create a new web user control or master page or a normal aspx page, then there is a property AutoEventWireup that is set to true. I am using C# 2.0. What I did was to take it out where ever I can see it, and add it once in my web.config file in the pages element. Will this be sufficient for the web user control, master page and the aspx file. Or does the pages element refer to only a aspx page? Thanks Brendan

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      I don't know why you'd bother unless you were setting it to false.

      Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

      B 1 Reply Last reply
      0
      • C Christian Graus

        I don't know why you'd bother unless you were setting it to false.

        Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

        B Offline
        B Offline
        Brendan Vogt
        wrote on last edited by
        #3

        So you are suggestion what? That I leave it there, or just take it out?

        C 1 Reply Last reply
        0
        • B Brendan Vogt

          Hi, When I create a new web user control or master page or a normal aspx page, then there is a property AutoEventWireup that is set to true. I am using C# 2.0. What I did was to take it out where ever I can see it, and add it once in my web.config file in the pages element. Will this be sufficient for the web user control, master page and the aspx file. Or does the pages element refer to only a aspx page? Thanks Brendan

          S Offline
          S Offline
          sidbaruah
          wrote on last edited by
          #4

          I think it will only be set for the page it is being used! true - event linking enabled false - no event linking. Why would you want to put it in a web.config file ? :doh:

          I was born dumb!! :laugh:Programming made me laugh:laugh:!!! --sid--

          1 Reply Last reply
          0
          • B Brendan Vogt

            So you are suggestion what? That I leave it there, or just take it out?

            C Offline
            C Offline
            Christian Graus
            wrote on last edited by
            #5

            I'd just leave it there, unless you intend to turn it off, then I'd change it to turn it off. You're not going to make a sitewide change, it's going to break a lot of methods if you do.

            Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

            B 1 Reply Last reply
            0
            • C Christian Graus

              I'd just leave it there, unless you intend to turn it off, then I'd change it to turn it off. You're not going to make a sitewide change, it's going to break a lot of methods if you do.

              Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

              B Offline
              B Offline
              Brendan Vogt
              wrote on last edited by
              #6

              Thanks Christian.

              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