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>
void DayRender(Object source, DayRenderEventArgs e)
{
e.Cell.Attributes["onclick"] = "javascript:this.all.tags('A')[0].click()";}
</script>
解决方案 »
- 求教关于URL地址加密的问题!!!
- 为什么没有Microsoft.Practices.EnterpriseLibrary.Caching?
- 模式窗口怎么样把子窗口的值在关闭子窗口时传回主窗口?
- 装duwamish 第一步就晕了。
- 條碼打印,求好心人一個demo。
- 大家用接口用的多嗎?
- 修改dataGrid行时能不能只修改其中的一列
- 请教:如何在一个类文件中访问Session?
- 在设计水晶报表时,我怎么样不通过字段资源管理器拖动和向导,而加一个与我DataSet中想对应的字段?
- 购物车SESSION问题!!!
- 如何在客房端取得服务器数据库中的数据?
- 王国荣老师的新书《ASP.NET网页制作教程》即将出版,敬请关注!
问题已经解决了,非常感谢您的回答;
另再请教一下:
this.all.tags('A')[0].click()"这一句如何理解呢?Thank you very much!!
"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>
==>选中所单击处日期