Forum Moderators: open

Message Too Old, No Replies

.net code problems?

         

Regent

9:30 pm on Jun 16, 2004 (gmt 0)

10+ Year Member



I am working on a site that is going to switch over to .net. My concern is that a hidden input field will be used that is auto-generated, and the code for this field is extremely long. For an example (not my client's site) look at the source code for [snip]. Search for <input type="hidden" name="__VIEWSTATE" and you will see how terribly long the code is. Will this affect SEO? I have already asked if this hidden field can be moved to the bottom of the page, but they say this is not possible.

[edited by: pageoneresults at 9:56 pm (utc) on June 16, 2004]
[edit reason] Removed URI Reference - Please Refer to TOS [/edit]

TheNige

12:30 am on Jun 22, 2004 (gmt 0)

10+ Year Member



there are ways to move it to the bottom of the page. The field can also be made smaller by turning on viewstate for the controls on the page that don't need it.

Easy_Coder

4:53 pm on Jun 22, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If your not using controls that require server side actions within that form then just remove the runat="server" tag. Doing so will eliminate the viewstate field.

If that's is not an option then you can use the page directive (EnableViewState="false") to greatly reduce the size of the viewstate. Google enableviewstate and try the first result.