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

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: 12
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
Moderator
SEO Chat Beginner (1000 - 1499 posts)
 
Join Date: Feb 2003
Location: Hannover, Germany
Posts: 1,384 Webby User rank is Lance Corporal (50 - 100 Reputation Level)Webby User rank is Lance Corporal (50 - 100 Reputation Level)Webby User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 21 h 53 m 58 sec
Reputation Power: 7
Send a message via ICQ 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,993 relaxzoolander User rank is Private First Class (20 - 50 Reputation Level)relaxzoolander User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 3 h 49 m 3 sec
Reputation Power: 8
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



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

Request Your Free Technology Downloads!
 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

Request Your Free Technology Downloads!
 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

Request Your Free Technology Downloads!
 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

Request Your Free Technology Downloads!
 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

Request Your Free Technology Downloads!
 

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





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT