473,382 Members | 1,368 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,382 software developers and data experts.

Can the view state input tag ID be changed?

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
Aug 7 '06 #1
3 1185
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" <ge******@spammers.comwrote in message
news:uX**************@TK2MSFTNGP03.phx.gbl...
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

Aug 7 '06 #2
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 [MVP]" <www.lulu.com/owcwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
>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" <ge******@spammers.comwrote in message
news:uX**************@TK2MSFTNGP03.phx.gbl...
>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


Aug 7 '06 #3
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 [MVP]" <www.lulu.com/owcwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
>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" <ge******@spammers.comwrote in message
news:uX**************@TK2MSFTNGP03.phx.gbl...
>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


Aug 8 '06 #4

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

Similar topics

6
by: Robert W. | last post by:
I'm building my first major C# program and am try to use best practices everywhere. So I've implemented the "Document/View Model" whereby: - There's a Windows Form, which we'll call "formView" -...
3
by: Philip Tripp | last post by:
I've read numerous sources stating that view state can be disabled per control, and per page, but can't seem to keep web form controls from remembering their state on a postback. I'm using VS.Net...
2
by: Michael | last post by:
Hi, I need to access view state data in my CreateChildControls method. Is there anyway to achieve that? I'm using ASP.NET 1.1. Thanks.
70
by: Anson.Stuggart | last post by:
I'm designing a debounce filter using Finite State Machine. The FSM behavior is it follows the inital input bit and thinks that's real output until it receives 3 consecutive same bits and it...
4
weaknessforcats
by: weaknessforcats | last post by:
Design Patterns – State Often computer software operates based on a condition called a state. These states traditionally have been implemented using a switch statement. The cases of the switch...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.