Actually when I attempt to go to the second page using:
Server.Transfer ("result.asp x", True)
I get the following error message:
~~~~
The View State is invalid for this page and might be corrupted.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.Web.Http Exception: The View State is invalid
for this page and might be corrupted.
Source Error:
An unhandled exception was generated during the execution of the current
web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.
Stack Trace:
[HttpException (0x80004005): The View State is invalid for this page and
might be corrupted.]
System.Web.UI.P age.LoadPageSta teFromPersisten ceMedium()
System.Web.UI.P age.LoadPageVie wState()
System.Web.UI.P age.ProcessRequ estMain()
~~~~
"Dee" <dee@home> wrote in message
news:uy******** *****@TK2MSFTNG P10.phx.gbl...
Hi
I have added
EnableViewState Mac="false"
to the sending WebForm's @Page Directive and my sample code has the
following line:
Dim coll As System.Collecti ons.Specialized .NameValueColle ction
collForm = Request.Form
Dim n As Int16 = collForm.Count ' <-------- I get zero for this.
Why do I get an empty collection where the sending WebForm has many
server-side controls on it?
Thanks.
Dee