当我将日历控件添加到我的网页时,我遇到了异常

问题描述:

<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="EN" lang="EN" dir="ltr">
<head profile="http://gmpg.org/xfn/11">
<title>GURUKUL</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="imagetoolbar" content="no" />
<link rel="stylesheet" href="styles/layout.css" type="text/css" />
<!-- Homepage Specific Elements -->
<script type="text/javascript" src="scripts/jquery-1.4.1.min.js"></script>
<script type="text/javascript" src="scripts/jquery-ui-1.7.2.custom.min.js"></script>
<script type="text/javascript" src="scripts/jquery.tabs.setup.js"></script>
<!-- End Homepage Specific Elements -->
    <script language="javascript" type="text/javascript">
// <![CDATA[

        function search_onclick() {
        

        }

]]>// 
    </script>
</head>
<body id="top">
<div class="wrapper row1">
  <div id="header" class="clear">
    <div class="fl_left">
      <h1 style="color: #FF3399">GURUKUL</h1>
      <p style="color: #FFFFFF; font-size: medium; font-weight: bold">The heaven of education</p>
     </div>
    
    <form action="#" method="post" id="sitesearch">
        <fieldset>
          <strong>Search:</strong>
          <input type="text" value="Search Our Website…" />
          <input type="image" src="images/search.gif" id="search" alt="Search" />
        </fieldset>
      </form>
    </div>
  </div>

<div class="wrapper row2">
  <div class="rnd">
    <!-- ###### -->
    <div id="topnav">
   <marquee direction="left"><b>AN ULTIMATE INSTITUTE OF EDUCATION</b></marquee>
    </div>
    <!-- ###### -->
  </div>
</div>
<div class="wrapper">
  <div id="featured_slide" class="clear">
    <!-- ###### -->
    <div class="overlay_left"></div>
    <div id="featured_content">
      <div class="featured_box" id="fc1"><img src="images/demo/viks/DSCI0018.JPG" alt="" />
        </div>

      <ul id="featured_tabs">
      <li><a href="#fc1">HOME</a></li>
      <li><a href="#fc2">STUDENT LOGIN</a></li>
      <li><a href="#fc3">ADMIN LOGIN</a></li>
      <li><a href="#fc4">GALLARY</a></li>
      <li class="last"><a href="#fc5">ABOUT US </a></li>
    </ul>
    
    <div class="overlay_right"></div>
    <!-- ###### -->
    </div>
    </div>
