CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 4/16/2007 8:43:58 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 15 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
LFonseca
Asp.Net User
Custom webcontrols and themes4/16/2007 8:43:58 AM

0/0

Hi,

I'm creating a custom web control, and i want to set its properties by using a theme. So far I've had no problems, but now i need to specify a image path which is in my theme folder, and i want to specify a relative path to my skin file, but when i see in the browser, the relative path is set to the skin file, and not to the page, is there any way to specify in a skin file that a certain attribute is an Url?

 

Regards,

LFonseca
 


Regards,
LFonseca
XiaoYong Dai –
Asp.Net User
Re: Custom webcontrols and themes4/20/2007 8:28:28 AM

0/0

The workround is to pull the style out of the skin and into a CSS file.

In skin file:

<asp:TableCell runat="server" SkinID="corner1" CssClass="tableCell"/>

In CSS file:

     .tableCell
        {
        background-image: url(../../images/corner1.gif);
        ...(etc)...
        }


Best Regards
XiaoYong Dai
Microsoft Online Community Support

Please remember to click ?Mark as Answer? on the post that helps you, and to click ?Unmark as Answer? if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Professional Web Parts and Custom Controls with ASP.NET 2.0 Authors: Peter Vogel, Pages: 449, Published: 2005
Pro VB 2008 and the .NET 3.5 Platform Authors: Andrew Troelsen, Pages: 1377, Published: 2008
ASP.NET Cookbook Authors: Michael A. Kittel, Geoffrey T. LeBlond, Pages: 824, Published: 2004
Building Websites with the ASP.Net Community Starter Kit Authors: Cristian Darie, K. Scott Allen, Pages: 284, Published: 2004
Professional ASP.NET 2.0 Authors: Bill Evjen, Scott Hanselman, Farhan Muhammad, Srinivasa Sivakumar, Devin Rader, Pages: 1253, Published: 2005
Professional ASP.NET 3.5: In C# and VB Authors: Bill Evjen, Scott Hanselman, Devin Rader, Pages: 1673, Published: 2008
Pro C# 2008 and the .NET 3.5 Platform Authors: Andrew Troelsen, Pages: 1370, Published: 2007
Expert ASP.NET 2.0 Advanced Application Design: Advanced Application Design Authors: Dominic Selly, Andrew Troelsen, Tom Barnaby, Pages: 459, Published: 2005
Pro VB 2005 and the .Net 2.0 Platform Authors: Andrew Troelsen, Pages: 1034, Published: 2006
Professional C# 2005 Authors: Christian Nagel, Bill Evjen, Jay Glynn, Karli Watson, Morgan Skinner, Allen Jones, Pages: 1540, Published: 2006

Web:
Custom Control Theme Problem - ASP.NET Forums I have a custom web control that I'm writing and I want it to work with themes; I've looked into the themeable property and that doesn't ...
ASP.NET 2.0 Web Controls,Themes, and Master Pages NET 2.0 WEB CONTROLS, THEMES, AND MASTER PAGES. 887. Figure 26-1. ...... custom UI content. Finally, as you were shown, the ASP.NET theme engine allows you ...
ASP.NET Web Controls,Themes, and Master Pages WebControls namespace. As you have seen, these controls (which go by the ...... custom UI content. Finally, as you were shown, the ASP.NET theme engine ...
K. Scott Allen : Themes for Custom Controls in ASP.NET Sep 1, 2005 ... WebControls. {. public class MyCalendar :. System.Web.UI.WebControls.Calendar ... NET 2.0 Themes and Custom Controls ...
Center for Technology Innovation The third segment will show the proper use of Themes and Skins from beginning to end, including some best practices. Topics. TOPICS Custom WebControl ...
Walkthrough: Developing and Using a Custom Server Control In addition, a control that derives from WebControl participates in the themes features of ASP.NET without any extra work on your part. ...
Add your own custom button Create the custom button using the Editor.CreateCommandButton method. //Themes/% ThemeName%/Images/text.gif WebControl ctrl=Editor1. ...
ITCourseware - COMPLETE ASP.NET Custom Web Controls. Understanding and Creating User Controls; Composite User Controls ... Defining a Custom Theme; Establishing Themes Programmatically ...
aspnet webcontrols Error Rendering Control - ButtonSearch An ... There was an error parsing the theme: The 'assembly' attribute cannot be an empy string." ============== Based on my local test, for custom ...
ASP.NET Courseware | ASP.NET Curriculum | ASP.NET Training Guide Building custom user controls; Building custom web controls; Integrating custom controls ... Examine the use of themes and skins; Dynamically assign themes ...




Search This Site:










right aligning contents of textbox

dotnetnuke and microsoft reporting services

dnn 2.0 and postgresql

login problem w/ ms access version

best practices for data generator based tests?

no dropdownlist for location ?

where is the source code for the core modules in 3.1

dnn 3.0.4 - module search bug / workaround

error on building the application that uses form authentication.

help me!!! error: unable to visual studio's localhost web server

keeping solution file with project files

visual studio projects in 2005

getting parser error 'events.eventscls' is not a valid base class

import declaration for the ie web controls

change colour of tab area?

microsoft.applicationblocks.data sql problems

can we use webcontrol in ie

array question

looking for skin designer...

whats wrong with this simple data binding page pls help

please help

command line compiler for 3.x

trying to get started in asp

difference between asp.net and vb.net

sql errors not being thrown in visual studio 2008

timeline for 4.01?

web user control : order of processing

im new to asp.net

forms to asp.net

seeking advice on security questions

 
All Times Are GMT