Web User Control reference to Page????

Discussion in 'ASP .Net' started by Jeff, Apr 11, 2009.

  1. Jeff

    Jeff Guest

    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?
    Jeff, Apr 11, 2009
    #1
    1. Advertising

  2. Jeff

    Jeff Guest

    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...
    Jeff, Apr 11, 2009
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Reny J Joseph Thuthikattu
    Replies:
    1
    Views:
    542
    =?Utf-8?B?UHJha2FzaC5ORVQ=?=
    Dec 30, 2004
  2. =?Utf-8?B?U2FtdWVs?=
    Replies:
    7
    Views:
    1,026
    Scott Allen
    Aug 10, 2005
  3. ABC
    Replies:
    1
    Views:
    2,623
    Larry
    Oct 4, 2005
  4. ABC
    Replies:
    0
    Views:
    470
  5. ABC
    Replies:
    0
    Views:
    185
Loading...

Share This Page