<div class="wrapper row3">
  <div class="rnd">
    <div id="container" class="clear">
      <!-- ####################################################################################################### -->
      <div id="homepage" class="clear">
        <!-- ###### -->
        <div id="left_column">
          <h2>Prospective Students</h2>
          <div class="imgholder">
                style="color: #0000FF; font-size: medium; font-weight: bold">"Creativity, novelty and innovation spell the need of the hour for bringing education to world class levels"</div>
          <h2>SCHOOL B</h2>
          <div class="imgholder"><a href="#">
              <img src="images/demo/download.jpg" alt="" 

                  style="height: 200px; width: 218px;" /></a></div>
          <h2>International Students</h2>
          <div class="imgholder"><a href="#"><img src="images/demo/viks11" alt="" 

                  style="width: 2px" /></a></div>
          <h2>Alumni</h2>
          <div class="imgholder"><a href="#"><img src="images/demo/viks11" alt="" /></a></div>
        </div>
        <!-- ###### -->
        <div id="latestnews">
          <h2>Latest News & Events</h2>
          <ul>
            <li class="clear">
              <div class="imgl"><img src="images/demo/imgl.gif" alt="" /></div>
              <div class="latestnews">
                <p><a href="#">Sentumquisque morbi dui congue.</a></p>
                <p>This is a W3C compliant free website template from <a href="http://www.os-templates.com/" title="Free Website Templates">OS Templates</a>. This template is distributed using a <a href="http://www.os-templates.com/template-terms">Website Template Licence</a></p>
              </div>
            </li>
            <li class="clear">
              <div class="imgl"><img src="images/demo/imgl.gif" alt="" /></div>
              <div class="latestnews">
                <p><a href="#">Sentumquisque morbi dui congue.</a></p>
                <p>You can use and modify the template for both personal and commercial use. You must keep all copyright information and credit links in the template and associated files.</p>
              </div>
            </li>
            <li class="last clear">
              <div class="imgl"><img src="images/demo/imgl.gif" alt="" /></div>
              <div class="latestnews">
                <p><a href="#">Sentumquisque morbi dui congue.</a></p>
                <p> For more CSS templates visit <a href="http://www.os-templates.com/">Free Website Templates</a>. Attincidunt vel nam a maurisus lacinia consectetus magnisl sed ac morbi. Inmaurisus habitur pretium eu et ac vest penatibus id lacus parturpis.</p>
              </div>
            </li>
          </ul>
          <p class="readmore"><a href="#">Click here to view all of the latest news and events »</a></p>
        </div>
        <!-- ###### -->
        <div id="right_column">
          <div class="holder">
            <h2>Virtual Tour</h2>
           <a href="http://www.computerhope.com/issues/ibm-linux.mov">IBM Linux commercial</a>  </div>
          <div class="holder">
            <h2>Quick Information</h2>
            <div class="apply"><asp:Calendar ID="Calendar1" runat ="server" BackColor="#FFFFCC" 

                    BorderColor="#FFCC66" BorderWidth="1px" DayNameFormat="Shortest" 

                    Font-Names="Verdana" Font-Size="8pt" ForeColor="#663399" Height="200px" 

                    ShowGridLines="True" Width="220px">
                <dayheaderstyle backcolor="#FFCC66" font-bold="True" height="1px" />
                <nextprevstyle font-size="9pt" forecolor="#FFFFCC" />
                <othermonthdaystyle forecolor="#CC9966" />
                <SelectedDayStyle BackColor="#CCCCFF" Font-Bold="True" />
                <SelectorStyle BackColor="#FFCC66" />
                <TitleStyle BackColor="#990000" Font-Bold="True" Font-Size="9pt" 

                    ForeColor="#FFFFCC" />
                <todaydaystyle backcolor="#FFCC66" forecolor="White" />
                 </div>
            <div class="apply"><a href="#"><img src="images/demo/100x100.gif" alt="" /> <strong>Order A Prospectus</strong></a></div>
          </div>
        </div>
        <!-- ###### -->
      </div>
      <div id="twitter" class="clear">
        <div class="fl_left"><a href="#">Follow Us On Twitter</a></div>
        <div class="fl_right">Inteligula congue id elis donec sce sagittis intes id laoreet aenean. Massawisi condisse leo sem ac tincidunt nibh quis dui fauctor et donecnibh elis velit <a href="#">@name</a> - 10:15 AM yesterday</div>
      </div>
      <div class="wrapper">
  <div id="copyright" class="clear">
    <p><right>Copyright © 2011 - All Rights Reserved </right></p>
    <p class="fl_right">Template by <a href="http://www.os-templates.com/" title="Free Website Templates">OS Templates</a></p>
  </div>
</div></div></div></div></div>

Yes because it seems you have missed



Yes because it seems you have missed

</asp:calendar>





You have opend the asp tag but you didnt close it. check your code.



You have opend the asp tag but you didnt close it. check your code.

<div class="apply"><asp:calendar id="Calendar1" runat="server" backcolor="#FFFFCC" xmlns:asp="#unknown">
                   BorderColor="#FFCC66" BorderWidth="1px" DayNameFormat="Shortest"
                   Font-Names="Verdana" Font-Size="8pt" ForeColor="#663399" Height="200px"
                   ShowGridLines="True" Width="220px">
               <dayheaderstyle backcolor="#FFCC66" font-bold="True" height="1px" />
               <nextprevstyle font-size="9pt" forecolor="#FFFFCC" />
               <othermonthdaystyle forecolor="#CC9966" />
               <selecteddaystyle backcolor="#CCCCFF" font-bold="True" />
               <selectorstyle backcolor="#FFCC66" />
               <titlestyle backcolor="#990000" font-bold="True" font-size="9pt">
                   ForeColor="#FFFFCC" />
               <todaydaystyle backcolor="#FFCC66" forecolor="White" />
               </titlestyle></asp:calendar>
                </div>