[Mono-dev] ask for backport on mono 1.2.5 branch
Miguel de Icaza
miguel at novell.com
Fri Aug 31 11:00:22 EDT 2007
Hello,
> In the actual release, a simple ASP.NET with a ListBox Control don't
> work, viewstate deserialization problem...
sigh. We made tons of preview releases to get people a chance to
check stuff against 1.2.5.
We have been doing them for more than a month now. Our largest release
cycle.
Miguel.
> This problem as been fixed in the trunk by :
>
> 2007-08-30 Igor Zelmanovich <igorz at mainsoft.com>
>
> * ListControl.cs: fixed selected items state management.
>
> Could this be backported to the mono 1.2.5 branch?
>
>
> Here's a test case for this problem :
>
> Default.aspx:
> <%@ Page Language="C#" Inherits="TestViewState.Default" %>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> <html>
> <head>
> <title>Default</title>
> </head>
> <body>
> <form id="form1" runat="server">
> <asp:Button id="button1" runat="server" />
> <asp:ListBox id="drpSociete" runat="server" CssClass="TextBox200"
> Width="200px" Visible="True"
> Rows="1"></asp:ListBox>
> </form>
> </body>
> </html>
>
>
> Default.aspx.cs :
> // Default.aspx.cs created with MonoDevelop
> // User: hubert at 15:02 31/08/2007
> //
> // To change standard headers go to
> Edit->Preferences->Coding->Standard Headers
> //
>
> using System;
> using System.Web;
> using System.Web.UI;
> using System.Web.UI.WebControls;
> using System.Data;
>
> namespace TestViewState
> {
>
>
> public class Default : Page
> {
> protected ListBox drpSociete;
>
>
> protected override void OnLoad(EventArgs e)
> {
> if (!IsPostBack){
> drpSociete.Items.Add("bouh");
> drpSociete.Items.Add("bah");
> }
> }
>
>
> }
> }
>
>
> Click two times on the button and you'll obtain :
> Server Error in '/' Application
>
> ______________________________________________________________________
> Index is less than 0 or more than or equal to the list count.
> Parameter name: index 0
> Description: Error processing request.
>
> Error Message: HTTP 500. System.ArgumentOutOfRangeException: Index is
> less than 0 or more than or equal to the list count. Parameter name:
> index 0
>
> Stack Trace:
>
> System.ArgumentOutOfRangeException: Index is less than 0 or more than or equal to the list count.
> Parameter name: index
> 0
> at System.Collections.ArrayList.get_Item (Int32 index) [0x00000]
> at System.Web.UI.WebControls.ListItemCollection.get_Item (Int32 index) [0x00000]
> at System.Web.UI.WebControls.ListControl.LoadViewState (System.Object savedState) [0x00000]
> at System.Web.UI.Control.LoadViewStateRecursive (System.Object savedState) [0x00000]
> at System.Web.UI.Control.LoadViewStateRecursive (System.Object savedState) [0x00000]
> at System.Web.UI.Control.LoadViewStateRecursive (System.Object savedState) [0x00000]
> at System.Web.UI.Page.LoadPageViewState () [0x00000]
> at System.Web.UI.Page.InternalProcessRequest () [0x00000]
> at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) [0x00000]
>
>
> Thanks in advance!
>
> _______________________________________________
> Ce message et les ventuels documents joints peuvent contenir des
> informations confidentielles.
> Au cas o il ne vous serait pas destin, nous vous remercions de bien
> vouloir le supprimer et en aviser immdiatement l'expditeur. Toute
> utilisation de ce message non conforme sa destination, toute diffusion
> ou publication, totale ou partielle et quel qu'en soit le moyen est
> formellement interdite.
> Les communications sur internet n'tant pas scurises, l'intgrit de ce
> message n'est pas assure et la socit mettrice ne peut tre tenue pour
> responsable de son contenu.
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
More information about the Mono-devel-list
mailing list