user control parent

  • Thread starter Thread starter Philip Townsend
  • Start date Start date
P

Philip Townsend

I have a user control that is reused frequently throughout a web
applicaiton. Is there any way I can determine which web form is calling
the user control? Thanks!
 
This may be a better solution for you, rather than determining which web form is calling the page, create a property of the usercontrol that each page would set, then within the usercontrol you can determine who called the usercontrol based on what values this is set to. That way if two pages ever needed the exact same interface they would both just need to set this one property, rather than your usercontrol having to sort through a bunch of webform names.
--Michael
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top