[Mono-dev] ask for backport on mono 1.2.5 branch

Robert Jordan robertj at gmx.net
Fri Aug 31 09:51:46 EDT 2007


Hi,

Hubert FONGARNAND wrote:
> In the actual release, a simple ASP.NET with a ListBox Control don't
> work, viewstate deserialization problem...
> 
> 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.

It's r85048:

http://lists.ximian.com/pipermail/mono-patches/2007-August/099919.html

Robert

> 
> 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 immédiatement l'expéditeur. 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 sécurisées, l'intégrité de ce message n'est pas assurée et la société é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