| | |
How to apply themes to the user control?
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Aug 2007
Posts: 33
Reputation:
Solved Threads: 0
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
Thanks Wajid
•
•
Join Date: Jan 2009
Posts: 6
Reputation:
Solved Threads: 0
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.
![]() |
Similar Threads
- Antivirus XP 2008 (Windows NT / 2000 / XP)
- Slow PC, can't find reason please help (Windows NT / 2000 / XP)
Other Threads in the ASP.NET Forum
- Previous Thread: images
- Next Thread: validation of email with images of tilted characters
| Thread Tools | Search this Thread |
.net 2.0 3.5 activexcontrol advice ajax alltypeofvideos asp asp.net bc30451 bottomasp.net browser businesslogiclayer button c# c#gridviewcolumn checkbox child click commonfunctions compatible confirmationcodegeneration content contenttype countryselector courier css dataaccesslayer database datagrid datagridview datagridviewcheckbox datalist deadlock development dgv dropdownlist dropdownmenu edit expose feedback flash flv form formatdecimal forms formview gridview homeedition hosting iframe iis javascript jquery list listbox login menu microsoft mono mouse mssql multistepregistration nameisnotdeclared news numerical objects order panelmasterpagebuttoncontrols radio ratings rotatepage save schoolproject search security serializesmo.table silverlight smartcard sql-server sqlserver2005 suse textbox tracking typeof unauthorized validation vb.net video videos virtualdirectory vista visual-studio visualstudio web webarchitecture webdevelopemnt webservice xml youareanotmemberofthedebuggerusers





