Mar 26, 2004 #1 Sheffield Programmer Jun 1, 2001 180 US Greetings, Can someone please clue me in on how to remove the 'underline' for each day in the calendar? I believe I need to use the Style Objects 'DayStyle' and 'OtherMonthDayStyle', but am unsure as to the specific properties. Thanks
Greetings, Can someone please clue me in on how to remove the 'underline' for each day in the calendar? I believe I need to use the Style Objects 'DayStyle' and 'OtherMonthDayStyle', but am unsure as to the specific properties. Thanks
Mar 26, 2004 1 #2 eramgarden Programmer Aug 27, 2003 279 US see if this helps: http://aspnet.4guysfromrolla.com/articles/030202-1.aspx Upvote 0 Downvote
Mar 26, 2004 1 #3 Isadore Technical User Feb 3, 2002 2,167 US Shef: first guess would be something like: DayStyle-Font-Underline = "false" ..the following code works in Visual Studio: <asp:Calendar id="Calendar1" runat="server" FirstDayOfWeek="Monday" ... ...> <DayStyle Font-Underline="false" BorderStyle="None" BackColor="#00C0C0"> </DayStyle> </asp:Calendar> Upvote 0 Downvote
Shef: first guess would be something like: DayStyle-Font-Underline = "false" ..the following code works in Visual Studio: <asp:Calendar id="Calendar1" runat="server" FirstDayOfWeek="Monday" ... ...> <DayStyle Font-Underline="false" BorderStyle="None" BackColor="#00C0C0"> </DayStyle> </asp:Calendar>
Mar 26, 2004 #4 Isadore Technical User Feb 3, 2002 2,167 US er: we answered this one at the same time so perhaps related.... Upvote 0 Downvote
Mar 26, 2004 #5 Isadore Technical User Feb 3, 2002 2,167 US sheff: I've seen two examples of the use of DayStyle, one, as shown above, and secondly, as: <asp:Calendar OnDayRender="Calendar1_DayRender" OnSelectionChanged="Calendar1_SelectionChanged" OnVisibleMonthChanged="MonthChanged" DayStyle-Height="100" DayStyle-Width="75" DayStyle-HorizontalAlign="Left" DayStyle-verticalalign="Top" DayStyle-Font-Name="Arial" DayStyle-Font-Size="12" NextPrevFormat="FullMonth" SelectionMode="Day" ..... ..... </asp:Calendar> ...in this example you would think that: DayStyle-Underline="false" may do the job. Upvote 0 Downvote
sheff: I've seen two examples of the use of DayStyle, one, as shown above, and secondly, as: <asp:Calendar OnDayRender="Calendar1_DayRender" OnSelectionChanged="Calendar1_SelectionChanged" OnVisibleMonthChanged="MonthChanged" DayStyle-Height="100" DayStyle-Width="75" DayStyle-HorizontalAlign="Left" DayStyle-verticalalign="Top" DayStyle-Font-Name="Arial" DayStyle-Font-Size="12" NextPrevFormat="FullMonth" SelectionMode="Day" ..... ..... </asp:Calendar> ...in this example you would think that: DayStyle-Underline="false" may do the job.