Sunday, 11 May 2014

VB.NET 2008 - How to add Global.asax file in simple 5 steps

1. Add Global.asax

2. Add new class, name it Global.asax.vb and follow instructions (place it in App_Code folder)

3. Modify Global.asax add the following <%@ Application Language="VB" CodeBehind="~/App_Code/Global.asax.vb" Inherits="Global" %>

4. Modify Global.asax.vb add the following Inherits System.Web.HttpApplication, change name to [Global]

5. Add Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs) to Global.asax.vb

No comments:

Post a Comment