Web User Control reference to Page????

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?
 
J

Jeff

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...
 

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

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top