Maxpagestatefieldlength attribute in Asp.net 2.0

Source: Internet
Author: User
In Asp.net 2.0, you can force multipart transmission of viewstate, using the page. maxpagestatefieldlength attribute.
You can set the maximum number of bytes for each page Status field in viewstate. Format:
:
<Pages maxpagestatefieldlength = "5"/>
Here, the viewstate is set to no more than 5 bytes. If the actual viewstate exceeds this value, multipart transmission is performed, but the size of each segment still does not exceed the value set in maxpagestatefieldlength, such

Input type = "hidden" name = "_ viewstatefieldcount" id = "_ viewstatefieldcount" value = "16"/>
<Input type = "hidden" name = "_ viewstate" id = "_ viewstate" value = "/wepd"/>
<Input type = "hidden" name = "_ viewstate1" id = "_ viewstate1" value = "wuklt"/>
<Input type = "hidden" name = "_ viewstate2" id = "_ viewstate2" value = "i2mji"/>
<Input type = "hidden" name = "_ viewstate3" id = "_ viewstate3" value = "3 ndkw"/>
<Input type = "hidden" name = "_ viewstate4" id = "_ viewstate4" value = "na9kf"/>
<Input type = "hidden" name = "_ viewstate5" id = "_ viewstate5" value = "gicaw"/>
<Input type = "hidden" name = "_ viewstate6" id = "_ viewstate6" value = "9 kfgi"/>
<Input type = "hidden" name = "_ viewstate7" id = "_ viewstate7" value = "ccg88"/>
<Input type = "hidden" name = "_ viewstate8" id = "_ viewstate8" value = "Kwana"/>
<Input type = "hidden" name = "_ viewstate9" id = "_ viewstate9" value = "grk7n"/>
<Input type = "hidden" name = "_ viewstate10" id = "_ viewstate10" value = "fnjbp"/>
<Input type = "hidden" name = "_ viewstate11" id = "_ viewstate11" value = "pzl6t"/>
<Input type = "hidden" name = "_ viewstate12" id = "_ viewstate12" value = "C + GKP"/>
<Input type = "hidden" name = "_ viewstate13" id = "_ viewstate13" value = "/xmyn"/>
<Input type = "hidden" name = "_ viewstate14" id = "_ viewstate14" value = "mrgps"/>
<Input type = "hidden" name = "_ viewstate15" id = "_ viewstate15" value = "="/>

The default value is-1, indicating that multipart transmission is not performed.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.