How to Capture Control Initaited the Post Back.

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

  1. #1

    Default How to Capture Control Initaited the Post Back.

    Here is my problem,

    I am using 3 user controls in a page(Test.aspx) which are
    1.Header UC
    2.Body UC
    3.Footer UC

    HeaderUC has a DropDownList control named "ddlList". On
    SelectIndexChanged event of ddlList i am repopulating the
    page(Test.aspx) with new set of values.Page_Load event is
    fired for Test.aspx and i want to capture ddlList control
    has fired the post back event in the Page_Load of
    Test.aspx.

    Is that possible to acheive,If so how.

    Bye.
    BabuLolam
    Lolam Guest

  2. Similar Questions and Discussions

    1. 2nd attempt - post back event in server control
      my code is not getting successful result. how do I get the server control to recognize a button click event ?? ========code============= ...
    2. post back event in server control
      how do I get the button event recognized in the post back from a server control ?? ========code============= Public Class MyButton Inherits...
    3. Capture an Event in a composite control From control on a page
      In the most simple terms assume we have a Composite WebServer control This Composite Control (CC) is just a "label" private Label ...
    4. Post back
      hello all, I have a simple question. on my .aspx page I have bunch of textbox, and dropdowns. One of the dropdown2 has postback = true. When the...
    5. Post back and control focus issues
      Hi, This might help : http://www.developer.com/net/asp/article.php/2237431 Natty Gur, CTO Dao2Com Ltd. 28th Baruch Hirsch st. Bnei-Brak...
  3. #2

    Default Re: How to Capture Control Initaited the Post Back.

    You can't do it like that. When a post back is called, the Page_Load event
    is triggered before any control event that fired the post back. One solution
    is to save a value in a hidden field in response to the client side event
    and then examine this hidden field in the Page_Load event.

    --
    Carsten Thomsen
    Enterprise Development with Visual Studio .NET, UML, and MSF
    [url]http://www.apress.com/book/bookDisplay.html?bID=105[/url]
    "Lolam" <shailesh.lolam@seepz.tcs.co.in> wrote in message
    news:090d01c355ba$3254eb90$a401280a@phx.gbl...
    > Here is my problem,
    >
    > I am using 3 user controls in a page(Test.aspx) which are
    > 1.Header UC
    > 2.Body UC
    > 3.Footer UC
    >
    > HeaderUC has a DropDownList control named "ddlList". On
    > SelectIndexChanged event of ddlList i am repopulating the
    > page(Test.aspx) with new set of values.Page_Load event is
    > fired for Test.aspx and i want to capture ddlList control
    > has fired the post back event in the Page_Load of
    > Test.aspx.
    >
    > Is that possible to acheive,If so how.
    >
    > Bye.
    > BabuLolam

    CT 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