Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old July 10th, 2004, 05:46 AM
Registered User
Join Date: May 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Change style attribute of a WebUserControl

I am writing a project in C# and I am using a WebUserControl. Can anyone tell me how can I change the style property by clicking a button within the WebUserControl, in order to change its background color?

Million thanks

Old July 10th, 2004, 02:19 PM
Friend of Wrox
Join Date: Oct 2003
Posts: 336
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alyeng2000

make any css class in the style sheet and attach it to the page
     background-color:Blue ;
     margin-bottom :2px;
     margin-left :2px;
     margin-right :2px;
     margin-top :2px;

and attach the style to for example a button(id="button1") jscript line any where

Ahmed Ali
Software Developer

Similar Threads
Thread Thread Starter Forum Replies Last Post
dynamic change of style rajesh_css Javascript 3 October 10th, 2008 04:45 AM
!resolved! - a change in coding style grimmy PHP How-To 1 June 27th, 2004 10:21 AM
fp-style attribute pb7 Javascript 1 June 11th, 2003 02:22 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.