2011-11-02 20 views
0

我在哪個文件是從URL打開我想從文件URL日期下拉列表級聯選擇的日期vb.net代碼 我的代碼是bleow級聯碼網址

ClientScript.RegisterStartupScript(Me.GetType(), "openfile", "window.open('/Reports/Daily Production and Stock Report (Crescent Ujala)/Daily Production and Stock Report (Crescent Ujala) 2011.11.01.xls');", True) 
+0

你是問如何連接字符串? – SLaks

+0

我想用url中的日期替換掉從下拉列表中選擇的日期 –

+0

Dim fname As String fname = DD1.SelectedValue ClientScript.RegisterStartupScript(Me.GetType(),「openfile」,「window.open('/ Reports/Daily Production和股票報告(新月Ujala)/每日生產和股票報告(新月Ujala)2011.11.01.xls');「,真的)我想用url中的日期替換fname –

回答

0
"some string" & someDateTime.ToString("yyyy.MM.dd") & "some other string" 
+0

我認爲你仔細閱讀我的問題... –