Application_BeginRequest and the Page object

Joined
Jun 20, 2008
Messages
2
Reaction score
0
Try this.....

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
 
Joined
Jun 20, 2008
Messages
2
Reaction score
0
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top