Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

usercontrols

Status
Not open for further replies.

Badgers

Programmer
Nov 20, 2001
187
US
Hi,

I have an aspx page which references a usercontrol.

The aspx page is made up of multiple panels with nested usercontrols within, so to keep the viewstate on post backs.

The problem I have : when I select a tab, it raises that event in the usercontrol, but then I need to reference the consuming aspx page to clear and show certain panels?

How is it best to do this ?

Thanks

Tim.
 
you want to access the parent page from the usercontrol right?

there is a parent property available in usercontrols if i am correct...

Known is handfull, Unknown is worldfull
 
>>The problem I have : when I select a tab, it raises that event in the usercontrol, but then I need to reference the consuming aspx page to clear and show certain panels?

brian, seemed like he wanted to add the code to the ASCX page itself...

Known is handfull, Unknown is worldfull
 
I think Brian's right, though. The system is more cohesive if the parent page manipulates its own controls in response to events from the user control.
 
>>I think Brian's right, though. The system is more cohesive if the parent page manipulates its own controls in response to events from the user control.


correct, but it is situation based, i thought the user wanted to control the coding in the ASCX page itself, meaning he need not rewrite the code in any of the containing page. if we raise events then the code must be written in each containing page seperately.

again its based on what the poster wants....

Known is handfull, Unknown is worldfull
 
Yeah, but I've come to realize in my technical career that there's sometimes a difference between what a person asks for and what they really want. [lol]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top