By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,650 Members | 1,815 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,650 IT Pros & Developers. It's quick & easy.

Can ID be used server-side in ASP?

P: n/a
dw
Hello. I'm developing an ASP app and trying to make it XHTML strict. This
requires the removal of all "name" attributes from form elements. Can form
elements be read server-side in ASP with only an "id" attribute? Thanks.
Jul 22 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
dw wrote:
Hello. I'm developing an ASP app and trying to make it XHTML strict.
This requires the removal of all "name" attributes from form
elements. Can form elements be read server-side in ASP with only an
"id" attribute? Thanks.


No.
From the XHTML spec, the name attribute is only being deprecated for these
elements:
" ... a, applet, form, frame, iframe, img, and map ..."

None of these elements have values which would normally need to be read in
server-side form processing.

Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jul 22 '05 #2

P: n/a
dw
Thanks, Bob. I thought all "name" attributes were being done away with in
XHTML. Thanks for the clarification :)

"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcom> wrote in message
news:ed**************@TK2MSFTNGP09.phx.gbl...
dw wrote:
Hello. I'm developing an ASP app and trying to make it XHTML strict.
This requires the removal of all "name" attributes from form
elements. Can form elements be read server-side in ASP with only an
"id" attribute? Thanks.


No.
From the XHTML spec, the name attribute is only being deprecated for these
elements:
" ... a, applet, form, frame, iframe, img, and map ..."

None of these elements have values which would normally need to be read in
server-side form processing.

Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.

Jul 22 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.