469,140 Members | 1,211 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,140 developers. It's quick & easy.

web user controls / event handling

Hi,
Is there any way to cause a page to completely resubmit itself from the
server side?

I have an array of user controls that, in the event handler of the user
control itself, add new user controls to the same array - so page_load runs,
then the control's event handler, but I can't handle the events of the new
controls, because I didn't load them during page_load - simplest solution
seems to be to store the lot in session memory and then reload the page -
but I can't figure out how you do it.

Thanks

Nick
Nov 18 '05 #1
1 1180
Hi Nick,

What you can do is use use session variables. Instead of creating your
controls in the event handlers, you need to create all of your controls in
the page load routine. You can accomplish by
1) setting a session variable or seesion array in the event handler
2) re-loading the page by doing a server.transfer back to your page.

Steve


"Nick Stansbury" <ni**************@sage-partners.com> wrote in message
news:uw**************@TK2MSFTNGP12.phx.gbl...
Hi,
Is there any way to cause a page to completely resubmit itself from the
server side?

I have an array of user controls that, in the event handler of the user
control itself, add new user controls to the same array - so page_load runs, then the control's event handler, but I can't handle the events of the new
controls, because I didn't load them during page_load - simplest solution
seems to be to store the lot in session memory and then reload the page -
but I can't figure out how you do it.

Thanks

Nick

Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Tamir Khason | last post: by
6 posts views Thread by Steve Caliendo | last post: by
9 posts views Thread by Sridhar | last post: by
3 posts views Thread by Joe | last post: by
2 posts views Thread by ratnikov.alexander | last post: by
3 posts views Thread by =?Utf-8?B?VDhS?= | last post: by
1 post views Thread by Efi Merdler | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.