Reply
Visual Web Developer - web standards
Old 11-01-2007, 03:53 PM Visual Web Developer - web standards
pjb007's Avatar
Super Talker

Posts: 100
Location: UK
I am finding code that Visual Web Developer adds code to my websites which is not properlly formed. The code that it adds does not appear in any of my files and the only way I can see it is by running the application and viewing the source code.

The line in question just seems to contain random letters and numbers and contains two other attributes with a value of "__VIEWSTATE".

Is there a way to get Visual Studio to show this code?

Another problem the W3 validator shows is unescaped ampsands in the title bar. I have clearly put & in when coding an ampsand yet when I run the application my & has been replaced by with an & which is not valid.

Is there any way to get Visual Studio to correct this.
__________________
pjb007

Last edited by pjb007 : 11-01-2007 at 03:56 PM.
pjb007 is offline
Reply With Quote
View Public Profile Visit pjb007's homepage!
 
When You Register, These Ads Go Away!
     
Old 11-01-2007, 04:37 PM Re: Visual Web Developer - web standards
chrishirst's Avatar
Super Moderator

Posts: 11,509
Location: Blackpool. UK
http://www.tgreer.com/aspnet_html_02.html
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-01-2007, 07:57 PM Re: Visual Web Developer - web standards
ForrestCroce's Avatar
Half Man, Half Amazing

Posts: 3,025
Name: Forrest Croce
Location: Seattle, WA
The viewstate remembers all the info about all the controls on your page. What looks like random gibberish is really that data in base 64 encoding.

If you don't need the functionality it provides, you can turn viewstate off. You can even do that on a page by page basis.
ForrestCroce is offline
Reply With Quote
View Public Profile Visit ForrestCroce's homepage!
 
Reply     « Reply to Visual Web Developer - web standards
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12914 seconds with 13 queries