{"id":76,"date":"2014-05-22T20:19:00","date_gmt":"2014-05-22T19:19:00","guid":{"rendered":"https:\/\/debuggersspace.com\/index.php\/2014\/05\/22\/please-briefly-explain-the-usage-of-global-asax\/"},"modified":"2014-05-22T20:19:00","modified_gmt":"2014-05-22T19:19:00","slug":"please-briefly-explain-the-usage-of-global-asax","status":"publish","type":"post","link":"https:\/\/debuggersspace.com\/index.php\/2014\/05\/22\/please-briefly-explain-the-usage-of-global-asax\/","title":{"rendered":"Please briefly explain the usage of Global.asax?"},"content":{"rendered":"<div class='booster-block booster-read-block'>\n                <div class=\"twp-read-time\">\n                \t<i class=\"booster-icon twp-clock\"><\/i> <span>Read Time:<\/span>37 Second                <\/div>\n\n            <\/div><div dir=\"ltr\" style=\"text-align: left;\">\n<div style=\"background-color: white; color: #111111;\">\n<span style=\"font-family: Arial, Helvetica, sans-serif;\">Global.asax is basically ASP.NET Application file. It\u2019s a place to write code for Application-level events such as Application start, Application end, Session start and end, Application error etc. raised by ASP.NET or by HTTP Modules.<\/span><\/div>\n<div style=\"background-color: white; color: #111111;\">\n<span style=\"font-family: Arial, Helvetica, sans-serif;\">There is a good list of events that are fired but following are few of the important events in Global.asax:<\/span><\/div>\n<ul style=\"background-color: white; border: 0px; color: #111111; margin: 10px 0px; padding: 0px 0px 0px 40px;\">\n<li style=\"border: 0px; margin: 0px; padding: 0px;\"><span style=\"font-family: Arial, Helvetica, sans-serif;\"><code style=\"border: 0px; color: #990000; margin: 0px; padding: 0px;\">Application_Init<\/code>&nbsp;occurs in case of application initialization for the very first time.<\/span><\/li>\n<li style=\"border: 0px; margin: 0px; padding: 0px;\"><span style=\"font-family: Arial, Helvetica, sans-serif;\"><code style=\"border: 0px; color: #990000; margin: 0px; padding: 0px;\">Application_Start<\/code>&nbsp;fires on application start.<\/span><\/li>\n<li style=\"border: 0px; margin: 0px; padding: 0px;\"><span style=\"font-family: Arial, Helvetica, sans-serif;\"><code style=\"border: 0px; color: #990000; margin: 0px; padding: 0px;\">Session_Start<\/code>&nbsp;fires when a new user session starts<\/span><\/li>\n<li style=\"border: 0px; margin: 0px; padding: 0px;\"><span style=\"font-family: Arial, Helvetica, sans-serif;\"><code style=\"border: 0px; color: #990000; margin: 0px; padding: 0px;\">Application_Error<\/code>&nbsp;occurs in case of an unhandled exception generated from application.<\/span><\/li>\n<li style=\"border: 0px; margin: 0px; padding: 0px;\"><span style=\"font-family: Arial, Helvetica, sans-serif;\"><code style=\"border: 0px; color: #990000; margin: 0px; padding: 0px;\">Session_End<\/code>&nbsp;fires when user session ends.<\/span><\/li>\n<li style=\"border: 0px; margin: 0px; padding: 0px;\"><span style=\"font-family: Arial, Helvetica, sans-serif;\"><code style=\"border: 0px; color: #990000; margin: 0px; padding: 0px;\">Application_End<\/code>&nbsp;fires when application ends or time out.<\/span><\/li>\n<\/ul>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Global.asax is basically ASP.NET Application file. It\u2019s a place to write code for Application-level events such as Application start, Application end, Session start and end, Application error etc. raised by ASP.NET or by HTTP Modules. There is a good list of events that are fired but following are few of the important events in Global.asax: [&hellip;]<\/p>\n","protected":false},"author":43,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","footnotes":""},"categories":[23,34],"tags":[],"class_list":["post-76","post","type-post","status-publish","format-standard","hentry","category-asp-net","category-ibm"],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false},"uagb_author_info":{"display_name":"Himanshu Namdeo","author_link":"https:\/\/debuggersspace.com\/author\/admin\/"},"uagb_comment_info":0,"uagb_excerpt":"Global.asax is basically ASP.NET Application file. It\u2019s a place to write code for Application-level events such as Application start, Application end, Session start and end, Application error etc. raised by ASP.NET or by HTTP Modules. There is a good list of events that are fired but following are few of the important events in Global.asax:&hellip;","_links":{"self":[{"href":"https:\/\/debuggersspace.com\/index.php\/wp-json\/wp\/v2\/posts\/76"}],"collection":[{"href":"https:\/\/debuggersspace.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/debuggersspace.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/debuggersspace.com\/index.php\/wp-json\/wp\/v2\/users\/43"}],"replies":[{"embeddable":true,"href":"https:\/\/debuggersspace.com\/index.php\/wp-json\/wp\/v2\/comments?post=76"}],"version-history":[{"count":0,"href":"https:\/\/debuggersspace.com\/index.php\/wp-json\/wp\/v2\/posts\/76\/revisions"}],"wp:attachment":[{"href":"https:\/\/debuggersspace.com\/index.php\/wp-json\/wp\/v2\/media?parent=76"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/debuggersspace.com\/index.php\/wp-json\/wp\/v2\/categories?post=76"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/debuggersspace.com\/index.php\/wp-json\/wp\/v2\/tags?post=76"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}