Mile-Long Viewstate

Hello Support,

I have a mile-long viewstate and eventvalidation that is truncated, but only when I click into value portion of the viewstate and eventvalidation. I noticed everything works fine until I click into the value portion and then the screen-scraping does not work anymore. As a result, I created viewstate and eventvalidation variables and set the mile-long variables.

session.setVariable("VIEWSTATE", "/wEPDwUKLTg3MDI2NjkwNA9kFgJmD2QWBgIBD2QWBAIDDxYEHgdjb250ZW50BRswO3VybD0vRXJyb3JzL25vc2NyaXB0LmFzcHgeB1Zpc2libGVnZAIMDxYCHgRUZXh0BcYBPGxpbmsgcmVsPSdzdHlsZXNoZWV0JyB0eXBlPSd0ZXh0L2NzcycgaHJlZj0naHR0cDovL3N0YXRpYy5tb3ZlLmNvbS9saWIvcmRjLzVfMV8wOC9jb21tb24uY3NzJyAvPjxsaW5rIHJlbD0nc3R5bGVzaGVldCcgdHlwZT0ndGV4dC9jc3MnIGhyZWY9J2h0dHA6Ly9zdGF0aWMubW92ZS5jb20vbGliL3JkYy81XzFfMDgvd2hpY2hwYWdlcy5jc3MnIC8%2BZAIDD2QWBgIDD2QWAgIBD2QWBGYPZBYCAgEPZBYCZg8WAh4Hb25rZXl1cAVMamF2YXNjcmlwdDpyZXR1cm4gRGVmYXVsdEJ1dHRvbihldmVudCwnY3RsMDAkY3BoQyRTZWFyY2hPcHRpb25zJGJ0blNlYXJjaCcpOxYUAgEPD2QWBB4Ib25jaGFuZ2UFD2dldENpdHlTdGF0ZSgpOx4Kb25mb2N1c291dAUaamF2YXNjcmlwdDpnZXRDaXR5U3RhdGUoKTtkAgMPEA8WAh4LXyFEYXRhQm91bmRnFgQeCG9uQ2hhbmdlBQ9nZXRDaXR5U3RhdGUoKTsfBQUaamF2YXNjcmlwdDpnZXRDaXR5U3RhdGUoKTsQFTcFU3RhdGUHQWxhYmFtYQZBbGFza2EHQXJpem9uYQhBcmthbnNhcwpDYWxpZm9ybmlhCENvbG9yYWRvC0Nvbm5lY3RpY3V0CERlbGF3YXJlFERpc3RyaWN0IG9mIENvbHVtYml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nE4t0Mbp5W6kCIXJgw%2Fp%2Fw9xB");

However, I notice that "%" changes to %25" when it is replaced in the URL.

I know I can get around this problem by not clicking into the value portion of the viewstate and eventvalidation but I would like to understand what's going on.

Thanks again for your help.

The change to "%25" is just

The change to "%25" is just general URL encoding, and I've not yet met a site that disagreed with encoding those in a Viewstate/eventvalidation ... though it wouldn't surprise me.