try<asp:Calendar Runat="server" OnDayRender="DayRender" ... /><script language="C#" runat="server">
void DayRender(Object source, DayRenderEventArgs e) 
{
    e.Cell.Attributes["onclick"] = "javascript:this.all.tags('A')[0].click()";}
</script>

解决方案 »

  1.   

    To:  saucer(思归) 
    问题已经解决了,非常感谢您的回答;
    另再请教一下:
    this.all.tags('A')[0].click()"这一句如何理解呢?Thank you very much!!
      

  2.   

    Cell is displayed as <TD>, 
    "this" == the current "<TD>" when the click occursall.tags('A')
    to find all <A> tags in this cellall.tags('A')[0]
    gets the first <A> link tag (normally there should be only one)all.tags('A')[0].click()
    clicks on this link<td onclick="javascript:this.all.tags('A')[0].click()";">...</TD>
    ==>单击方框,单击<A>
    ==>选中所单击处日期
      

  3.   

    Thank you for you hot helping!