473,406 Members | 2,208 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Initializing webform through PageInit() in HttpModule, Httphandler

i need help so that i can initialize page thorugh
http module or handler

i know it is possible through handler using
ProcessRequest but im aint configure the
things out.

i need some thing like this
Initialises form => fill's datagrid through dataset using commandfactory/command => load form

please help

Moid Iqbal

Nov 18 '05 #1
2 1637
Moid,

Just get confused with your question.
What's wrong with using Page_Load event?? Or
Application_Begin Request in Global.asax.xx.?? You can
make initialization here.

Can you show me some details ?

Rgds,
Jody Ananda
MCAD.NET,MCSD.NET
"All programs are poems, it just not all programmers are
poets."

-----Original Message-----
i need help so that i can initialize page thorugh
http module or handler

i know it is possible through handler using
ProcessRequest but im aint configure the
things out.

i need some thing like this
Initialises form => fill's datagrid through dataset using commandfactory/command => load form
please help

Moid Iqbal

Nov 18 '05 #2
Sorry for confused question. here is detail question.

I m implementing front controller in asp.net.
we implement three event-handler
1. PreRequestHandlerExecute
2. PostRequestHandlerExecute
3. BeginRequest

we just want to initialize the page, but dont want to load it.
After BeginReq the page should Load.

becuse we need to fill Datagrid through Command
and then load it.

is there any event in httpmodule that initialises page init events
or is there some thing we are missing in whole here
please help me.

Thanks and Regards.
Moid
------Code:-------------

Public Class Handler
Implements IHttpModule

Public Sub Init(ByVal ctx As System.Web.HttpApplication) Implements
System.Web.IHttpModule.Init
AddHandler ctx.PreRequestHandlerExecute, AddressOf
context_PreRequestHandlerExecute
AddHandler ctx.PostRequestHandlerExecute, AddressOf
context_PostRequestHandlerExecute
AddHandler ctx.BeginRequest, AddressOf context_BeginRequest
End Sub 'Init

Private Sub pageInit(ByVal [source] As [Object], ByVal e As
EventArgs)
End Sub

Private Sub context_BeginRequest(ByVal [source] As [Object], ByVal e
As EventArgs)
Dim application As HttpApplication = CType([source],
HttpApplication)
Dim context As HttpContext = application.Context.Current
Dim session As HttpSessionState = context.Session

Try
Dim command As Command =
CommandFactory.Make(context.Request.RawUrl)
If Not (command Is Nothing) Then
command.Execute(context)
Else
End If
Catch
End Try

End Sub
Public Sub Dispose() Implements IHttpModule.Dispose
End Sub

Private Sub context_PreRequestHandlerExecute(ByVal sender As Object,
ByVal e As EventArgs)
'...Code
End Sub 'context_PreRequestHandlerExecute
Private Sub context_PostRequestHandlerExecute(ByVal sender As
Object, ByVal e As EventArgs)
'...Code
End Sub 'context_PostRequestHandlerExecute

End Class
--------------------------------

"Mas Jabier" <Ma********@discussions.microsoft.com> wrote in message
news:02****************************@phx.gbl...
Moid,

Just get confused with your question.
What's wrong with using Page_Load event?? Or
Application_Begin Request in Global.asax.xx.?? You can
make initialization here.

Can you show me some details ?

Rgds,
Jody Ananda
MCAD.NET,MCSD.NET
"All programs are poems, it just not all programmers are
poets."

-----Original Message-----
i need help so that i can initialize page thorugh
http module or handler

i know it is possible through handler using
ProcessRequest but im aint configure the
things out.

i need some thing like this
Initialises form => fill's datagrid through dataset using

commandfactory/command => load form

please help

Moid Iqbal

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Peter Rilling | last post by:
Can an HttpHandler or HttpModule be invoked on non-ASP.NET pages such as images or ASP or HTML pages? Can I trap a request for those pages? If not, how might I trap those requests?
0
by: Bruce B | last post by:
Hi group, I'm experiencing some extreme weirdness over the last week with IIS related to it's Mappings and how .NET is behaving. I can't explain the behavior as it seems very random. Our...
3
by: Michael Iantosca | last post by:
I have a custom attribute that I attach to certain pages in my application and I want to inspect each page request as it is made to see if the custom attribute is attached to the underlying page...
3
by: MWells | last post by:
I'm having an issue getting my HttpHandlers and HttpModules to play together nicely. My HttpHandlers take special document types (defined by extension) and process them specially. I might have...
0
by: Mike Schilling | last post by:
(I've asked this on the C# newsgroup; I'm hoping someone over here might have an idea.) We have a C# application running under ASP.NET. It wasn't written using any VS.NET magic; all of the call...
0
by: tshad | last post by:
I am trying to get an HttpHandler I found on the Web to work. It is called FreeText. It allows fancy handling of a Textbox. This program is just a dll that you set up as an HttpHandler: ...
1
by: Max | last post by:
I have my HTTPModule or HTTPHandler registered to process all file types (*). I have IIS configured to pass all requests to ASP.NET for this virtual directory. In some cases depending on the...
2
by: Roshawn | last post by:
Hi, I've been fighting tooth and nail trying to handle clunky viewstate data. I happened to find some code that moves this data to the bottom of the page (to enhance spidering, of course). ...
3
by: Guzeppi | last post by:
if i want to create a redirection service, i.e. requests on a certain url are redirected to other urls depending on the querystring parameters in the request, what is best to use in this case...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.