473,382 Members | 1,648 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,382 software developers and data experts.

user control and skins in .net 2.0

I've got a user control,ucAddress.ascx, which I reference twice on the
same page. On the first instance of the control I need to change the
skin of the table and it's textboxes to use specific skinids defined in
the theme for my site. How and where do I do this?
Here is the page calling the user control, profile.aspx:
<%@ Page debug="true" MasterPageFile="~/MasterPage_MOR.master"
Title="MOR Profile" Language="C#" StyleSheetTheme="MSB"
AutoEventWireup="true" CodeFile="profile.aspx.cs" Inherits="profile" %>

<%@ Register TagPrefix="Address" TagName="HomeAddr"
Src="~/controls/ucAddress.ascx" %>
<%@ Register TagPrefix="Address" TagName="BusnAddr"
Src="~/controls/ucAddress.ascx" %>
<asp:content ID="Content3" ContentPlaceHolderID="Main" runat="server">
<br />
<br />
<Address:HomeAddr ID="HomeAddr" runat="server" />
<br /><br /><br />
<Address:BusnAddr ID="BusnAddr" runat="server" />
<br /><br />
<asp:Button ID="btnUpdate" Text="Update Fictional Profile"
runat="server" />
</asp:content>
************************************************** **********
Here is the user control, ucAddress.ascx:
<%@ Control Language="C#" AutoEventWireup="true"
CodeFile="ucAddress.ascx.cs" Inherits="ucAddress" %>
<asp:Table ID="tblAddr1" runat="server" BorderWidth="0" CellPadding="0"

CellSpacing="0">
<asp:TableRow>
<asp:TableCell>
<asp:Label ID="lblAddrLine1" runat="server" Text="Line1"
Width="60px"></asp:Label>
</asp:TableCell>
<asp:TableCell>
<asp:TextBox ID="txtAddrLine1" runat="server"
Width="390px"></asp:TextBox><br />
</asp:TableCell>
</asp:TableRow>
</asp:Table>
<asp:Table ID="tblAddr2" runat="server" BorderWidth="0" CellPadding="0"

CellSpacing="0">
<asp:TableRow>
<asp:TableCell>
<asp:Label ID="lblAddrLine2" runat="server" Text="Line2"
Width="60px"></asp:Label>
</asp:TableCell>
<asp:TableCell>
<asp:TextBox ID="txtAddrLine2" runat="server"
Width="390px"></asp:TextBox><br />
</asp:TableCell>
</asp:TableRow>
</asp:Table>
************************************************** *
Here is the skin from my MSB theme I'm trying to use for the tables in
the HomeAddr instance of the user control:
<asp:Table runat="server" SkinID="tblTest1" Font-Name="Verdana"
Font-Size="10px" ForeColor="DarkOliveGreen" />
Thanks,
Happy Wednesday,
Robert

Nov 17 '05 #1
0 1074

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

Similar topics

1
by: Somesh Bartakkay | last post by:
I recently seen a small GUI program with Skins allplied. the library used for that is Activeskin. i wanna know weather Any GUi-Skins are available for pythons GUI ? or how to use the activeskins...
0
by: fernandezr | last post by:
I've got a user control which I reference twice on the same page. On the first instance of the control I need to change the skin of the table and it's textboxes to use specific skinids defined in...
4
by: Stefano | last post by:
Hi all, can you link me to a directory that contains ready-to-use .Text/Community Server Skins? I'm looking for a XHTML Skin, using table-less layout. Thank you so much! Bye --
7
by: Samuel | last post by:
Hi, I am building a page that makes use of user control as a templating technique. The following is that I have in mind and it is actually working: Root/ -- login.aspx -- login.aspx.vb --...
2
by: M West | last post by:
hello, currently trying to write a custom control that will display an image in true transparent form, e.g. can actually see the background images placed behind the control rather than the...
0
by: DzemoT. | last post by:
I'm going to use skins in my application for the first time. Which is the best way to implement skins in applications?Any sugestions?Links? Thx
1
by: DzemoT. | last post by:
I'm going to use skins in my application for the first time. Which is the best way to implement skins in applications?Any sugestions?Links? Thx
1
by: jhcorey | last post by:
I made a change to my Styles.css file on my machine, but when I copy this to a server, I don't see the effect of the changes that I made. I'm using skins that associate different kinds of...
1
by: Jerad Rose | last post by:
I must be missing something, because this seems like it should be so obvious (and maybe it is). All I'm trying to do is create various skins for my site, with each skin containing a list of 30...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.