Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 11th, 2004, 05:03 PM
Authorized User
Join Date: Feb 2004
Location: Philadelphia, , USA.
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.



  #2 (permalink)  
Old April 11th, 2004, 06:08 PM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 07:35 AM.

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