Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calendar control... 2

Status
Not open for further replies.

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:)
 
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>
 
er: we answered this one at the same time so perhaps related....
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top