.NET and CSS
- Started
- Last post
- 9 Responses
- seed
I am taking over a website done in ASP.NET and CSS. It is tableless for the most part but has turned out to be such a pain to edit. It is not actually a CSS layout but is layed out with .NET template code. All the CSS is mixed up in the .NET code. Ex: using ASP:Panels instead of divs, CSS in the ASP tags, etc. The CSS is poorly done anyway. Also I have problems finding where certain data is coming from. Like image sizes that are not set in the database and do not change even though I changed the size references in the C# file. Or data being displayed that is not in the database and is nowhere to be found by searching all the files. I don't know if the .NET code is well done as this is my first project with it. I have a CF experience and I don't see how it is a benefit to write 100+ lines of confusing C# code to display simple images which could be done in one line in something like ColdFusion. I think it may be overkill for a smaller site.
Does anyone who has done similar work have opinions on designing around .NET (especially with a CSS layout)?
- mg330
dude, that's like mixing spaghetti and orange juice.
- seed0
Good quote, I'll have to use that.
- flavorful0
It definitely seems like whoever initially made the site, hosed it up quite well.
That's just awful.
As far as .NET and CSS working together, they work great like CSS and anything... as long as you use them properly.
That seems like it's going to be a pain to standardize.
I wish I could be more of a help then saying, "That sucks."
I'll be more of a Debbie Downer and bring up the fact the sap who made it got paid.
- thirtytwo0
.Net and CSS sometime sucks ass. You will need to make custom controls and make use of the GenericHTML namespace. It will be a huge undertaking to get the site back to a clean state for the code.
The bad part of this will be that not much will change with the sites look, so you will have to justify your time to the PM.
- seed0
I was just reading a message that mentioned, "the HTML produced by many of its built-in controls is far from valid". I am sure there are work arounds.
This is an article about using CSS for templates instead of .NET:
http://aspnetresources.com/artic…Actually the guy that worked on this did it free I guess for .NET practice. I guess why alot of it seemed like overkill for this scale of a site. Supposedly he's been in IT for a long time at MicroSoft so I am sure he's not a total noob.
- seed0
I have had a really hard time making the simplest style changes. The database isn't even relational at the moment. It's a mess. Anyway does anyone have any idea about data being displayed that is not in the db or found by searching the files? And do you agree that .NET is overkill for some projects?
- seed0
Anyone have any more input on my last 2 questions?
- mg330
You can thank my girlfriend for the quote.
Was sitting at her desk one day having a glass of orange juice, and she offered my some spaghetti.Another time I was having a Guiness, and she offered me a bite of strawberry ice cream.
- seed0
Haha, or as Mobb Deep says, "It's like mixing Vodka and Milk"