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

  1. #1

    Default Re: page events

    Can you call the GetData function and the function that builds the table and
    adds the event handlers in the OnInit function?

    Todd Thompson
    Todd Thompson Guest

  2. Similar Questions and Discussions

    1. Is it possible to catch all events on the page (into theworkspace) in Dreamweaver?
      Hi All! In the Dreamweaver I would like to catch event, e.g.: when user (site developer) press button "B" on the property inspector panel for make...
    2. 2 controls on the same page and wrong events fire
      I have a button control that uses the <button> tag. I use the render control method. I have the name attribute set to the control unique id. ...
    3. ASP.NET 1.1: Page vs. Control events
      Hi I am having a number of User Controls (ascx) on my page (aspx). The page is in my scenario only working as a dumb "container "giving life to...
    4. Events not firing from page-behind file from Page.LoadControl
      Are you adding this dynamically loaded control to your page's Controls collection? -- Ben http://bitarray.co.uk/ben "James Geurts" <James...
    5. Is the anyway I can bind a datagrid after the page load and still get events
      Show us the code. You're not forgetting If Not Page.IsPostBack are you? Justin Dutoit "KJ" <klj_mcsd@hotmail.com> wrote in message...
  3. #2

    Default Re: page events

    I need to do it after all the event handlers fire, so that GetData will
    reflect the latest changes made by the event handlers...
    thanks for the reply - Trevor

    "Todd Thompson" <tlthompson@west.com> wrote in message
    news:ODdaBxCPDHA.1624@tk2msftngp13.phx.gbl...
    > Can you call the GetData function and the function that builds the table
    and
    > adds the event handlers in the OnInit function?
    >
    > Todd Thompson

    Trevor Hartman Guest

  4. #3

    Default Re: page events

    My thoughts are that the solution is getting the changes in the GetData
    function (which should be called from the OnInit function). I haven't tried
    using properties that early in the life cycle but I would try those. You
    can also use a database or the query string. If you were really ambitious
    you could decode the session state.

    I haven't figured out a way to create functional event handlers in the
    Page_Load function.

    ASP.NET's nice easy way doesn't seem to work for dynamic web pages. If the
    dynamic stuff I'm adding is constant/predictable (like nav bars, style
    sheets, or such) then the OnInit thing works great. If the content is
    highly dynamic then I tend to use XML and XSLT.

    HTH,
    Todd Thompson
    Todd Thompson Guest

  5. #4

    Default Re: page events

    The only problem with putting GetData in OnInit is that I won't get the data
    changes made by my event handlers. I wish there was a way to make the event
    handlers fire at a specific time during the load process. About decoding
    the session state, I just got into .NET about a month ago so I don't really
    know what that means. Anyway, I think I'm going to forget about using wired
    event handlers, and instead I'll just link up my buttons to a client-side JS
    function and use it to submit a postback form. I'm starting to feel like
    I'm developing classic ASP again.... Thanks a lot for your reply.

    Trevor


    "Todd Thompson" <tlthompson@west.com> wrote in message
    news:eETPbZLPDHA.1556@TK2MSFTNGP10.phx.gbl...
    > My thoughts are that the solution is getting the changes in the GetData
    > function (which should be called from the OnInit function). I haven't
    tried
    > using properties that early in the life cycle but I would try those. You
    > can also use a database or the query string. If you were really ambitious
    > you could decode the session state.
    >
    > I haven't figured out a way to create functional event handlers in the
    > Page_Load function.
    >
    > ASP.NET's nice easy way doesn't seem to work for dynamic web pages. If
    the
    > dynamic stuff I'm adding is constant/predictable (like nav bars, style
    > sheets, or such) then the OnInit thing works great. If the content is
    > highly dynamic then I tend to use XML and XSLT.
    >
    > HTH,
    > Todd Thompson

    Trevor Hartman 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