Bad VIEWSTATE Value

In every aspx page that I make, when I view the source, the __VIEWSTATE value, inside the form statement, is over 1000 characters long. Any ideas what I might be doing wrong?

<input type="hidden" name="__VIEWSTATE" value="dDw5MjMzODA0MjI7dDw7bDxpPDE+Oz47bDx0PDtsPGk8MT47PjtsPHQ8cDxwP.............

View Replies


ADVERTISEMENT

Problem With Viewstate Updating Dynamic Table Contents

1) I build a Html Table dynamically (Header Row, and then 2 rows with data
All 2 rows have 2 cells: cell(0) contains a delete button (ASP Button),
cell(1) contains a HTML Text box

2) On Form Load and get some data from a dataset and then from it's contents
build the page

At this point the page is rendered and 2 rows are displayed. There is an Add
button that a user can click to add another row to the table. This works fine
and the row is added.

Now if the user clicks the delete button in row 2 the form is posted back, I
rebuild the page, and then in the click event for the delete button remove
the row from the table and the dataset. All appears to be fine at this point.

Now if the user clicks the add button again another row is added, but this
time row 2's textbox has the wrong value. It appears to be related to the
view state. I think the view state somehow is not getting cleared when the
row is removed.

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved