473,796 Members | 2,751 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ViewState general question

Hi all.

I use ViewState on most of my pages. Sometimes heavily.
Works great, I love it. But most of the asp.net sites I
visit seem to ignore it. They don't even include form tag
in html and use other ways to navigate/collect
information. Or use form and regular buttons withour
runat attribute to post info back to server. But they need
and they do save the state of their pages and page
elements. Is there any strong reason why they don't like
ViewState other than increased file size?
Nov 18 '05 #1
1 938
Hi Vlad,

Saving state in a hidden form field is not new to ASP.NET. Its a technique
that has been in use since I can remember. Note that for sites not running
ASP.NET the hidden field won't necessarily be named "__VIEWSTAT E".

If used with precaution there is nothing wrong in using viewstate. Moreover,
the next version of ASP.NET (Whidbey) has enhanced support for this.

--
Victor Garcia Aprea
Microsoft MVP | ASP.NET
Looking for insights on ASP.NET? Read my blog:
http://obies.com/vga/blog.aspx

To contact me remove 'NOSPAM'. Please post all questions to the newsgroup
"Vlad" <an*******@disc ussions.microso ft.com> wrote in message
news:01******** *************** *****@phx.gbl.. .
Hi all.

I use ViewState on most of my pages. Sometimes heavily.
Works great, I love it. But most of the asp.net sites I
visit seem to ignore it. They don't even include form tag
in html and use other ways to navigate/collect
information. Or use form and regular buttons withour
runat attribute to post info back to server. But they need
and they do save the state of their pages and page
elements. Is there any strong reason why they don't like
ViewState other than increased file size?

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
2878
by: Kikoz | last post by:
Hi all. It's a general question, just for the sake of curiosity: ..NET introduced ViewState as a way to keep the state across postbacks. I love it, use it all the time, blah blah... But Java has been around for much longer than .NET. I don't have experience with it. Does Java have anything like ViewState? How do those guys keep the state? I mean, of course you can create your own session and store it in db or use cookies, but is there...
2
1648
by: Amir | last post by:
Hi everyone How can I expand the size of an aspx page's viewstate or all pages' viewstate? thanks in advanced
9
1890
by: HK | last post by:
My website emails me when it raises an exception. I'm getting about 10 emails per day that look similar to this, but in each, the IP address and port, and the email-looking stuff, are different. Here is an example below. Any thoughts??? By the way, my firewall doesn't allow activity from the outside world on these ports, to the web server, and I think the remote person is connecting to the webpage via a standard http connection...
9
2676
by: =?Utf-8?B?TUNN?= | last post by:
I'm sure the answer to my question varies depending on the situation, but I am looking for a general "best practice". If I have an asp.net application and I load certain data from a database, should I use ViewState to store and reload the data, or should I load the data from the database on each postback? Assume for the sake of this question that I only care about performance, I don't care about ease of programming.
0
9685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10467
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10244
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10201
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9061
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7558
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3744
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2931
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.