On Fri, 2006-05-26 at 13:51 +1000, Bryan Buchanan wrote:
> Hi,
> 
> I'm trying to run the code from MS's web site on the topic "Passing
> Server Control Values Between Pages".
> 
> When I click on the "Go to second page" button, the runtime barfs with
> an error "System.InvalidCastException: Cannot cast from source type to
> destination type".
> 
> I'm assuming it's the line of code:
> 
> fp = (FirstPageClass) Context.Handler;
> 
> Can someone tell me if these examples should work ? Below is the code
> and info on the version of Mono I'm using.

Your example was supposed to work, but there was a bug in our code. It's
fixed now in svn HEAD. I've uploaded a System.Web.dll with the fix to
http://primates.ximian.com/~gonzalo/tmp/sysweb.tar.gz , just in case you
don't want to build from svn source.

Thanks.

-Gonzalo


_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to