Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Web User Control reference to Page????

Reply
Thread Tools

Web User Control reference to Page????

 
 
Jeff
Guest
Posts: n/a
 
      04-11-2009
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?


 
Reply With Quote
 
 
 
 
Jeff
Guest
Posts: n/a
 
      04-11-2009
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...


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Missing web control reference in user control Chris Szabo ASP .Net Web Controls 0 06-08-2006 04:55 PM
Web User Control with GridView can derive new Web User Control? ABC ASP .Net 1 10-04-2005 12:29 PM
Web User Control with GridView can derive new Web User Control? ABC ASP .Net Web Controls 0 10-03-2005 10:23 AM
Web User Control with GridView can derive new Web User Control? ABC ASP .Net 0 10-03-2005 10:23 AM
reference web control in dynamically added user control, ASP.NET 2 =?Utf-8?B?U2FtdWVs?= ASP .Net 7 08-10-2005 02:12 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57