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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can an embeded web user control call a funtion in parent user control

Status
Not open for further replies.

toptomato

Programmer
Jul 22, 2005
62
US
hi guys,
I have one user control (lets call it user control B) embedded in another user control (lets call it user control A). Is it possible to call function in user control A from a function in usercontrol B?
thanks guys
 
Yes, as long as it's Public.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
you are absoluty right ca8msm. I tried it on VS 2003 and it worked flawlessly. However, I was trying it on VS 2005 and the intellesense wouldn't show any function for parent control from child control. Here is what i mean:

((ucParent)(this.Parent)).

When i type the above code in the child control's code behind and after I type '.' the intellesense should show all the function of ucParent, but it doesn't. Any thoughts on that.

thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top