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. how are the events in ASp.NET web page executed

how are the events in ASp.NET web page executed

Scheduled Pinned Locked Moved ASP.NET
csharphtmlasp-netsysadminhelp
2 Posts 2 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.
  • U Offline
    U Offline
    User 3055467
    wrote on last edited by
    #1

    Hi All, can any one help in getting answer to this question. while browsing a ASP.NET application, a request is sent from browser to web server and web server processes the request and sents the required html to the browser which will be displayed in client's browser. But at the end there is only HTML that's there with client's browser. This HTML can't execute code in server. Then how does the events in ASP.NET execute

    C 1 Reply Last reply
    0
    • U User 3055467

      Hi All, can any one help in getting answer to this question. while browsing a ASP.NET application, a request is sent from browser to web server and web server processes the request and sents the required html to the browser which will be displayed in client's browser. But at the end there is only HTML that's there with client's browser. This HTML can't execute code in server. Then how does the events in ASP.NET execute

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

      Viewstate. There's a block inside your HTML that contains encoded information, which maps to your controls on the page. Then when you click a button, an event is sent in the post back to the server. This information is then matched to the control tree ( which means that dynamically created controls can fail to have events b/c they are not in the tree soon enough ), and thus the framework can work out which control caused the postback, and if it has a method that needs to be called. I have a book here somewhere, it has a relatively harmless title like 'programing ASP.NET in C#', but in fact, it goes through the behind the scenes stuff really well, I'd recommend it, if I could find it to give you the title....

      Christian Graus Driven to the arms of OSX by Vista.

      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