Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Application_BeginRequest and the Page object

Reply
Thread Tools

Application_BeginRequest and the Page object

 
 
ampitt02 ampitt02 is offline
Junior Member
Join Date: Jun 2008
Posts: 2
 
      06-20-2008
Protected Sub Application_BeginRequest(ByVal sender As Object, ByVal e As System.EventArgs)
Dim handler As System.Web.IHttpHandler = System.Web.HttpContext.Current.Handler
If Not handler Is Nothing AndAlso TypeOf handler Is System.Web.UI.Page Then
Dim page As System.Web.UI.Page = DirectCast(handler, System.Web.UI.Page)
'use page object
End If
ServiceManager.GetService(Of ICacheSyncService)().DoSyncPurge()
End Sub
 
Reply With Quote
 
 
 
 
ampitt02 ampitt02 is offline
Junior Member
Join Date: Jun 2008
Posts: 2
 
      06-20-2008
Protected Sub Application_BeginRequest(ByVal sender As Object, ByVal e As System.EventArgs)
Dim handler As System.Web.IHttpHandler = System.Web.HttpContext.Current.Handler
If Not handler Is Nothing AndAlso TypeOf handler Is System.Web.UI.Page Then
Dim page As System.Web.UI.Page = DirectCast(handler, System.Web.UI.Page)
'use page object
End If
ServiceManager.GetService(Of ICacheSyncService)().DoSyncPurge()
End Sub
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Application_BeginRequest and Request.Params[] under Asp.net 2.0 tao lin ASP .Net 1 03-26-2006 10:47 PM
Java script error when URL's modified in Application_EndRequest and Application_BeginRequest Wayne Sepega ASP .Net 1 01-06-2006 03:24 PM
Catch WebMethod name and params in Application_BeginRequest Franck ASP .Net 1 10-04-2005 11:26 AM
Catch WebMethod name and params in Application_BeginRequest Franck ASP .Net Web Services 0 09-30-2005 06:47 AM
Can Application_BeginRequest return a DataSet and stop normal webmethod flow? ASP .Net Web Services 1 05-25-2005 06:02 PM



Advertisments