v2.0 web controls and viewstate

Nov 5, 2008 at 7:57 AM
I've been looking at the RC3 version of v2.0 and found that the sample application doesn't use the <form> tag. When converting my original Starter Kit for the FB toolkit to v2.0 I immediately ran into this error:

Type 'Microsoft.Xml.Schema.Linq.XTypedList`1[[facebook.Schema.user, facebook, Version=2.0.3159.28499, Culture=neutral, PublicKeyToken=null]]' in Assembly 'Microsoft.Xml.Schema.Linq, Version=0.10.1000.0, Culture=neutral, PublicKeyToken=null' is not marked as serializable.

...which is discussed in this thread.


Of course removing the <form> isn't an option as that prevents you from using any/all ASP.NET controls as it yields errors like:

Control 'ctl00_MainContentPlaceHolder_DropDownList1' of type 'DropDownList' must be placed inside a form tag with runat=server

So my question is, is the Clarity team aware of this issue and if so should UseViewState for the toolkit controls be set to false which resolves the first error message mentioned. I haven't assesed the impact of this though I don't really expect that it will be a huge problem.

Nov 5, 2008 at 2:49 PM
Yes, as mentioned on this thead (http://www.codeplex.com/FacebookToolkit/Thread/View.aspx?ThreadId=38967), we're aware of the issue, and it has been fixed. It will be included in the full release, but for now, you can download the fixed version of the controls from source control. Thanks for pointing it out, though.

I see now that there was an issue logged in the issue tracker about this, but I must have missed it - my mistake. Just for future reference, if you're interested in seeing a logged issue get fixed, vote on it. That's the easiest way to raise its visibility. In return, I'll try to be more proactive in the future about looking for what issues have been logged and making sure we're aware of them.
Nov 5, 2008 at 6:51 PM
Thanks for letting me know. I'll be sure to vote next time around.