Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...What is this code?What is this code?
Previous
 
Next
New Post
1/8/2007 12:19 PM
 

Does anyone know what is this code in the main page of my site?

<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKLTIyODM3NTczMw9kFgZmDxYCHgRUZXh0BT48IURPQ1RZUEUgSFRNTCBQVUJMSUMgIi0vL1czQy8vRFREIEhUTUwgNC4wIFRyYW5zaXRpb25hbC8vRU4iPmQCAg9kFgwCAQ8WAh4HVmlzaWJsZWhkAgIPFgIeB2NvbnRlbnQFCk15IFdlYnNpdGVkAgMPFgIfAgU4RG9

and so it continues for another few thousand characters or so.

Thanks,
Predrag

 
New Post
1/8/2007 6:37 PM
 
It's the viewstate, a way of ASP.NET to store the page's state in the page itself, just google for "ASP.NET Viewstate"
 
New Post
1/9/2007 9:25 AM
 
I looked and looked and looked...it is way over my had. I guess I should have stated my question more clerarly. What exactly does it do or why are there thousands of characters in the source code? Do I need it? Can I turn it off?

Every example I saw has between 10 and 30 characters. In the source code of my main dnn home page there are 900!

Thanks,
Predrag
 
New Post
1/9/2007 9:56 AM
 
This article seems to be the most usefull one: http://msdn2.microsoft.com/en-us/library/ms972976.aspx

Since we are talking about performance increase with this version of DNN is this really as optimized as it could be? I am especially concerned with the fact and I quote from the site above that "While view state enables state to be effortlessly persisted across postbacks, it comes at a cost, and that cost is page bloat. Since the view state data is persisted to a hidden form field, view state can easily add tens of kilobytes of data to a Web page, thereby increasing both the download and upload times for Web pages."

I see that this can be disabled in individual page with <%@Page EnableViewState="False" %>. Can't find anything about it in the documentation unfortunately to see if this is allowed or how to do it across the site and not just on main page.

ANy ideas, suggestions anyone?

Thanks,
Predrag
 
New Post
1/9/2007 10:04 AM
 
It seems like I found a solution to the source code bloat: http://www.snowcovered.com/snowcovered2/Default.aspx?tabid=242&PackageID=3602

Predrag
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...What is this code?What is this code?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out