By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,985 Members | 1,830 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,985 IT Pros & Developers. It's quick & easy.

User control

P: n/a
Hi to all
i have a apx page with two button
btn1 load webUserContol mycontrol.ascx and it's ok
btn2 get certain property from mycontrol.ascx but when i click btn2
mycontrol.ascx disapper
any idea
Nov 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Sara,
When btn2 is clicked, if you want to access something from mycontrol.ascx,
you need to reload it.

One way to do that is to store the control name (mycontrol.ascx) in the
viewstate and reload it...the other is to use the [free] dynamic placeholder
http://www.denisbauer.com/ASPNETCont...aceholder.aspx

Never used it, but I think it'll do what you want.

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"sara" <sa**@discussions.microsoft.com> wrote in message
news:6D**********************************@microsof t.com...
Hi to all
i have a apx page with two button
btn1 load webUserContol mycontrol.ascx and it's ok
btn2 get certain property from mycontrol.ascx but when i click btn2
mycontrol.ascx disapper
any idea

Nov 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.