Search Engine Optimization
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   SEO Chat ForumsSearch Engine StrategiesSearch Engine Optimization
Our weekly Search Engine newsletter covers the constantly evolving world of search engine optimization like no one else. To stay abreast of all the latestest news, reviews, and how-to's, subscribe today!

BuySellLinks.com is a Text Link Advertising Brokerage by the founder of LinkAdage that specializes in high end quality text links and a controlled membership base. To quickly build inventory we are paying webmasters who add quality domains that we can accepted into our inventory. We also offer free installation.

Tired of dealing with shady text link buyers and/or sellers? Try BuySellLinks.

This month's featured article takes a peek at Google Adsense and teaches you everything you need to know to properly maintain your account and get the most bang for your buck.



Apply Now and Read About Offer Details

Read Now!

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread SEO Chat Forums Sponsor:
  #1  
Old October 24th, 2003, 05:26 PM
alex_1® alex_1® is offline
Registered User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 5 alex_1® User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question how can i move the viewstate hidden field in asp.net??

hello,

i am optimizing www.ilanguage.com/en for search engines, directories & crawlers.

i was wondering if there is a way to move the viewstate hidden field in asp.net (<input type="hidden" name="__VIEWSTATE" value="dDwtMzU.........) towards the bottom of the page, so that the body text of the page comes before the viewstate field, at least for the home page??

the reason i am doing this is because with the viewstate field before the body text of the website it greatly limits the ability for the website to rank well, since the body text is where alot of SE's look for the keywords, and the viewstate field is so long.

can anyone help me with this?

thanks in advance,

Reply With Quote
  #2  
Old October 24th, 2003, 05:34 PM
pk_synths's Avatar
pk_synths pk_synths is offline
Contributing User
SEO Chat Specialist (4000 - 4499 posts)
 
Join Date: May 2003
Location: Chicago
Posts: 4,109 pk_synths User rank is Corporal (100 - 500 Reputation Level)pk_synths User rank is Corporal (100 - 500 Reputation Level)pk_synths User rank is Corporal (100 - 500 Reputation Level)pk_synths User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 5 Days 17 h 45 m 3 sec
Reputation Power: 15
Send a message via AIM to pk_synths Send a message via Yahoo to pk_synths
setup a table and do a rowspan command to shift the rows around. easier in dreamweaver plus you can read up on it.

http://www.seo-guide.com/tabletrick.html

it's neat and makes sense

BTW Welcome to the board

-PK

Reply With Quote
  #3  
Old October 30th, 2003, 09:15 AM
alex_1® alex_1® is offline
Registered User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 5 alex_1® User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
thanks

will try this out see if it works

Reply With Quote
  #4  
Old October 30th, 2003, 12:45 PM
Webby's Avatar
Webby Webby is offline
SEO Freak
SEO Chat Beginner (1000 - 1499 posts)
 
Join Date: Feb 2003
Location: Hannover, Germany
Posts: 1,410 Webby User rank is Sergeant (500 - 2000 Reputation Level)Webby User rank is Sergeant (500 - 2000 Reputation Level)Webby User rank is Sergeant (500 - 2000 Reputation Level)Webby User rank is Sergeant (500 - 2000 Reputation Level)Webby User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 13 h 4 m 52 sec
Reputation Power: 16
Send a message via MSN to Webby Send a message via Skype to Webby
Better actually is to use absolute positioning through css layers.

Check out...
http://search-engine-positioning-se...seo/layers.html

Alan

Reply With Quote
  #5  
Old April 23rd, 2004, 03:28 PM
bhocket bhocket is offline
Registered User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 1 bhocket User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
the last link on the page is broke. Can someone find a substitute?

I really need a solution to this.

Thanks

Reply With Quote
  #6  
Old April 30th, 2004, 11:40 AM
alex_1® alex_1® is offline
Registered User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 5 alex_1® User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
hey guys

i actually ended up using this & it works great

http://www.flesk.net/fleskviewstate.htm

Reply With Quote
  #7  
Old May 1st, 2004, 01:25 AM
relaxzoolander's Avatar
relaxzoolander relaxzoolander is offline
web designer
SEO Chat Frequenter (2500 - 2999 posts)
 
Join Date: Aug 2003
Location: designing a web site in columbus ohio
Posts: 2,996 relaxzoolander User rank is Sergeant (500 - 2000 Reputation Level)relaxzoolander User rank is Sergeant (500 - 2000 Reputation Level)relaxzoolander User rank is Sergeant (500 - 2000 Reputation Level)relaxzoolander User rank is Sergeant (500 - 2000 Reputation Level)relaxzoolander User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 4 h 45 m 50 sec
Reputation Power: 17
alex— please post in 'seo scripts' next time.

Reply With Quote
  #8  
Old August 5th, 2004, 01:25 AM
sanjaykattimani's Avatar
sanjaykattimani sanjaykattimani is offline
Registered User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Bangalore, India
Posts: 6 sanjaykattimani User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
But....

Flesk writes it(viewstate) on server side instead of sendnig it to client. Any other way to Move the viewstate towards end of form tag?

Me also doubts alex_1... is a part of http://www.flesk.net
[Just a wild guess...as it often happens in SEO industry.. ]

Last edited by sanjaykattimani : August 5th, 2004 at 01:47 AM.

Reply With Quote
  #9  
Old December 28th, 2004, 10:30 AM
Bmetz Bmetz is offline
Registered User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 25 Bmetz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 21 h 15 m 22 sec
Reputation Power: 0
Post Move Viewstate in ASP.NET

This code will move the viewstate to the bottom of the rendered HTML. The best bet would be to throw this into a base page class that all of the pages in your project inherit from. Otherwise, you can just throw this code onto every page that requires moving the viewstate. Also, be sure to disable viewstate (EnableViewState="False") on any controls that don't actually need it. By default, it is turned on for every control on a page.

protected void Render(System.Web.UI.HtmlTextWriter writer) {
System.IO.StringWriter stringWriter = new System.IO.StringWriter();
HtmlTextWriter htmlWriter = new HtmlTextWriter(stringWriter);
base.Render(htmlWriter);
string html = stringWriter.ToString();
int StartPoint = html.Indexof("<input type="hidden" name="__viewstate"");
if (StartPoint >= 0) {
int EndPoint = html.Indexof("/>", StartPoint) + 2;
string viewstateInput = html.Substring(StartPoint, EndPoint - StartPoint);
html = html.Remove(StartPoint, EndPoint - StartPoint);
int FormEndStart = html.Indexof("</form>") - 1;
if (FormEndStart >= 0) {
html = html.Insert(FormEndStart, viewstateInput);
}
}
writer.Write(html);
}

Quote:
Originally Posted by alex_1®
hello,

i am optimizing www.ilanguage.com/en for search engines, directories & crawlers.

i was wondering if there is a way to move the viewstate hidden field in asp.net (<input type="hidden" name="__VIEWSTATE" value="dDwtMzU.........) towards the bottom of the page, so that the body text of the page comes before the viewstate field, at least for the home page??

the reason i am doing this is because with the viewstate field before the body text of the website it greatly limits the ability for the website to rank well, since the body text is where alot of SE's look for the keywords, and the viewstate field is so long.

can anyone help me with this?

thanks in advance,

Reply With Quote
Reply

Viewing: SEO Chat ForumsSearch Engine StrategiesSearch Engine Optimization > how can i move the viewstate hidden field in asp.net??


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.

© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 7 - Follow our Sitemap
 
SEO Chat is sponsored by:
Close this Sponsor Message