473,396 Members | 2,016 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

is html coding (almost) obsolute with .Net?

jumping on the train and with such a big jump that .Net is there is
something I just find hard to believe... since the arrival of Web forms
(<asp:xxx/>) - will I ever need to do manual HTML code except for the actual
graphical design of my web (e.g. <p> <br> <table>) ???
Nov 18 '05 #1
13 1441
Welcome to the party.

HTML coding is definitely NOT obsolete with ASP.NET. I can only speak for
myself, but the only HTML work I do is to create the layout of aspx pages,
custom page templates, and control templates. The DataList Web Server
control is an example of a control for which you (can) define raw HTML
templates. Even with these server-side controls that can inject lots of HTML
into the rendered page for you - you will sometimes have to provide it with
an HTML template in order to get the look you want.

Separately, don't throw away your favorite HTML editor. VS.NET 2003 is
notorious for trashing your clean HTML. That is, if you create a nice clean
HTML page layout in Notepad or DreamWeaver, and then open that page in
Visual Studio, odds are pretty good that your clean HTML will be destroyed
as VS.NET 2003 does a complete rewrite for you. And it's not simply
recreating your original layout with different HTML; you get a completely
new layout as well. The good news here is that the next version of Visual
Studion is supposedly going to solve this problem. Until then, many of us
use Dreamweaver in conjunction with VS.NET 2003 - using DW for all HTML/page
layout work and site management tasks (uploading files, etc), and switch
over to VS.NET for all coding, debugging, and testing.

Good Luck!

-GH
"David" <db****@simnet.is> wrote in message
news:Ot**************@TK2MSFTNGP10.phx.gbl...
jumping on the train and with such a big jump that .Net is there is
something I just find hard to believe... since the arrival of Web forms
(<asp:xxx/>) - will I ever need to do manual HTML code except for the actual graphical design of my web (e.g. <p> <br> <table>) ???

Nov 18 '05 #2
> Separately, don't throw away your favorite HTML editor. VS.NET 2003 is
notorious for trashing your clean HTML.


Make sure you check out Visual Web Developer Express. It won't change your
code unless you tell it to format.

Ken

Nov 18 '05 #3
ik
HTML controls are FASTER than ASP.NET controls.

Also, if you want to build a real production website, you should always
choose an html server control before a web control. Real Production
websites, that actually look decent don't use VS.NET for the front end or
UI.

If you aren't concerned about the graphical user interface, regardless of
what your job is, or what you do, you are not building a real production
website for the public because the public actually needs to get work done
and html is the simpliest and fastest solution out there that actually works
on a consistent basis.

Furthermore, you lock yourself into ASP.NET more and more if you use web
controls.

"David" <db****@simnet.is> wrote in message
news:Ot**************@TK2MSFTNGP10.phx.gbl...
jumping on the train and with such a big jump that .Net is there is
something I just find hard to believe... since the arrival of Web forms
(<asp:xxx/>) - will I ever need to do manual HTML code except for the actual graphical design of my web (e.g. <p> <br> <table>) ???

Nov 18 '05 #4
jumping on the train and with such a big jump that .Net is there is
something I just find hard to believe... since the arrival of Web forms
(<asp:xxx/>) - will I ever need to do manual HTML code except for the actual graphical design of my web (e.g. <p> <br> <table>) ???


If you care about valid, semantic markup, and things like accessibility,
then yes.

One of my biggest frustrations with .net is MS's attempt to rename every
single standard HTML object and map it to some sort of control attribute.

The built in controls in .net are great. You can really whip up an
application fast. However, it tends to be IE centric and bloated HTML. So,
in the end, I usually have to spit out my own HTML anyway inside a
repeaterControl or something like that to get it to work well in all the
browsers we're trying to aim for (as well as accomodating accessibility
issues).

For instance, the lack of a TH tag in datagrids is such a simple
oversight...

MS would LOVE it if you stopped using HTML. Your end users may not. ;o)

-Darrel
Nov 18 '05 #5
Make sure you check out Visual Web Developer Express. It won't change your
code unless you tell it to format.


Can you use that with ASP.NET 1.1 or is that ONLY for Whidbey? The single
most frustrating thing about '03 is that it can't keep it's hands off of MY
markup. I'd love to upgrade, but we're not probably going to be seeing
Whidbey here in our org for a year or two yet...

-Darrel
Nov 18 '05 #6
"darrel" <no*****@hotmail.com> wrote in message
news:e9**************@tk2msftngp13.phx.gbl...
jumping on the train and with such a big jump that .Net is there is
something I just find hard to believe... since the arrival of Web forms
(<asp:xxx/>) - will I ever need to do manual HTML code except for the

actual
graphical design of my web (e.g. <p> <br> <table>) ???


If you care about valid, semantic markup, and things like accessibility,
then yes.

One of my biggest frustrations with .net is MS's attempt to rename every
single standard HTML object and map it to some sort of control attribute.


I'm curious. What do you mean about MS renaming standard HTML objects?
--
John Saunders
johnwsaundersiii at hotmail
Nov 18 '05 #7
I'm curious. What do you mean about MS renaming standard HTML objects?


Well, a lot of the .net control attributes, when rendered in the browser,
are mapped to standard HTML attributes.

An example is the validator controls.

display: static = span with visibility: hidden
display: dynamic = span with display: none

why couldn't the display attribute map directly:

display: "visibility: hidden"
display: "display: none"

