protected void Calendar1_SelectionChanged(object sender, EventArgs e)
{
string str = "richeck.aspx?date="+Calendar1.SelectedDate.ToString("d");
str = "document.frames['Main'].location='" + str + "'";
ClientScriptManager cs = Page.ClientScript;
cs.RegisterStartupScript(this.GetType(), "", str, true); }
{
string str = "richeck.aspx?date="+Calendar1.SelectedDate.ToString("d");
str = "document.frames['Main'].location='" + str + "'";
ClientScriptManager cs = Page.ClientScript;
cs.RegisterStartupScript(this.GetType(), "", str, true); }
解决方案 »
- Asp.net中要使用控件,应该要注意那些问题
- IE6下载文件,修改文件名称后,文件类型不正确
- 简单问题。我太菜呵呵。谢谢!
- datagrid中dropdownlist的取值问题
- 过客等正则高手们帮忙写段代码正则的
- 在gridview中添加行
- 有没有高手提供一个比较完整的有关文件上传下载的代码
- TreeView控件的使用问题(在线等...
- 在ASP.NET中,从一个页面转到另一个页面时,有像C#中的ShowDialogue方法那样的,而不用Response.Redirect和Javascript
- 请问myCommand.ActiveConnection.Open()这句代码为什么出错?
- 请教一下大家 GridView中选定一行后,怎样把其中的每列数据绑定到TextBox中,并显示!谢谢
- 新手在散10分!高手来帮忙!判断语句IF问题!
{
e.Cell.Text = "<a href='richeck.aspx?date="+e.Day.Date.ToString("yyyy-MM-dd")+"' target='Main' >" + e.Day.DayNumberText +" </a>";
}
參數"d"表示得到的日期格式是:2007/01/30cpp2017(慕白兄)的方法是在框架裡用的,如果樓主用iframe的話,用我的方法。
我們給樓主的都是C#語法,樓主轉成VB語法即可。
Protected Sub Calendar1_SelectionChanged(ByVal sender As Object, ByVal e As EventArgs)
Dim str As String = "richeck.aspx?date=" + Calendar1.SelectedDate.ToString("d")
str = "document.frames('Main').location='" + str + "'"
Dim cs As ClientScriptManager = Page.ClientScript
cs.RegisterStartupScript(Me.GetType, "", str, True)
End Sub