how main use in website......

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • vimal.424@gmail.com

    #1

    how main use in website......

    can any body tell me,
    if we are working on the website in c#.
    then how will we use main() wih page load
  • =?Utf-8?B?U29tIE5hdGggU2h1a2xh?=

    #2
    RE: how main use in website......

    ur problem is not clear . why ur using main in page there is already page
    events

    "vimal.424@gmai l.com" wrote:
    can any body tell me,
    if we are working on the website in c#.
    then how will we use main() wih page load
    >

    Comment

    • Marc Gravell

      #3
      Re: how main use in website......

      Further to the other replies - if you want something that fires when
      your web app starts, then you might look at "global.asa x"; you can
      place code in here, for instance "Application_St art". This is
      comparable* (but not equal) to Main(). However; this Application_Sta rt
      method should only be used to perform any initial startup operations
      (perhaps more comparable to the code for starting a winnt service); it
      shouldn't block etc.
      You aren't guaranteed to get any shutdown notification - app-pools can
      be torn down without notice.

      The following isn't the best walkthrough of global.asax I've seen, but
      it is the first I can find (via google) at the moment:


      *=actually, it is perhaps more closely compared to an IHttpModule, if
      you are familiar with that

      Marc

      Comment

      Working...