That would me so much more intuitive for anyone that knows HTML/CSS.

-Darrel
Nov 18 '05 #8
Actually, layout should be restricted to CSS if possible. Only tabluar data
should be found inside a <table> tag, in my opinion. Not trying to start
anything, but CSS is what you want to do, not <table>s. So, yes, ASP.NET
eliminates quite a bit of html coding, though likely not all.
"David" <db****@simnet.is> wrote in message
news:Ot**************@TK2MSFTNGP10.phx.gbl...
jumping on the train and with such a big jump that .Net is there is
something I just find hard to believe... since the arrival of Web forms
(<asp:xxx/>) - will I ever need to do manual HTML code except for the actual graphical design of my web (e.g. <p> <br> <table>) ???

Nov 18 '05 #9
> Actually, layout should be restricted to CSS if possible.

Right, but layout is only one part of the page. HTML is still needed for
semantic structure, forms, etc. and this is where .net can get in the way a
bit.

-Darrel
Nov 18 '05 #10
"darrel" <no*****@hotmail.com> wrote in message
news:Or**************@TK2MSFTNGP09.phx.gbl...
I'm curious. What do you mean about MS renaming standard HTML objects?


Well, a lot of the .net control attributes, when rendered in the browser,
are mapped to standard HTML attributes.

An example is the validator controls.

display: static = span with visibility: hidden
display: dynamic = span with display: none

why couldn't the display attribute map directly:

display: "visibility: hidden"
display: "display: none"

That would me so much more intuitive for anyone that knows HTML/CSS.


Darrel, that "display" attribute isn't meant to have anything to do with the
display css style. It has to do with whether the text is displayed
statically or dynamically.

Do you have other examples? The only ones I've ever heard about is that the
Web Controls try to use consistent terminology, so there is a Text attribute
which sets the textual content, regardless of whether any "corresponding"
HTML element has one.
--
John Saunders
johnwsaundersiii at hotmail
Nov 18 '05 #11
Darrel, that "display" attribute isn't meant to have anything to do with the display css style. It has to do with whether the text is displayed
statically or dynamically.
And it displays it 'statically' or 'dynamically' by wrapping specific HTML
tags around it.
Do you have other examples?


Hmm...well, simple things like setting the text styles of a control:

font-bold="True"

which, of course, maps to

style="font-weight: bold"

-Darrel
Nov 18 '05 #12
Good question. I'll ask around.

"darrel" <no*****@hotmail.com> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
Make sure you check out Visual Web Developer Express. It won't change
your
code unless you tell it to format.


Can you use that with ASP.NET 1.1 or is that ONLY for Whidbey? The single
most frustrating thing about '03 is that it can't keep it's hands off of
MY
markup. I'd love to upgrade, but we're not probably going to be seeing
Whidbey here in our org for a year or two yet...

-Darrel


Nov 18 '05 #13
"darrel" <no*****@hotmail.com> wrote in message
news:uJ**************@TK2MSFTNGP12.phx.gbl...
Darrel, that "display" attribute isn't meant to have anything to do with

the
display css style. It has to do with whether the text is displayed
statically or dynamically.


And it displays it 'statically' or 'dynamically' by wrapping specific HTML
tags around it.
Do you have other examples?


Hmm...well, simple things like setting the text styles of a control:

font-bold="True"


Darrel, this is also not a question of renaming attributes. This is the
syntax for accessing nested properties. It says to set the Bold property of
the Font property to true. So, <asp:TextBox runat="server" id="x"
font-bold="True" /> is the same as:

protected TextBox x;
....
x = new TextBox();
....
x.id = "x";
x.Font.Bold = true;

--
John Saunders
johnwsaundersiii at hotmail
Nov 18 '05 #14

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: C. Olive | last post by:
Environment: Classic ASP running on IIS v5.1 Scripting Language: VBScript I suppose someone would have to be somewhat familiar with Perl in order to answer this question specifically. If you...
144
by: Natt Serrasalmus | last post by:
After years of operating without any coding standards whatsoever, the company that I recently started working for has decided that it might be a good idea to have some. I'm involved in this...
7
by: murrayatuptowngallery | last post by:
After a few searches & inquiries here, I have a method of generating an html table populated with results of equations that works and wasn't too far up a learning curve for me, thanks to a helpful...
4
by: Arthur Dent | last post by:
Hello all, ive been programming with ASP.NET since it came out, but am just getting my feet with now with v.2. Ive noticed something strange in the way my HTML tables get rendered with 2. I use...
78
by: Robert Baer | last post by:
The homepage i have had up and seemingly working is: http://oil4lessllc.com/ However, the validator has so many complaints, and being so incompetent, i have no clue as to how to fix it all. Would...
12
by: Dave G | last post by:
Apologies if this has been covered before - I couldn't find it. I currently use ASPEmail to create and send HTML emails from an Access database. The text is personalised and includes embedded...
7
by: HMS Surprise | last post by:
Greetings, I have just started a new job and need to develop a routine that accesses the web. I am experienced with assy, c/c++, and tcl/tk, but know almost nothing of HTML. My task is to...
2
by: telsave | last post by:
Hi Hope someone out there can help me. I have just developed my first WEB page to sell an ebook I have written. I have of course included a squeeze page to capture details but what I am looking for...
14
by: Zkidd | last post by:
I hired a designer to do a webpage and the code that they sent me back looks way too long. I am not a developer, but am reading up on web standards, and when I review the source code for web...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.