Thread: Control Overrides Page

Ask a Question related to ASP.NET Building Controls, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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...
    4. 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...
    5. 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...
  3. #2

    Default Re: Thread: Control Overrides Page

    "Reiner Max" <reinermax@uni.de> wrote in message
    news:yed3i5icyzrg$.1pk50f0dm7trv$.dlg@40tude.net.. .
    > 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.
    Reiner,

    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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139