Ask a Question related to ASP.NET Building Controls, Design and Development.
-
Reiner Max #1
Thread: Control Overrides Page
Hello
I would like to be able that my control overrides the complete
live circle of the page. The event is trigger by a Query string
value.
I need that my controls stops the process(events) of the page and all the
other controls.
The Problem for me is that i can overwrite the render method but i will
prevent all
database connections and code from this page and proceed only my code.
So my question is where I can start so the developer
who use this control doesn't need to change his own code
only the properties of my control.
Thanks
Max
Reiner Max Guest
-
Is each .asp page executes under a different thread ?
Addition to subject line: do the COM object instances created in each page belong to the same thread that the page is running in ? do it depend... -
Newbie:Using ASP.NET thread pool thread to dispatch TCP data, etc.
Hi, I've an ASP.NET web service which distributes events to clients via TCP. Environment is IIS6 on Windows 2003 server with .NET framework 1.1... -
Could not instantiate ActiveX control because the current thread is not in a si
Getting "Could not instantiate ActiveX control because the current thread is not in a single-threaded apartment. " error while using AxMSComLib... -
Controlling page from a Thread
Hi, 1) Set the page to be Autorefresh (<META EQUIV="refresh" CONTENT="30"> - every 30 sec.) 2) Declare session variables that will hold the... -
HttpContext is Nothing in new Thread inside a control
I start a parallel thread inside a control with the following code: Private Sub StartParallelProc(ByVal Command As SqlClient.SqlCommand) Dim T... -
John Saunders #2
Re: Thread: Control Overrides Page
"Reiner Max" <reinermax@uni.de> wrote in message
news:yed3i5icyzrg$.1pk50f0dm7trv$.dlg@40tude.net.. .Reiner,> Hello
>
> I would like to be able that my control overrides the complete
> live circle of the page. The event is trigger by a Query string
> value.
>
> I need that my controls stops the process(events) of the page and all the
> other controls.
> The Problem for me is that i can overwrite the render method but i will
> prevent all
> database connections and code from this page and proceed only my code.
>
> So my question is where I can start so the developer
> who use this control doesn't need to change his own code
> only the properties of my control.
You might want to reconsider the idea of "overriding" the page from inside
of a control which is on the page. It leads to many questions. For
instance, will your control be the only control on the page? If not, then
the normal "page" events should occur for the benefit of the other controls
on the page. Also, what happens in a future version of ASP.NET when the
features of a "Page" change and your control doesn't change to match them?
Also, is it ok with you for the normal control lifecycle to occur for your
control?
Please give us a better idea of what you're trying to accomplish, and maybe
we'll be able to provide better advice. One idea would be for your control
to _be_ a Page (that is, to derive from System.Web.UI.Page). However,
without knowing what you're trying to accomplish, I don't know if that will
work for you.
--
John Saunders
johnwsaundersiii at hotmail
John Saunders Guest



Reply With Quote

