Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP.NET (Non-Forum Related)
 Viewstate problems
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

D3mon
Senior Member

United Kingdom
1685 Posts

Posted - 11 November 2003 :  07:29:19  Show Profile  Visit D3mon's Homepage
I'm having trouble with ASP.NET Viestate dumping a small form before the HTML tag which is screwing with my SEO.
How can I move it or disable it?


Snitz 'Speedball' : Site Integration Mod : Friendly Registration Mod
"In war, the victorious strategist only seeks battle after the victory has been won"

Nathan
Help Moderator

USA
7664 Posts

Posted - 11 November 2003 :  15:38:21  Show Profile  Visit Nathan's Homepage
Turn off viewstate or live with it.

Microsoft has refused to move it, dispite developer backlash. (It prevents any ASP.NET from being complient HTML/XHTML)

Nathan Bales
CoreBoard | Active Users Download
Go to Top of Page

D3mon
Senior Member

United Kingdom
1685 Posts

Posted - 11 November 2003 :  15:42:31  Show Profile  Visit D3mon's Homepage
How to turn off viewstate? I never really got to grips with ASP.NET...


Snitz 'Speedball' : Site Integration Mod : Friendly Registration Mod
"In war, the victorious strategist only seeks battle after the victory has been won"
Go to Top of Page

DavidRhodes
Senior Member

United Kingdom
1222 Posts

Posted - 11 November 2003 :  16:52:13  Show Profile
each server control has an attribute EnableViewState, eg EnableViewState="false"

The UK MkIVs Forum
Go to Top of Page

snaayk
Senior Member

USA
1061 Posts

Posted - 11 November 2003 :  17:18:06  Show Profile  Visit snaayk's Homepage  Send snaayk an AOL message  Send snaayk an ICQ Message  Send snaayk a Yahoo! Message
Or for the page:
<%@ Page EnableViewState=”false” %>
Or for the app (web.config):
<Pages EnableVieState="false"/>

I think post back pages need it - not sure though
Go to Top of Page

D3mon
Senior Member

United Kingdom
1685 Posts

Posted - 11 November 2003 :  18:27:10  Show Profile  Visit D3mon's Homepage
Tried all and still get that pesky code...


Snitz 'Speedball' : Site Integration Mod : Friendly Registration Mod
"In war, the victorious strategist only seeks battle after the victory has been won"
Go to Top of Page

Nathan
Help Moderator

USA
7664 Posts

Posted - 11 November 2003 :  20:14:35  Show Profile  Visit Nathan's Homepage
Just add Page.EnableViewState = false to your code for the page. Then it should go away.

Nathan Bales
CoreBoard | Active Users Download
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.17 seconds. Powered By: Snitz Forums 2000 Version 3.4.07