[Mono-bugs] [Bug 58097][Nor] New - WebControls.Calendar doesn't render cell text per MS example

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 5 May 2004 19:08:07 -0400 (EDT)

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by charlesduffy@isgenesis.com.


--- shadow/58097	2004-05-05 19:08:07.000000000 -0400
+++ shadow/58097.tmp.30430	2004-05-05 19:08:07.000000000 -0400
@@ -0,0 +1,51 @@
+Bug#: 58097
+Product: Mono: Class Libraries
+Version: unspecified
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: Sys.Web
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: charlesduffy@isgenesis.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: WebControls.Calendar doesn't render cell text per MS example
+Description of Problem:
+The example C# code at
+does not, in Mono, result in "Holiday" being rendered inside the cell for
+the 18th day of the given month.
+This appears to be because controls added to the DayRenderEventArgs object
+associated with a calendar date are never rendered with the calendar cell.
+Steps to reproduce the problem:
+1. Copy and paste the C# code from the linked page into a .aspx file
+2. Render the page via xsp
+Actual Results:
+A calendar is rendered without the text "Holiday"
+Expected Results:
+"Holiday" is rendered in the cell for the 18th day of the month.
+How often does this happen? 
+Every time.
+Additional Information:
+Attempted removing the conditional (such that e.Cell.Controls.Add(new
+LiteralControl("<br>Holiday")); was evaluated during every DayRender
+event). The relevant text still never showed up, leading me to believe that
+controls placed here are simply not being rendered with the calendar.