Ask a Question related to ASP.NET, Design and Development.

  1. #1

    Default View state help

    Do you modify the page at all? Sometimes modifying the
    page causes the error you described. Alternatively, you
    do not have to use ViewState in your page.

    Tu-Thach
    >-----Original Message-----
    >hello All,
    >
    >we have a data entry web application written in asp.net,
    >there are about 30 users uses the application
    >simultaneously. We uses the SQL database to insert
    >records, avg insert is about 800 record per day. We are
    >having a wired problem we get this error message once in
    a
    >while..."The View State is invalid for this page and
    might
    >be corrupted"...It doesn't happen all the time. Does
    >anybody know how to resolve this problem...and what are
    >advantage of using View State...Any help is appreciated...
    >
    >
    >Thanks
    >Manan
    >
    >
    >.
    >
    Tu-Thach Guest

  2. Similar Questions and Discussions

    1. view state question
      In many custom controls examples I see the following code: public string Text { get { return (string)ViewState; } set {
    2. Maintaining view state in datagrid
      hi all, I have a datagrid in my asp.net page. In that datagrid, i have paging enabled. And one template column having checkbox control in...
    3. Radiobutton view state is gone...
      Hi ... I an building a web form with a usercotrole on the usercontrole i have several Radiobuttons not in list but in in Group. so they are...
    4. View State Help !!!
      hi I have a datagrid bound to a datasource. I am generating the columns in the datagrid dynamically. I override the loadviewstate method and...
    5. Invalid View State Problem
      I am trying to migrate an ASP.NET web application from one server to another. The web app works fine on the original web server, but gives me the...
  3. #2

    Default View state help

    yes. I did modify the page.
    >-----Original Message-----
    >Do you modify the page at all? Sometimes modifying the
    >page causes the error you described. Alternatively, you
    >do not have to use ViewState in your page.
    >
    >Tu-Thach
    >
    >>-----Original Message-----
    >>hello All,
    >>
    >>we have a data entry web application written in asp.net,
    >>there are about 30 users uses the application
    >>simultaneously. We uses the SQL database to insert
    >>records, avg insert is about 800 record per day. We are
    >>having a wired problem we get this error message once in
    >a
    >>while..."The View State is invalid for this page and
    >might
    >>be corrupted"...It doesn't happen all the time. Does
    >>anybody know how to resolve this problem...and what are
    >>advantage of using View State...Any help is
    appreciated...
    >>
    >>
    >>Thanks
    >>Manan
    >>
    >>
    >>.
    >>
    >.
    >
    manan Guest

  4. #3

    Default RE: View state help

    Manan,

    Where are you seeing this? Is it in the browser or in the Event Viewer?
    It is common to receive invalid Viewstate in cases where someone has
    cancelled the loading of a page or clicked off of a page prior to its
    complete loading. Can also be caused by the user closing the browser while
    page is loading.

    Jim Cheshire
    Developer Support
    ASP.NET
    [email]jamesche@online.microsoft.com[/email]

    This post is provided as-is with no warranties and confers no rights.

    --------------------
    >Content-Class: urn:content-classes:message
    >From: "manan" <anand125@hotmail.com>
    >Sender: "manan" <anand125@hotmail.com>
    >Subject: View state help
    >Date: Wed, 30 Jul 2003 13:39:42 -0700
    >Lines: 17
    >Message-ID: <045101c356da$b4859b20$a401280a@phx.gbl>
    >MIME-Version: 1.0
    >Content-Type: text/plain;
    > charset="iso-8859-1"
    >Content-Transfer-Encoding: 7bit
    >X-Newsreader: Microsoft CDO for Windows 2000
    >Thread-Index: AcNW2rSFFQ16cEbcT2Sf0JMdkhfVZw==
    >X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
    >Newsgroups: microsoft.public.dotnet.framework.aspnet
    >Path: cpmsftngxa06.phx.gbl
    >Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:163553
    >NNTP-Posting-Host: TK2MSFTNGXA12 10.40.1.164
    >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
    >
    >hello All,
    >
    >we have a data entry web application written in asp.net,
    >there are about 30 users uses the application
    >simultaneously. We uses the SQL database to insert
    >records, avg insert is about 800 record per day. We are
    >having a wired problem we get this error message once in a
    >while..."The View State is invalid for this page and might
    >be corrupted"...It doesn't happen all the time. Does
    >anybody know how to resolve this problem...and what are
    >advantage of using View State...Any help is appreciated...
    >
    >
    >Thanks
    >Manan
    >
    >
    >
    Jim Cheshire [MSFT] Guest

  5. #4

    Default View State Help

    I am trying to use States in my Flex 3 application. The application is run
    outside of the browser. The one thing I am hoping to improve upon is manual
    labor of removing and adding components when the states change.

    So for example if I have a login panel. Once the user logs in i want to go to
    a new view with some other components. Right now in my mx:State I have defined:

    <mx:RemoveChild .../>
    <mx:RemoveChild ../>
    <mx:AddChild ...>
    <mxataGrid...>
    </mxataGrid>
    </mx:AddChild>

    anyways...is there a better or nicer way of handling such things? I'm just
    curious because it seems like a bunch of work referencing these components all
    over the place. Just curious on how it might be done better.

    Thanks in advance.

    anoweb Guest

  6. #5

    Default Re: View State Help

    One can put the bunch of controls inside a custom container mxml component
    extending canvas and just addChild that mxml component.

    Of-course it is the same thing but helps to hide the complexity at the higher
    level.

    Sreenivas R Guest

  7. #6

    Default Re: View State Help

    Coinsider ViewStack for more complex views.

    Tracy
    ntsiii Guest

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139