Wrox Programmer Forums
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 April 11th, 2004, 05:03 PM
Authorized User
Join Date: Feb 2004
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default CSS support in ASP .NET applications?

Hi. I was wondering if CSS1/2 is fully supported in ASP .NET. I have a situation where I want to control what is displayed in the browser by using the 'display' attribute. But so far, my trials haven't worked.

I have a Repeater control with html inside, & a line like this:

<div style="display:none;"> ETC. </div>

in a normal html file, the contents of the division would not be displayed. But that's not the case for my .aspx file.

Any ideas why this is? I thought this would be a handy trick to use in a pinch.



Old April 11th, 2004, 06:08 PM
planoie's Avatar
Friend of Wrox
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts

ASP.net outputs HTML. ASP.net is a server-side technology and has no need to comply with a CSS standard. That is up to the browser. ASP.net doesn't provide the ability to add a CSS class to many of its controls, but in the end, it's up to the browser.

If what you are trying doesn't work, then there is a problem with the HTML that is coming out of ASP.net. I have used this technique many times for DHTML and have had no problem (once I worked out the javascript/dhtml bugs). Take a look at the HTML source in the browser and see if there is something interfering with the normal functionality of HTML and the CSS styles.

Work smarter, not harder

Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP.NET Distributed Data Applications mrbig ASP.NET 1.0 and 1.1 Basics 1 January 30th, 2007 02:00 PM
Deploying ASP.NET 2.0 Applications geomar .NET Framework 2.0 0 November 14th, 2006 01:13 PM
ASP.NET Applications and Session Issue ricardoghunter Classic ASP Basics 0 September 13th, 2004 04:40 PM
Starting ASP .NET web applications stripytiger General .NET 6 August 30th, 2004 01:17 PM

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