Stories recently tagged with 'Viewstate'

Saving server control properties to ViewState with custom attributes(helephant.com)

submitted by HelephantHelephant(90) 3 years, 5 months ago

Here's a little tip for using .NET custom attributes to make a server control's ViewState property into a single line of code. Save yourself some boring repetitive coding and make the language do the work instead. read more...

add a comment |category: |Views: 74

tags: another

ASP.NET - Client Side State Management - Hidden Fields(dotnet.dzone.com)

submitted by volume4volume4(910) 3 years, 6 months ago

In the previous posts in this series I introduced the client side state management and one of its techniques - the ViewState. Today I'm going to drill down into the hidden fields technique. As mentioned in the previous post, the ViewState stores its state in a hidden field. read more...

add a comment |category: |Views: 16

tags: another

ASP.NET - ViewState - Client Side State Management(dotnet.dzone.com)

submitted by volume4volume4(910) 3 years, 7 months ago

The ASP.NET ViewState is a client side state management technique which enables web pages to persist their state during postbacks. In the life cycle of a page, the current state of the page is hashed to a string and is saved into a hidden field. When opening a page with the View Source operation you can find the ViewState's hidden field by searching __VIEWSTATE keyword. read more...

add a comment |category: |Views: 14

tags: another

Diet plan for ASP .net pages… LOOSE WEIGHT NOW !! (tipsdotnet.com)

submitted by brauliodbrauliod(275) 3 years, 9 months ago

If we don’t take care about how we feed our ASP .net pages… we will find that they will tend rapidly to gain too much weight, this can provide us a lot of headaches. Let's see how to reduce the size of our pages. read more...

add a comment |category: |Views: 6

tags: another

How to strore ViewState in Session(aspnetcafe.com)

submitted by dsalkodsalko(670) 4 years, 1 month ago

Need to make your pages load faster? Try to store ViewState on Server... for example in session. 100% generic way that works. read more...

add a comment |category: |Views: 5

tags: another

Hidden Controls and ViewState(couldbedone.blogspot.com)

submitted by crpietschmanncrpietschmann(11.3k) 4 years, 2 months ago

I don't know if it is obvious how important ViewState is for hidden controls. I would like to stress where ViewState plays important role for hidden controls (not visible) as it often leads to not obvious problems. If you like to explore how different ASP.NET controls use ViewState to store their data, Nikhil Kothari's Web Development Helper is a very helpful tool. I definitely recommend to download and install it, if you like to know what is in your ViewState. TextBox when placed on a web form usually does not require ViewState to be enabled to provide its core functionality "being input box". You can check that __VIEWSTATE hidden field is the same across post-backs if you change the value in your TextBox on the following form: read more...

add a comment |category: |Views: 4

tags: another

Mac Viewstate and Server Clusters / Web Gardens (tech-review.org)

submitted by salimsalim(780) 4 years, 7 months ago

Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Web.HttpException: Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster read more...

add a comment |category: |Views: 14

tags: another

An HttpModule that moves ViewState to the bottom of the Page(blog.madskristensen.dk)

submitted by crpietschmanncrpietschmann(11.3k) 4 years, 7 months ago

Techniques to move the ViewState to the bottom of the WebForm has been published many times before. What I wanted was adding the functionality to an HttpModule. The technique to move the ViewState is borrowed from Scott Hanselman while the HttpModule implementation is my own. As Scott writes, it is a very low impact technique (0.000995 second) even though it hasn’t been fully tested for a variety of scenarios. read more...

add a comment |category: |Views: 48

tags: another

TRULY Understanding ViewState (weblogs.asp.net)

submitted by mrjmwmrjmw(95) 4 years, 8 months ago

"ViewState is a very misunderstood animal. I would like to help put an end to the madness by attempting to explain exactly how the ViewState mechanism works, from beginning to end, and from many different use cases, such as declared controls vs. dynamic controls." read more...

add a comment |category: |Views: 6

tags: another

ASP.NET ViewState Helper(binaryfortress.com)

submitted by jtackaburyjtackabury(35) 4 years, 9 months ago

A free windows application to help with ASP.Net development. Shows you the decoded ViewState in plain text, as well as the decoded ViewState hierarchy in a treeview. Easy to use, small download and free. read more...

add a comment |category: |Views: 13

tags: another

ViewState Chunking in ASP.NET 2.0 (maxPageStateFieldLength)(weblogs.asp.net)

submitted by PluginbabyPluginbaby(1190) 4 years, 9 months ago

When ViewState in your page become very large it can be a problem as some firewalls and proxies will prevent access to pages containing such huge ViewState sizes. For this purpose ASP.NET 2.0 introduces the ViewState Chunking mechanism. But the first thing I would say is if your ViewState is that big ask yourself why, and the way to optimize (maybe disabling?) it. So ASP.NET 2.0 enables to split the ViewState's single hidden field into several using the MaxPageStateFieldLength property in the web.config <pages> section. This indicates the maximum bytes size allowed for one viewstate hidden field. If the real size exceeds the value then viewstate is splitted in multiple fields. By default, the attribute is set to -1 which means that no maximum size is defined. read more...

add a comment |category: |Views: 36

tags: another

CSS Friendly Control Adapters, CreateUserWizard, and ViewState - Oh My(stevenharman.net)

submitted by usshermussherm(5285) 4 years, 10 months ago

Using CSS Friendly Control Adapters, CreateUserWizard, and ViewState can cause some funky behavior - like not being able to get values off the wizard control in your event handlers. Read more for a work around! read more...

add a comment |category: |Views: 45

tags: another

ViewState Provider - an implementation using Provider Model Pattern(codeproject.com)

submitted by crpietschmanncrpietschmann(11.3k) 4 years, 10 months ago

This article focuses on the Provider Model design pattern and describes how it can be used to solve certain problems. To help readers to better understand or appreciate this design pattern, I've chosen view state management as an example to demonstrate the usefulness and practicality of this design pattern. So, in this article, we will first understand what the inherent problems of view state are, I will then explain why Provider Model design pattern is important and how we can leverage it to solve the aforementioned problems. read more...

2 comments |category: |Views: 95

tags: another

Understanding Viewstate(weblogs.asp.net)

submitted by IanCooperIanCooper(225) 4 years, 10 months ago

Ever wanted to really understand viewstate and how you can reduce its cost and idiosyncracies. Hopefully, this is the last viewstate article yhou will ever need. read more...

3 comments |category: |Views: 21

tags: another

Understanding Viewstate(weblogs.asp.net)

submitted by IanCooperIanCooper(225) 4 years, 10 months ago

Ever wanted to really understand viewstate and how you can reduce its cost and idiosyncracies. Hopefully, this is the last viewstate article yhou will ever need. read more...

3 comments |category: |Views: 21

tags: another

Get view state off __VIEWSTATE!(ajdotnet.wordpress.com)

submitted by ajdotnetajdotnet(2940) 4 years, 10 months ago

ASP.NET saves transient control data across postbacks in a hidden field, which can severely affect response times. This article explores the ways to keep view state on the server. read more...

1 comment |category: |Views: 11

tags: another