473,856 Members | 1,571 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ItemTemplate/AlternativeItem Template & Skin

Dear reader :-)

ASP.NET 2.0

I have a GridView on my webpage. The ItemTemplate and
AlternativeItem Template should have different background color.

I've tryed this technique which don't help at all, it only displays
backgorund color for the label control, it doesn't fill the entire
ItemTemplate
<ItemTemplate >
<div style="backgrou nd-color:#eeEEdd; width:100%; height:100%;">
<asp:Label ID="Fullname" runat="server" Text=""></asp:Label>
</div>
</ItemTemplate>

The GridView have 2 columns: first column is 160px wide and the second fills
up the rest of the column... Width is NOT fixed, the GridView is as wide as
the webpage...

I would like to specify the background color of ItemTemplate &
AlternativeItem Template in skin files because the user is able to select
themes he wants, so then it would be great if the background color also
changes depending on theme. So would be great if someone could explain me
how to specify the background color ItemTemplate & AlternativeItem Template
in skin files...

Any suggestions?

Jeff
Mar 5 '07 #1
1 2259
solved, used AlternativeRowI temStyle and RowItemStyle.. maybe it was
without "Item"

"Jeff" <it************ @hotmail.com.NO SPAMwrote in message
news:e0******** ******@TK2MSFTN GP04.phx.gbl...
Dear reader :-)

ASP.NET 2.0

I have a GridView on my webpage. The ItemTemplate and
AlternativeItem Template should have different background color.

I've tryed this technique which don't help at all, it only displays
backgorund color for the label control, it doesn't fill the entire
ItemTemplate
<ItemTemplate >
<div style="backgrou nd-color:#eeEEdd; width:100%; height:100%;">
<asp:Label ID="Fullname" runat="server" Text=""></asp:Label>
</div>
</ItemTemplate>

The GridView have 2 columns: first column is 160px wide and the second
fills up the rest of the column... Width is NOT fixed, the GridView is as
wide as the webpage...

I would like to specify the background color of ItemTemplate &
AlternativeItem Template in skin files because the user is able to select
themes he wants, so then it would be great if the background color also
changes depending on theme. So would be great if someone could explain me
how to specify the background color ItemTemplate & AlternativeItem Template
in skin files...

Any suggestions?

Jeff

Mar 6 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
4981
by: Frédéric Mayot | last post by:
Hi I'm trying to define a skin for a custom control. I can't see how to do it... My custom control inherits from a TextBox but it doesn't recognize the skinID defined for asp:TextBox. Any idea ? Thanks, Fred
1
7880
by: VB Programmer | last post by:
With HTML, how do I get the value of a textbox in an ItemTemplate column within a datagrid? Simple shopping cart. For each row: 1 column is a textbox where they can enter the quantity. 1 column is an update button that calls UpdateCart.aspx passing it the CartId and Qty. Here's the HTML.... <asp:TemplateColumn>
0
2220
by: Kelvin.YuShen | last post by:
Hello there, I got a problem when I was uploading the skin I developed. Following is the code from my original skin template (skin.htm): <TABLE cellspacing="3" cellpadding="3" width="100%" border="0"> <TR> <TD class="toppane" colspan="3" valign="top"
5
1968
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...
1
3722
by: Alan Silver | last post by:
Hello, I am just converting a 1.1 web site to use version 2.0 of the framework and have run into a weird problem trying to add a skin file. I set up a theme, and moved the CSS file in there, no problem. I then changed one of the <img> tags in the master page to look like... <asp:Image ID="imgBsd" SkinId="imgBsd" runat="server" />
31
2819
by: Mark Dufour | last post by:
Hi all, I have recently released version 0.0.20 and 0.0.21 of Shed Skin, an optimizing Python-to-C++ compiler. Shed Skin allows for translation of pure (unmodified), implicitly statically typed Python programs into optimized C++, and hence, highly optimized machine language. Besides many bug fixes and optimizations, these releases add the following changes: -support for 'bisect', 'collections.deque' and 'string.maketrans'
0
1724
by: Lovely Angel For You | last post by:
Hi All, I am very new to vb.net. I have just started migrating from VB6 to VB.net. However I have a very basic query. I wanted to know if there is any way I can style my drop downs. I mean not only the colors, or fonts, the styles as well. How does the drop down arrow looks like. Does it have to be rectangle only. I want them rounded. And lots of other things. I am using xp and users of the application will also be using
8
5160
by: scotty | last post by:
Can a .skin file be created without visual studio? Thanks, Scott
3
1971
by: Anilsg | last post by:
Hi Friends, I have a FormView with EditItemTemplate with "Update & cancel " Link & ItemTemplate with "Edit" Link. When i run the application the ItemTemplate will be running But When i click on the Edit Link The DropDownList is the EditItemTemplate is throughing the Null Execption , in this line of Code "DropDownList ddl = (DropDownList) FormView1.FindControl("DropDownList1"); " The ddl is null, But When i set the FormView...
0
9921
marktang
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...
0
9765
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,...
0
10390
tracyyun
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...
0
9536
agi2029
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...
1
7934
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7098
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5763
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5962
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3203
bsmnconsultancy
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.