ViewStates and retrieving form values
Brian Donahue
Posts: 6,590 Bronze 1
Hi Shane,
I think it depends on how the viewstate is stored on the server. If we
need to get it into the ANTS Load script as a variable, then we'll need a
method to transport the viewstate data somehow. If we could get to it using
HTTP, that would be great, because we could use WebClient to get it. That
probably means creating an ASP .net page especially to retrieve the
ViewState data and return it as a web page that you could use the ANTS Load
script to parse the value out of.
That would make your test a bit unrealistic, though, because you'd be
losing the performance gains that you got by not sending the viewstate on
the page in the first place.
Regards,
Brian Donahue
Red Gate Technical Support
"Shane Day" <shane.day@mxl.com> wrote in message
news:joJT8fviEHA.160@server53...
> Hi,
>
> I'm evaluating local storage of viewstate information - that is it is
stored
> at the server (and deleted when the page expires) and a hidden field of
the
> form contains a pointer for the server to retrieve the view state. This
is
> because some clients would like to avoid having to download the viewstate,
> which due to circumstances beyond my control can get quite large.
>
> How do I gain access to this pointer value?
>
> Incidentally I am trialling ANTS Load now and finding it to be quite a
> useful tool.
>
> Thanks,
>
> Shane
>
>
I think it depends on how the viewstate is stored on the server. If we
need to get it into the ANTS Load script as a variable, then we'll need a
method to transport the viewstate data somehow. If we could get to it using
HTTP, that would be great, because we could use WebClient to get it. That
probably means creating an ASP .net page especially to retrieve the
ViewState data and return it as a web page that you could use the ANTS Load
script to parse the value out of.
That would make your test a bit unrealistic, though, because you'd be
losing the performance gains that you got by not sending the viewstate on
the page in the first place.
Regards,
Brian Donahue
Red Gate Technical Support
"Shane Day" <shane.day@mxl.com> wrote in message
news:joJT8fviEHA.160@server53...
> Hi,
>
> I'm evaluating local storage of viewstate information - that is it is
stored
> at the server (and deleted when the page expires) and a hidden field of
the
> form contains a pointer for the server to retrieve the view state. This
is
> because some clients would like to avoid having to download the viewstate,
> which due to circumstances beyond my control can get quite large.
>
> How do I gain access to this pointer value?
>
> Incidentally I am trialling ANTS Load now and finding it to be quite a
> useful tool.
>
> Thanks,
>
> Shane
>
>
This discussion has been closed.