C# 自訂list
void aa()
{
List<QNodList> qNodList = new List<QNodList>();
QNodList qn = new QNodList();
qn.key = k;
qn.value = v;
qNodList.Add(qn);
}
//自訂list格式
public class QNodList
{
public string key = "";
public string value = "";
}
標籤: c#
標籤: c#
判斷checkbox是否有點選
$('#chkbox01').is(':checked');
修改checkbox的checked
$('#chkbox01').prop('checked', 'true');
標籤: Jquery
DataTable dt= new DataTable();
標籤: c#
get取值:
標籤: c#
C# code︰
protected
void
ImgButAll_Click(
object
sender, System.Web.UI.ImageClickEventArgs e)
{
//這裡輸入要執行的語法
}
JS code︰
function
ClickAll() {
//綜合
document.getElementById(
"ImgButAll"
).click();
}
html code︰
<asp:ImageButton ID=
"ImgButAll"
runat=
"server"
OnClick=
"ImgButAll_Click"
Style=
"display: none"
></asp:ImageButton>
<a href=
"#"
onclick=
'javascript:ClickAll();'
onfocus=
"this.blur()"
>綜合</a>
//按下html物件誘發隱藏net的物件
標籤: c#, javascript