Ask a Question related to ASP.NET General, Design and Development.
-
Todd Thompson #1
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
-
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 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. ... -
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... -
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... -
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... -
Trevor Hartman #2
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...and> Can you call the GetData function and the function that builds the table> adds the event handlers in the OnInit function?
>
> Todd Thompson
Trevor Hartman Guest
-
Todd Thompson #3
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
-
Trevor Hartman #4
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...tried> My thoughts are that the solution is getting the changes in the GetData
> function (which should be called from the OnInit function). I haven'tthe> 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> 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



Reply With Quote

