gbzhhu
asked on
ASP:Calendar will not allow me to set NextMonthText to an image
I am doing this
<asp:calendar id="Calendar3" style="Z-INDEX: 103; LEFT: 400px; POSITION: absolute; TOP: 56px"
runat="server" Width="220px" ForeColor="#003399" BorderWidth="1px" BackColor="White" DayNameFormat="FirstLetter "
Height="200px" Font-Size="8pt" Font-Names="Verdana" BorderColor="#3366CC" CellPadding="1"
OnSelectionChanged="DateSe lected">
<TodayDayStyle ForeColor="White" BackColor="#99CCCC"></Toda yDayStyle>
<SelectorStyle ForeColor="#336666" BackColor="#99CCCC"></Sele ctorStyle>
<NextPrevStyle Font-Size="8pt" ForeColor="#CCCCFF"></Next PrevStyle>
<DayHeaderStyle Height="1px" ForeColor="#336666" BackColor="#99CCCC"></DayH eaderStyle >
<SelectedDayStyle Font-Bold="True" ForeColor="#CCFF99" BackColor="#009999"></Sele ctedDaySty le>
<TitleStyle Font-Size="10pt" Font-Bold="True" Height="25px" BorderWidth="1px" ForeColor="#CCCCFF"
BorderStyle="Solid" BorderColor="#3366CC" BackColor="#003399"></Titl eStyle>
<WeekendDayStyle BackColor="#CCCCFF"></Week endDayStyl e>
<OtherMonthDayStyle ForeColor="#999999"></Othe rMonthDayS tyle>
NextMonthText = "<img src='/quickstart/aspplus/i mages/mont hright.gif ' border=0>"
PrevMonthText = "<img src='/quickstart/aspplus/i mages/mont hleft.gif' border=0>"
SelectorStyle-BackColor="# 99ccff"
SelectWeekText = "<img src='/mages/selweek.gif' border=0 onmouseover=this.style.bac kgroundCol or='#ffcc6 6' onmouseout=this.style.back groundColo r='#99ccff '>"
SelectMonthText = "<img src='/images/selmonth.gif' border=0 onmouseover=this.style.bac kgroundCol or='#ffcc6 6' onmouseout=this.style.back groundColo r='#99ccff '>"
</asp:calendar>
The control is not created. There is an error "type System.Web.UI.WebControls. Calendar does not have a property named img" The above code is adapted from the QuickStart http://samples.gotdotnet.com/quickstart/aspplus/samples/webforms/ctrlref/webctrl/calendar/doc_cal.aspx
Anybody knows what I am doing wrong. I am using VS.NET 2003 and .NET 1.1
Thanks
<asp:calendar id="Calendar3" style="Z-INDEX: 103; LEFT: 400px; POSITION: absolute; TOP: 56px"
runat="server" Width="220px" ForeColor="#003399" BorderWidth="1px" BackColor="White" DayNameFormat="FirstLetter
Height="200px" Font-Size="8pt" Font-Names="Verdana" BorderColor="#3366CC" CellPadding="1"
OnSelectionChanged="DateSe
<TodayDayStyle ForeColor="White" BackColor="#99CCCC"></Toda
<SelectorStyle ForeColor="#336666" BackColor="#99CCCC"></Sele
<NextPrevStyle Font-Size="8pt" ForeColor="#CCCCFF"></Next
<DayHeaderStyle Height="1px" ForeColor="#336666" BackColor="#99CCCC"></DayH
<SelectedDayStyle Font-Bold="True" ForeColor="#CCFF99" BackColor="#009999"></Sele
<TitleStyle Font-Size="10pt" Font-Bold="True" Height="25px" BorderWidth="1px" ForeColor="#CCCCFF"
BorderStyle="Solid" BorderColor="#3366CC" BackColor="#003399"></Titl
<WeekendDayStyle BackColor="#CCCCFF"></Week
<OtherMonthDayStyle ForeColor="#999999"></Othe
NextMonthText = "<img src='/quickstart/aspplus/i
PrevMonthText = "<img src='/quickstart/aspplus/i
SelectorStyle-BackColor="#
SelectWeekText = "<img src='/mages/selweek.gif' border=0 onmouseover=this.style.bac
SelectMonthText = "<img src='/images/selmonth.gif'
</asp:calendar>
The control is not created. There is an error "type System.Web.UI.WebControls.
Anybody knows what I am doing wrong. I am using VS.NET 2003 and .NET 1.1
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks again