你在其他界面中怎么设计的,在模态窗口中也那么设计

解决方案 »

  1.   

    我现在正在做一个模式窗体,显示一个日历,日期使用超连接显示。 现在遇到一个问题,当我点击某一日期时,想返回日期并关闭模式窗口,但是现在没有反应?
      

  2.   

    private void Calendar1_SelectionChanged(object sender, System.EventArgs e)
    {
    string str= @"<script>
    window.returnValue="
    + Calendar1.SelectedDate.ToShortDateString() + @";
    window.close();
    </jscript>"; if (!Page.IsStartupScriptRegistered("SelectDate")
    Page.RegisterStartupScript("SelectDate", str);
    }