Web User Control reference to Page????

  • Thread starter Thread starter Jeff
  • Start date Start date
J

Jeff

hi

asp.net 2.0

I wonder if it's possible to get a reference to the page from within a web
user control

You see I have a web user control which is used on multiple pages in my
project, depending on what page the web user control is on, a div on the web
user control should have different background color.

any suggestions?
 
Okay, I've somehow fized it. I didn't find a reference to the page. instead
I use Request.Path

In a if statement I test using Request.Path to find what is current page...
 
Back
Top