I want to press a button and have it change an XML file. Those changes need
to be place before the page loads again, specifically at the page
initialisation stage. I am using the XML file to determine which controls to
add to the page. It's really long winded to explain why I need this but
this is the order I need things executed:
Load Page with button.
Press button, amend XML file.
Postback and use changed XML file in the load event.
My understanding is the postback processing takes place AFTER the load which
is too late.
If I repost the XML will have changed and the user won't notice. Currently I
have to press the button twice for the changes in XML to show up.
If you need more info that's fine but I don't want to make things so
longwinded to put people off! Regards, Chris.
"Daniel Walzenbach" <da***************@newsgroup.nospam> wrote in message
news:#j**************@TK2MSFTNGP12.phx.gbl...
I agree to Victor. Triggering postback twice is definitely no solution!
---------------------------------------
Daniel Walzenbach
MCP
www.walzenbach.net
"Victor Garcia Aprea [MVP]" <vg*@NOobiesSPAM.com> schrieb im Newsbeitrag
news:Ot**************@TK2MSFTNGP12.phx.gbl... There is no sense in triggering postback twice. Could you specify more
details of what you're after?
--
Victor Garcia Aprea
Microsoft MVP | ASP.NET
Read my weblog:
Followers of the IHttpHandler
http://clariusconsulting.net/vga
"Chris Kennedy" <ck**************@bleyonder.co.uk> wrote in message
news:uv**************@TK2MSFTNGP14.phx.gbl...I want to click a button and have it does something before the page
reloads.
I now realize the page processes the server side event after page
loads. Is
there any way of triggering the postback twice. I know its a hack.....