Hi John,
The CssClass is just a string that points to the stylesheet class.
Therefore, you can just switch to using a different class at any time. Code
below.
Is that what you meant?
Ken
Microsoft MVP [ASP.NET]
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="pnlev.aspx.vb"
Inherits="p4320work.pnlev"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>pnlev</title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5">
<style>
.expandable { FONT-WEIGHT: bold; CURSOR: hand; COLOR: navy;
BACKGROUND-COLOR: green; TEXT-DECORATION: underline }
.otherclass { FONT-WEIGHT: bold; CURSOR: hand; COLOR: yellow;
BACKGROUND-COLOR: blue; TEXT-DECORATION: underline }
</style>
</HEAD>
<body MS_POSITIONING="FlowLayout">
<form id="Form1" method="post" runat="server">
<asp

anel id="Panel1" runat="server" Width="352px" Height="112px"
CssClass="expandable">Panel</asp

anel>
<P>
</P>
<P>
<asp:Button id="Button1" runat="server" Text="Button"></asp:Button></P>
</form>
</body>
</HTML>
Private Sub Button1_Click _
(ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles Button1.Click
Panel1.CssClass = "otherclass"
End Sub
"John A Grandy" <johnagrandy-at-yahoo-dot-com> wrote in message
news:...
> in a code-behind event for a Page , is it possible to obtain a reference
> to
> a Panel's CSS attribute, and then modify the CSS instance's properties ?
>
>