473,327 Members | 2,007 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

ItemTemplate/AlternativeItemTemplate & Skin

Dear reader :-)

ASP.NET 2.0

I have a GridView on my webpage. The ItemTemplate and
AlternativeItemTemplate 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="background-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 &
AlternativeItemTemplate 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 & AlternativeItemTemplate
in skin files...

Any suggestions?

Jeff
Mar 5 '07 #1
1 2236
solved, used AlternativeRowItemStyle and RowItemStyle.. maybe it was
without "Item"

"Jeff" <it************@hotmail.com.NOSPAMwrote in message
news:e0**************@TK2MSFTNGP04.phx.gbl...
Dear reader :-)

ASP.NET 2.0

I have a GridView on my webpage. The ItemTemplate and
AlternativeItemTemplate 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="background-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 &
AlternativeItemTemplate 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 & AlternativeItemTemplate
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
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 ?...
1
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...
0
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%"...
5
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...
1
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,...
31
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...
0
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...
8
by: scotty | last post by:
Can a .skin file be created without visual studio? Thanks, Scott
3
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...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.