Code Summary
1. Js
- 新開窗口打印:
function OpenWindow()
{
window.open('participate_print.aspx?CardID=<%=Request.QueryString["CardID"].ToString() %>','','width=900,height=650,left=50,top=25,scrollbars=yes');
}
{
window.open('participate_print.aspx?CardID=<%=Request.QueryString["CardID"].ToString() %>','','width=900,height=650,left=50,top=25,scrollbars=yes');
}
2. C#
- DataRow[]轉DataTable
DataRow[] dr = ds.Tables[2].Select("DrawID=" + dtDraw.Rows[i]["DrawID"].ToString());
DataTable dt = ds.Tables[2].Clone();
foreach (DataRow row in dr)
{
dt.ImportRow(row);
}
DataTable dt = ds.Tables[2].Clone();
foreach (DataRow row in dr)
{
dt.ImportRow(row);
}
3. HTML
- 如何点击单选框radio后面的文字時,选中单选框:
<input id="rdoSame" name="rdo" type="radio" runat="server" onclick="CheckSel();" /><label for="rdoSame">同上</label>