473,320 Members | 1,920 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

what is the postback information in Viewstate for?

sam
When you decode Viewstate, there last root triple is a bunch of control
ids that 'participate in postback'. This is all the information i've
been able to gather on the web. Does anyone know exactly what these
are for? And more importantly, how to get rid of them? Thanks.

-Sam

Nov 19 '05 #1
2 1335
that information helps asp.net reconstruct the tree control hierarchy. every
control that participates in viewstate is part of that hierarchy. to get rid
of it, disable viewstate for the page

--
Regards,
Alvin Bruney - ASP.NET MVP

[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
Now available @ www.lulu.com/owc, Amazon.com etc
"sam" <sa*************@gmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
When you decode Viewstate, there last root triple is a bunch of control
ids that 'participate in postback'. This is all the information i've
been able to gather on the web. Does anyone know exactly what these
are for? And more importantly, how to get rid of them? Thanks.

-Sam

Nov 19 '05 #2
sam
Hi there!

Thanks for replying. If i set EnableViewState=False in Default.aspx, I
still get this last root triple (and the first one, which is the
hashcode of the Viewstate). So disabling viewstate won't work.

I am trying to get rid of them becuase they occupy quite a bit of
viewstate, especially in DataGrids with postback links. I think this
*is* the main reason why DataGrids are so hard on Viewstate, although
this is not widely believed.

My leading theory is that these control ids are saved as a kind of
'security check' on the __EVENT_TARGET. The server reconstructs the
control tree on postback (note Viewstate isn't needed for this) and
then looks for the __EVENT_TARGET in the list of viewstated control
ids. If its not there then perhaps someone is trying to hack the
server by forcing a postback event on a control that shouldn't be
postbacked on.

This is my theory anyway. Thank you very much for replying. If you
have any more info please post

Nov 19 '05 #3

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

Similar topics

2
by: Earl Teigrob | last post by:
I have run into a situation where I need to run the !IsPostBack code under one circumstance, even if it is a postback. Something that may complicate matters more is that this is a double postback...
2
by: Jay Walker | last post by:
I created a custom DataGridColumn based on Marcie Robillard's MSDN Article: Creating Custom Columns for the ASP.NET Datagrid...
1
by: Earl Teigrob | last post by:
I did a ton of searching to try and find a simple solution to this issue and finally wrote my own, which I am sharing with everyone. In my searching, I did find a very complete and robust solution at...
10
by: Calvin X | last post by:
Hi all I have the following code in the page load event. The function in this code works get to populate the 4 dropdownlists on my webform. I have enabled postback because when the user selects...
1
by: John Cosmas | last post by:
I've got a page which loads up a different user control into a placeholder control every time a button is clicked on the parent page. I use a statement like...
3
by: Francois | last post by:
Hi, First of all sorry for the long post but I believe it is quite an interesting as well as advanced and complex problem. I have a problem with the checkbox control I have in my repeater. I...
3
by: Gummy | last post by:
Hello, I have an ASPX page on which I place a UserControl 15 times (they only need to be static controls on the page). This UserControl is a set of two listboxes with radiobuttons above the...
1
by: RSH | last post by:
Hi, I am experimenting with the Viewstate and based on a few articles I have read, I put together a test. it is a simple test where I am dynamically creating a DropDownList that contains 25000...
1
by: scolemann | last post by:
Hi All, I've noticed that if I click a button before the viewstate has been transferred to the browser, the viewstate information posted back is none or part of the ViewState. I verified this...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.