471,350 Members | 1,874 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,350 software developers and data experts.

Dynamic controls and their values..

I have a user control that has dynamic controls loaded to it in

this works well. I have a function inside the user control:


When i add this usercontrol to a page: test.aspx and i call
GetValues(), it returns me the values of the dynamically added controls

But when add this usercontrol to another user control: userc.ascx, and
add userc.ascx to test.aspx, and i call GetValues(), the values
returned are only from the before previous requests. it is like the
values are not assigned to the dynamic controls until the page has
finished loading.

Is there anything i can add to my getValues() function to tell the
control to assign posted values before returning to me?

help appreciated.


Jul 21 '05 #1
1 1186
I will reply to my post:

- Well, userc.ascx was being loaded from Page_Load()

usr = LoadControl("userc.ascx")

that cause problems... I moved the above code into Page_Init()


Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by charliewest | last post: by
1 post views Thread by tascien | last post: by
9 posts views Thread by Tarscher | last post: by
4 posts views Thread by =?Utf-8?B?RHlsYW5TbWl0aA==?= | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.