c# aspx里的函数在aspx.cs里怎么调用问题。(有代码)
<script type="text/javascript">
function passValue()
{
document.getElementById("<% = txtCardno.ClientID %>").value=document.getElementById("ActiveX").ForDefault();
}
</script>
------解决方案--------------------Scriptmanger类的RegisterClientScript之类的,
------解决方案-------------------- 方法很多~~
1: OnClientClick="passValue()"
2: ClientScript.RegisterStartupScript
------解决方案-------------------- ClientScript.RegisterStartupScript(ClientScript.GetType(), "", "<script>passValue();</script>");
------解决方案--------------------http://www.cnblogs.com/Ryan_j/archive/2010/10/04/1841832.html