Hi,
I have a question regarding themes and skins in ASP.NET 2.0.
Since I have images in the application menu bar and since the menu bar is
defined in the web.sitemap file, how could I apply a theme (SkinID) to
modify the images ?
Thanks 5 2564
One way is to use <asp:Image SkinID="xyz">, where SkinID maps to a
skin with the specific image you want, i.e in the skin file:
<asp:Image runat="server" SkinID="xyz" ImageUrl="Image .png">
I have some tips like this in an article: http://www.odetocode.com/Articles/423.aspx
--
Scott http://www.OdeToCode.com/blogs/scott/
On Wed, 25 Jan 2006 22:14:31 -0500, "Quynh"
<AA********@hot mail.comAAAA> wrote: Hi,
I have a question regarding themes and skins in ASP.NET 2.0. Since I have images in the application menu bar and since the menu bar is defined in the web.sitemap file, how could I apply a theme (SkinID) to modify the images ?
Thanks
But how can I do it within the web.sitemap file?
Thanks
"Scott Allen" <sc***@nospam.o detocode.com> wrote in message
news:sq******** *************** *********@4ax.c om... One way is to use <asp:Image SkinID="xyz">, where SkinID maps to a skin with the specific image you want, i.e in the skin file:
<asp:Image runat="server" SkinID="xyz" ImageUrl="Image .png">
I have some tips like this in an article: http://www.odetocode.com/Articles/423.aspx
-- Scott http://www.OdeToCode.com/blogs/scott/
On Wed, 25 Jan 2006 22:14:31 -0500, "Quynh" <AA********@hot mail.comAAAA> wrote:
Hi,
I have a question regarding themes and skins in ASP.NET 2.0. Since I have images in the application menu bar and since the menu bar is defined in the web.sitemap file, how could I apply a theme (SkinID) to modify the images ?
Thanks
On Thu, 26 Jan 2006 19:10:10 -0500, "Quynh"
<AA********@hot mail.comAAAA> wrote: But how can I do it within the web.sitemap file?
I'm sorry, I'm not undertanding how the web.sitemap file plays into
this. Do you put imageUrls in the sitemap, perhaps?
--
Scott http://www.OdeToCode.com/blogs/scott/
Hi,
I have a menu defined as you can see below in the web.sitemap file where
there is an image beside each title.
<siteMapNode title="Edit" url="~/Edit.aspx" >
<siteMapNode title="House" url="~/house.aspx"
image="~/images/house.gif" />
<siteMapNode title="Garden" url="~/garden.aspx"
image="~/images/garden.gif" >
</siteMapNode>
Thanks
"Scott Allen" <sc***@nospam.o detocode.com> wrote in message
news:qd******** *************** *********@4ax.c om... On Thu, 26 Jan 2006 19:10:10 -0500, "Quynh" <AA********@hot mail.comAAAA> wrote:
But how can I do it within the web.sitemap file?
I'm sorry, I'm not undertanding how the web.sitemap file plays into this. Do you put imageUrls in the sitemap, perhaps?
-- Scott http://www.OdeToCode.com/blogs/scott/
On Sun, 29 Jan 2006 20:17:04 -0500, "Quynh"
<AA********@hot mail.comAAAA> wrote: Hi,
I have a menu defined as you can see below in the web.sitemap file where there is an image beside each title.
<siteMapNode title="Edit" url="~/Edit.aspx" >
<siteMapNode title="House" url="~/house.aspx" image="~/images/house.gif" />
<siteMapNode title="Garden" url="~/garden.aspx" image="~/images/garden.gif" >
</siteMapNode>
Thanks
Ah, the ~ will have to be processed by ASP.NET. You should be able to
bind url to an asp:Image, or else call Page.ResolveUrl on the string.
--
Scott http://www.OdeToCode.com/blogs/scott/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: kfc1976 |
last post by:
Hi All,
First of all, following are the facts
1) I've been trying to solve the following issue for the past 8 hours
(Not Kidding)
2) If I can't find the answer, It will drive me completely crazy
Platform:
XP Pro, .net 2.0 FrameWork, Visual Studio 2005
Problem Regarding:
|
by: RG |
last post by:
Is there a repository of themes and skins that could be downloaded from some
place?
Is there a visual designer for themes and skins allowing you to generate
App_Themes files?
Thanks in advance
|
by: Sol |
last post by:
Hi Guys,
I'm looking for some advice / guidelines on using Themes with an application
I am working on. The application needs to allow people to customize the
appearance utilizing what I would consider to be a Themeing and Skinning
mechanism. What is critical is that this should be as flexible as possible.
What I would like to do is use the built-in Themeing mechanism to allow the
customization, but as we know, the App_Theme folder...
|
by: Griff |
last post by:
We're replacing a CLASSIC ASP application.
In this application, we presented a dialogue box that allowed end users to
specify exactly how they wanted their screen to look. So, they could set
the font size, font colour, border widths/style/colour etc, etc.
This information was then held in a database.
When the ASP page was loaded, it used an INCLUDE function to include a file
"application.css.asp". This was effectively an ASP page...
|
by: Sean |
last post by:
My experience now working with master pages on and off for 6 months is that
they can be very dangerous when working with themes.
One example in particular is the changes I made to my banner menu which now
work just fine with all my themes on my development machine but on my
production server my non-standard themes are showing effects that are no
longer in place even with a complete re-copy of my project.
Problems like this with...
| |
by: New Bee |
last post by:
Hi,
I have been looking at Themes and Skins today and now resonably understand
how they work at a ground level. But I have a couple of questions.
1. ) StyleSheetTheme
I dont understand where this would be used. As I understand it the
precidence is like this.
|
by: mike |
last post by:
Hi. I am having trouble grasping the concept of applying a consistent
theme to an ASP.net website. I didn't used to like ASP because it was
too hard to apply a theme from a common theme folder like I could do
easily in PHP, but now I see that it has some nicer theming features
and master files.
So I want to use web.config to switch which theme I'm using, and I
want to be able to have several themes. My understanding of themes is
that I...
|
by: lander |
last post by:
where can I find some good-looking asp.net themes??????????
It's really time-consuming to write skins in asp.net 2.0......Where
can i find some reusable skins?
Thanks really!!!
|
by: Cramer |
last post by:
According to the MSDN docs, we cannot programatically create our own themes
or skins:
"Page and control developers do not use the ControlSkinDelegate,
ControlSkin, or PageTheme classes directly. These classes are used by the
ASP.NET parser and runtime ... " (from
http://msdn.microsoft.com/en-us/library/system.web.ui.pagetheme.aspx).
My question:
Is there really no way that we can programmatically create our own themes
and have ASP.NET...
|
by: Tim Royal |
last post by:
With CSS being so prevalent, how common is the use of the asp.net Skins and
Themes? I'm examining my methodology for setting up sites for some folks,
and the idea of having using Themes seems compelling. However, I'm seeing
alot of emphasis on using CSS markup.
Are folks still actively using themes?
Thanks for any input.
Tim
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |