[Mono-devel-list] XSP Calendar issue
Paul Ferrill
paul.ferrill at verizon.net
Thu Aug 26 09:07:31 EDT 2004
I'm trying to get a simple calendar app that run's on Windows XP working
with XSP and having issues.
It appears that XSP doesn't render the day numbers the same as on XP as I
have the top and left attributes set but the number comes out centered at
the top. Here's the calendar snippet:
<asp:calendar id="Calendar1" style="Z-INDEX: 102; LEFT: 32px; POSITION:
absolute; TOP: 56px" runat="server"
ShowGridLines="True" Height="400px" Width="856px">
<DayStyle HorizontalAlign="Right"
VerticalAlign="Top"></DayStyle>
<DayHeaderStyle Height="20px"></DayHeaderStyle>
<SelectedDayStyle ForeColor="Red"
BackColor="#FFFFC0"></SelectedDayStyle>
<TitleStyle Height="20px" BackColor="#8080FF"></TitleStyle>
<OtherMonthDayStyle BackColor="Silver"></OtherMonthDayStyle>
</asp:calendar>
The second issue is that when I add a label with appointments to the day the
day number goes away.
In the Calendar1_DayRender event handler I add events to the day with:
DateTime event_date = DateTime.Parse(s);
if ( (e.Day.Date == event_date) && (!e.Day.IsOtherMonth))
{
Label aLabel = new Label();
aLabel.Text = "<br>" + myDataRow["Time"].ToString()
+ " " + myDataRow["Description"].ToString();
aLabel.Font.Size = FontUnit.XSmall;
e.Cell.Controls.Add(aLabel);
}
Works on XP - doesn't with XSP on SUSE 9.1.
Anyone seen the same thing?
Paul Ferrill
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040826/485350a5/attachment.html
More information about the Mono-devel-list
mailing list