473,770 Members | 1,862 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

user control and skins in .net 2.0

I've got a user control,ucAddre ss.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="profi le.aspx.cs" Inherits="profi le" %>

<%@ Register TagPrefix="Addr ess" TagName="HomeAd dr"
Src="~/controls/ucAddress.ascx" %>
<%@ Register TagPrefix="Addr ess" TagName="BusnAd dr"
Src="~/controls/ucAddress.ascx" %>
<asp:content ID="Content3" ContentPlaceHol derID="Main" runat="server">
<br />
<br />
<Address:HomeAd dr ID="HomeAddr" runat="server" />
<br /><br /><br />
<Address:BusnAd dr 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="ucAdd ress.ascx.cs" Inherits="ucAdd ress" %>
<asp:Table ID="tblAddr1" runat="server" BorderWidth="0" CellPadding="0"

CellSpacing="0" >
<asp:TableRow >
<asp:TableCel l>
<asp:Label ID="lblAddrLine 1" runat="server" Text="Line1"
Width="60px"></asp:Label>
</asp:TableCell>
<asp:TableCel l>
<asp:TextBox ID="txtAddrLine 1" 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:TableCel l>
<asp:Label ID="lblAddrLine 2" runat="server" Text="Line2"
Width="60px"></asp:Label>
</asp:TableCell>
<asp:TableCel l>
<asp:TextBox ID="txtAddrLine 2" 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="tblTest 1" Font-Name="Verdana"
Font-Size="10px" ForeColor="Dark OliveGreen" />
Thanks,
Happy Wednesday,
Robert

Nov 17 '05 #1
0 1094

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

Similar topics

1
2611
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 for python gui(say ANy )??
0
2505
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 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"...
4
1554
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
3195
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 -- UC/ ----- Classic/
2
1531
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 background graphic held on the form. Have produced a region which will hold the outline of an image that will be displayed as transparent, e.g. irregular. So far, this region can only be applied to forms (will produce Media Player type skins.), is...
0
988
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
1450
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
1045
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 controls with different style classes using cssClass. Is this association kept in a binary? I haven't changed the skin file itself. When I change just the css file on my machine, I see the results immediately. But I can't get them to take on the...
1
1510
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 some odd static images. In my page, I want to set the skin for the page, and then each image to be loaded from that skin's folder. That's all. For example, my page might look something like this:
0
9617
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
9454
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
10257
Oralloy
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...
1
10037
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9904
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
5354
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
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4007
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
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.