[Mono-list] webcontrol.width property problem

Chris Turchin chris@turchin.net
Tue, 06 Jul 2004 23:10:14 +0200


hi,

i have been getting the following errors with the width property  on
various webcontrols:

Server error in '/tests' application

________________________________________________________________________
Description: Error processing request. 

Error Message: HTTP 500. 

Stack Trace: 
System.FormatException: Error parsing 350
in <0x0026c> System.Web.UI.WebControls.Unit:.ctor (string,System.Globalization.CultureInfo,System.Web.UI.WebControls.UnitType)
in <0x00015> System.Web.UI.WebControls.Unit:.ctor (string,System.Globalization.CultureInfo)
in <0x00027> System.Web.UI.WebControls.Unit:Parse (string,System.Globalization.CultureInfo)
in <0x000f6> System.Web.UI.WebControls.UnitConverter:ConvertFrom (System.ComponentModel.ITypeDescriptorContext,System.Globalization.CultureInfo,object)
in <0x00027> System.ComponentModel.TypeConverter:ConvertFrom (object)
in <0x00088> ASP.p2_aspx:__BuildControl_Table1 ()
in <0x00088> ASP.p2_aspx:__BuildControl__bctrl_5 ()
in <0x0005b> ASP.p2_aspx:__BuildControlTree (System.Web.UI.Control)
in <0x00045> ASP.p2_aspx:FrameworkInitialize ()
in <0x0009e> System.Web.UI.Page:ProcessRequest (System.Web.HttpContext)
in <0x002f3> ExecuteHandlerState:Execute ()
in <0x00084> StateMachine:ExecuteState (System.Web.HttpApplication/IStateHandler,bool&)


where "350" is  the width, for example:

<asp:Table id="Table1" runat="server"
    CellPadding=10
    GridLines="Both"
    Width=350
>

can anyone else confirm this or is something wrong with my install? to
narrow things down, i just tried testing with this simple sample from
msdn:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebuiwebcontrolswebcontrolclasswidthtopic.asp

and even that seems to croak... if someone can confirm this, i will file
a bug report, if not, maybe i will upgrade to suse 9.1 this weekend
after all...

 ;-)

regards,
--chris