using css

A

amoss

Hi everybody
Im new to asp.net and these newsgroups so please excuse me if this has
been asked hundreds of times before.

I have been using classic asp for a couple of years and recently decided
to take the plunge into asp.net. Im going through the quick starts
provided with the sdk. as im going through it im looking at the source
code of the original aspx file then looking at the output (IE view
source). while going through the datagrid samples ive noticed that the
tables do not use the <th></th> or the <thead></thead> also all the
style info is added using deprecated bgcolor="whatever" and so on.

As the importance of accessibility is increasing and simple things like
the <thead> and <th> for headings to make navigating sites for the
disabled users easier why are these examples not teaching good
practices. Is there a way of setting these controls to output better
html? Is this where custom controlls come in? if so why should i bother
to move from classic asp as i have scripts set up to do this already?

also i keep seeing (sender As Object, E As DataGridCommandEventArgs)
what does this mean and where are they used?

Cheers
Andy
 
S

Scott G.

Depending on how ambitous you are, you are kind of stuck until VS.2005 (Whidbey). For now there's no support for <thead><th> and friends in the DataGrid class; of course, depending on the application, you could roll your own using a Repeater or something. It's the same story for deprecated attributes; however, in some cases it's impossible to get rid of them in the HTML that ASP.NET generates.

VS.2005 is going to be XHTML compliant.

The Foobar(sender As Object, E As DataGridCommandEventArgs) and friends are event handlers; event handling in a key concept in the ASP.NET framework.

Scott
Hi everybody
Im new to asp.net and these newsgroups so please excuse me if this has
been asked hundreds of times before.

I have been using classic asp for a couple of years and recently decided
to take the plunge into asp.net. Im going through the quick starts
provided with the sdk. as im going through it im looking at the source
code of the original aspx file then looking at the output (IE view
source). while going through the datagrid samples ive noticed that the
tables do not use the <th></th> or the <thead></thead> also all the
style info is added using deprecated bgcolor="whatever" and so on.

As the importance of accessibility is increasing and simple things like
the <thead> and <th> for headings to make navigating sites for the
disabled users easier why are these examples not teaching good
practices. Is there a way of setting these controls to output better
html? Is this where custom controlls come in? if so why should i bother
to move from classic asp as i have scripts set up to do this already?

also i keep seeing (sender As Object, E As DataGridCommandEventArgs)
what does this mean and where are they used?

Cheers
Andy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,066
Latest member
VytoKetoReviews

Latest Threads

Top