[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.

http://bugzilla.ximian.com/show_bug.cgi?id=58097

--- 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: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Sys.Web
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: charlesduffy@isgenesis.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: WebControls.Calendar doesn't render cell text per MS example
+
+Description of Problem:
+
+The example C# code at
+http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebuiwebcontrolscalendarclassdayrendertopic.asp
+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
+3. 
+
+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.