Rank: Member
Joined: 3/3/2006(UTC) Posts: 1,737
|
I just had an inquiry:
Hey Mitchell, whats up with the super-fat __VIEWSTATE value that you pass? That's an awful lot of encrypted data to pass around.
What does he mean? Are we missing something or doing something wrong? |
Optimists invent airplanes, Pessimists buy parachutes. |
|
|
|
Rank: Member
Joined: 6/6/2005(UTC) Posts: 483
|
No: Your ok Mitch. The view state he is referring to you can see by viewing source on our home pages. And it is huge.
They also had that in BV4 as I recall. I always thought it was the license key or some encrypted version of the same.
Bob Noble
|
|
|
|
Rank: Member
Joined: 11/5/2003(UTC) Posts: 2,136
Was thanked: 1 time(s) in 1 post(s)
|
ViewState is mostly a snapshot of every element that can change on the page such as input fields, etc. If the page author knows that the element will not change (or does not care), then she can add EnableViewState="false". For example:
<asp:TextBox EnableViewState="false" ...>
You can see which elements are contributing the most to the ViewState by adding Trace="True" to the Page directive. For example,
<%@ Page Trace="True" ...>
This will add a table to the bottom of the page with all sorts of statistics about the page, including the number of bytes each element contributes to ViewState. |
|
|
|
|
Rank: Member
Joined: 8/17/2006(UTC) Posts: 681
|
I know this will be way to technical for most of you but I think BV should read it: Truly Understanding Viewstate: http://weblogs.asp.net/i...rstanding-Viewstate.aspxI'm sure it will make BVC better in future. If it's not done right in the begining it takes a long time to fix it later. I've worked hard to change BVC to minimize my viewstate on my sites but it's not an easy job. Some of my pages have the viewstate of 1% of others: http://www.bestgames.com.../Games/Family-Games.aspxIf this will not be fixed OOTB in BVC6 I might not even bother upgrading. Regards, Corneliu. |
|
|
|
|
Rank: Member
Joined: 11/5/2003(UTC) Posts: 2,136
Was thanked: 1 time(s) in 1 post(s)
|
Although no one at BV has said or even hinted what architectural choices they are making for 6, Justin is becoming something of an MVC expert via his blog. MVC has no viewstate. |
|
|
|
|
Rank: Member
Joined: 11/5/2003(UTC) Posts: 1,786
|
ASP.NET MVC has no viewstate. No official comment on what we're using for BV Commerce 6.
|
|
|
|
Rank: Member
Joined: 11/5/2003(UTC) Posts: 2,136
Was thanked: 1 time(s) in 1 post(s)
|
|
|
|
|
|
Rank: Member
Joined: 11/5/2003(UTC) Posts: 1,786
|
I had a great talk with Rob about ecommerce while we were in Vegas last month. He created one of the commerce starter kits that later was turned into DNN. Great demonstration apps but they certainly need a lot more to become commercialized.
|
|
|
|
Rank: Member
Joined: 11/5/2003(UTC) Posts: 2,136
Was thanked: 1 time(s) in 1 post(s)
|
I agree they (the StarterKit and now the MVC app) are just for demonstrating concepts. They are fun to look at. |
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.