Can the view state input tag ID be changed?

P

Peter Row

Hi,

I'm using VS2005 / .NET 2.0 and would just like to know if there is way to
instruct ASP.NET to use an ID/name other than __VIEWSTATE to store the pages
viewstate in?

The main reason is that some of our clients are complaining that their
accessibility checks are failing (using www.sitemorse.com).

Regards,
Peter
 
B

bruce barker \(sqlwork.com\)

the leading "_" is not allowed for id names under the w3c (or xml) standard.
you can fix this by suppling your own PageStatePersister. it would nice if
MS would fix this.

note: you run into a simular problem with autopostback controls. there is no
easy fix other than to not use them. you could use a isapi filter to
translate them on input and output.

-- bruce (sqlwork.com)


Alvin Bruney said:
I don't believe this is possible as you describe it. How exactly are they
failing?

--
________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
-------------------------------------------------------


Peter Row said:
Hi,

I'm using VS2005 / .NET 2.0 and would just like to know if there is way
to instruct ASP.NET to use an ID/name other than __VIEWSTATE to store the
pages viewstate in?

The main reason is that some of our clients are complaining that their
accessibility checks are failing (using www.sitemorse.com).

Regards,
Peter
 
P

Peter Row

Hi,

Strictly speaking an ID or NAME attribute cannot start with an underscore,
see w3c website for info.
Therefore an ID of __VIEWSTATE is not valid.

The annoying thing is that this SiteMorse website is failing it for
accessibility reasons, which is the most
ridiculous thing I've ever heard as the field is hidden and hence disabled
users (or any users for that matter)
don't ever have to interact with it.

Regards,
Peter
Alvin Bruney said:
I don't believe this is possible as you describe it. How exactly are they
failing?

--
________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
-------------------------------------------------------


Peter Row said:
Hi,

I'm using VS2005 / .NET 2.0 and would just like to know if there is way
to instruct ASP.NET to use an ID/name other than __VIEWSTATE to store the
pages viewstate in?

The main reason is that some of our clients are complaining that their
accessibility checks are failing (using www.sitemorse.com).

Regards,
Peter
 

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,755
Messages
2,569,536
Members
45,015
Latest member
AmbrosePal

Latest Threads

Top