CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

MS SQL 2008 on ASP.NET Hosting



Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 12/21/2007 5:07:18 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 27 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
kingsingh
Asp.Net User
Does anyone know how to theme controls that are within a custom control on a themed page?12/21/2007 5:07:18 PM

0/0

I am trying to built a custom themed control that goes on a page that is themed.  This works great, but my problem is I have controls that I render within the custom control that don't get themed:

protected override void RenderContents(HtmlTextWriter output)
{
     output.WriteLine("blah blah");

     Image i = new Image();
     i.ID = "test123";
     i.SkinID = "go";
     i.RenderControl(output);
}

I have tried many things and it seems the only way to get this to work is the control must reside on the page.  If  you dynamically create this control on the page, then you can run the "ApplyStyleSheetSkin" method. 

Does anyone out there know how to make this work?

 Thanks

Adam.Kahtava
Asp.Net User
Re: Does anyone know how to theme controls that are within a custom control on a themed page?12/21/2007 6:26:36 PM

0/0

Are you trying to apply a skin or a theme? I'm pretty sure you have to define your theme or skin, early in the control or pages life cycle (like in the pre_init).

In your code snippet where are you calling the RenderContents method? 

Here's an article that may help you out: Taking Care Of Pre_Init


-Adam Kahtava [http://adam.kahtava.com]
kingsingh
Asp.Net User
Re: Does anyone know how to theme controls that are within a custom control on a themed page?12/21/2007 6:35:46 PM

0/0

I have a page called eg:

 test.aspx - this page has a custom control I built called TopNavBar and the theme is set in the page directive 

the TopNavBar control is being themed by the test.aspx page theme set in the page directive.  My custom control TopNavBar has some custom controls within it that need to be themed too.  These controls only reside in the TopNavBar and are never on the test.aspx page.  When I render the controls within the custom control TopNavBar, they never seem to get themed. 

What I need to know is how to theme them.

 Thanks

Adam.Kahtava
Asp.Net User
Re: Does anyone know how to theme controls that are within a custom control on a themed page?12/21/2007 6:43:49 PM

0/0

Scott Allen has a great article that covers this topic, read through: Themes For ASP.NET User Controls


-Adam Kahtava [http://adam.kahtava.com]
4 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:

Web:
Community Server 2008 - How to Support Widgets in a Custom Theme ... Apr 18, 2008 ... After updating a custom theme for CS2008, support for widgets can be added. ... These controls can be included in any page, master page, ...
DotNetSlackers: WPF: Custom control style and theme resources Jun 17, 2008 ... WPF: Custom control style and theme resources ... Application resources are those resources within the resource dictionary that is defined ...
Create a Custom Theme | InterWorx Control Panel You should now be looking at the Theme Management controls in the main content ... it will show “no preview” next to the display name on the theme page. ...
Theme Development « WordPress Codex If your Theme needs to have even more control over which Template files are .... Hooks are within the core PHP code of WordPress, so your Theme does not ...
CodeGuru: XP Theme Support for Rich Edit and Custom Controls The class will only draw the theme if the Rich Edit control has the WS_BORDER ... This section is for curious people who want to know how the class works ...
Take control of your Drupal theme | Lullabot Perhaps you need a separate admin theme? Or how about a login page which only shows the ... a new function named _phptemplate_variables() within your theme. ...
How to Create a Theme - Part 3 In “Part 3” of creating a new theme, we’ll take a look at converting an existing theme to a new ... Master, Controls the layout for the Closed page. Custom. ...
My WordPress Design Custom WordPress theme design. Top notch free WordPress themes. ... Basically, a control panel becomes mandatory If your wordpress theme uses magazine ...
Custom Control Theme Problem - ASP.NET Forums The problem is not that I can't get the theme to apply in runtime, .... Has anyone had this problem before? I'm using a control designer in ...
[#CONTRIB-517] Create the custom theme block. - Moodle Tracker Provide the only means of access to the page to customize theme. ... Display capability controls who can see the block (and hence modify the theme). ...




Search This Site:










sql server table / view / data errors.

how can i disable the popdown menus? (and more)

changing the dataprovider for dnn

server error in '/dotnetnuke' application

getting network login ????

assembly error in new .netnuke 4.3.1 install

error after upgrading to dnn 3.2

2.1.2 - cdo error cannot send any emails from dnn

how does dnn label control work in links?

i just deleted all my skins....and now i get this error: an unhandled error has occurred.

configuration error on windows 2003 development

trouble with 3.1.0 install of second portal on separate msde instance

trouble with dnn 4.0

assumption: i've backed up my providers directory so minus custom modules my site is backed up

schedule module

blog problem

dnn 4.0 and "the stored procedure 'dbo.getportalaliasbyportalid' doesn't exist." error

skin problem

language pack install fails: no rights on file system

nobanner.gif is missing

i installed dotnetnuke 3.11, but core services won't work

dotnetnuke

install error

dnn - build warnings

installation problem.

error with module load

external form, submitted or not!

need guidance

building dnn

dnn 3.1 operational problems

  Privacy | Contact Us
All Times Are GMT