Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

viewstate

Which controls have ViewState maintained?

August 28, 2022 by Magenaut

I am trying to wrap my head around the control infrastructure to understand which ones ASP.NET maintains view state for.

Categories ASP.NET, Q&A Tags .net, asp.net, c#, viewstate Leave a comment

Why does __VIEWSTATE hidden field gets rendered even when I have the EnableViewState set to false

August 28, 2022 by Magenaut

I saw that __VIEWSTATE field gets rendered even though I have set the EnableViewState=”false” at the page level. This field is not rendered if I remove runat=”server” tag for the form element. Can somebody please explain this?

Categories ASP.NET, Q&A Tags asp.net, asp.net-mvc, viewstate Leave a comment

Accessing controls added programmatically on postback

August 28, 2022 by Magenaut

On postback: How can I access ASP.NET controls in my code-behind file, which are added programmatically?

Categories ASP.NET, Q&A Tags asp.net, c#, viewstate Leave a comment

does gridview save data in viewstate?

August 28, 2022 by Magenaut

hi
i bind a DataTable to a gridview.
i want to use the DataTable in some postback event, and ii want to use viewstate.
does gridview save data in viewstate? if no what is the best way to do this.

Categories ASP.NET, Q&A Tags asp.net, gridview, viewstate Leave a comment

Postback is not working in Safari in Windows 7

August 28, 2022 by Magenaut

Our QA team reported that one of our applications is not working in Safari in Windows 7. After checking the problem we figured out that any postback event is not working. After some tries we found that Page.IsPostback() reports false and thinks it’s a first-time load of the page and postback did not include ViewState.

Categories ASP.NET, Q&A Tags asp.net, postback, safari, viewstate, windows-7 Leave a comment

Determine size of ASP.NET page’s viewstate before serving page

August 28, 2022 by Magenaut

What ASP.NET page lifecycle event can I write code in to determine the size of the viewstate that being sent out? Also, is it possible to determine the size without parsing through the rendered HTML (like a property on the page object) or is parsing the only way?

Categories ASP.NET, Q&A Tags asp.net, viewstate Leave a comment

Why would you ever use asp.net’s ViewState storage object over the Session storage object?

August 27, 2022 by Magenaut

Other than because session storage is session-global to more than one page, why would you ever want to use the viewstate to hold values?

Categories ASP.NET, Q&A Tags asp.net, session-storage, storage, viewstate Leave a comment

How to minimize viewstate size of a page in asp.net?

August 27, 2022 by Magenaut

How to minimize viewstate size of a page in asp.net?
Please help.

Categories ASP.NET, Q&A Tags asp.net, viewstate Leave a comment

How do you serialize javascript objects with methods using JSON?

August 27, 2022 by Magenaut

I am looking for an enhancement to JSON that will also serialize methods. I have an object that acts as a collection of objects, and would like to serialize the methods of the collection object as well. So far I’ve located ClassyJSON. Any thoughts?

Categories ASP.NET, Q&A Tags asp.net, json, viewstate Leave a comment

How can I take more control in ASP.NET?

August 27, 2022 by Magenaut

I’m trying to build a very, very simple “micro-webapp” which I suspect will be of interest to a few Stack Overflow’rs if I ever get it done. I’m hosting it on my C# in Depth site, which is vanilla ASP.NET 3.5 (i.e. not MVC).

Categories ASP.NET, Q&A Tags .net, .net-3.5, asp.net, viewstate Leave a comment
Older posts
Newer posts
← Previous Page1 … Page3 Page4 Page5 … Page7 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress