943,724 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 2643
  • ASP.NET RSS
Jan 27th, 2009
0

How to apply themes to the user control?

Expand Post »
I have created a user control with name menuUserControl with menu control in it. I have created a user defined property for the user control(menuUserControl) as groupid and when ever I pass groupid to the user control(menuUserControl) in a page, it should use a theme based on the groupid I pass to it. For example if I use two user controls(menuUserControl) one at the top and other at the bottom of the the page with two different groupids like if I pass groupid=1 for top user controls(menuUserControl), it should use theme1 and groupid=2 to the bottom user controls(menuUserControl), it should use theme2. So my problem is that I am unable to apply theme to the user control. I have done some google search but unable to create a theme for a user control. I am only able to apply themes to the server controls. As I am using two user controls i.e menuUserControl as said above, both are displaying same theme. I want to apply two different themes to two user controls(menuUserControl). If any one have any solution or any other alternative, kindly help me please, Its very urgent for me. If you did not understand or you have any doubt, please reply back, I will try to analyze the problem. Hope to get a positive response.

Thanks Wajid
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
ansari.wajid is offline Offline
47 posts
since Aug 2007
Jan 27th, 2009
0

Re: How to apply themes to the user control?

Hi

I think I have not explained the problem clearly.
So in simple terms, I want to say that I have created a usercontrol and using it in a page at the top and bottom. I want to apply two different themes to the top and the bottom user control.

Thanks
Reputation Points: 10
Solved Threads: 0
Light Poster
ansari.wajid is offline Offline
47 posts
since Aug 2007
Jan 30th, 2009
0

Re: How to apply themes to the user control?

I do not think you can implement it according to your imagine. Because the user Controls don't have a theme property, but when you assign a theme to a page, the theme does influence all of the controls in the page. A user control will use the theme of its page.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
joelsmith is offline Offline
6 posts
since Jan 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: images
Next Thread in ASP.NET Forum Timeline: validation of email with images of tilted characters





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC