懒得打开.net试函数,不过变量是可以的,首先一点就是,要把函数声明为public,否则根本没有权限调用。
解决方案 »
- jquery toggle 问题求教....
- 给解释一下段话是什么意思?
- 请问:jquery easyui datagrid combobox事件更新编辑状态下的datagrid行
- 一个很简单的问题,在线等!
- 点击IE的刷新或者按F5,只刷新iframe的右边,如何解决?这个问题CSDN也存在,高手请解答……
- Extjs4 非Iframe方式加载tabpanel,子窗口如何constrain在tabpanel中
- js 如果判断 radio 未被选中
- 求 javascript 字符替换 函数
- 求教在innerhtml中超链接的正确写法!!
- jquery. datatables 加删除链接问题
- 子窗口向父窗口传递字符串问题!~急!~~
- 求两个正则表达?
{
var strZipNo;
strZipNo = window.document.getElementById("ZipFront").value + window.document.getElementById("ZipBack").value;
if(<%=CheckZipNo(参数怎么传??)%> == 0)//可以写定数,但是变量呢??
{
alert("cool");
}
window.open ("../../Address/Select.aspx?Postcode=" + strZipNo + "&AddressKbn=01", "height=655, width=645, toolbar=no, directories=no, menubar=no");
}
用Import引入一下
<%@Import Namespace="System.Data"%><script language="C#">
function ZipSelect_Click()
{
}
<script>
new Ajax.Request(
'Select.aspx',
{method: 'post', parameters: postStr, onFailure: function(request){ alert('失败'); }, onSuccess: function(request){alert('成功');} });
var iResult;strZipNo = window.document.getElementById("ECTextBoxZipFront").value + window.document.getElementById("ECTextBoxZipBack").value;iResult = <%=DataCheck.ZipNo("[\"strZipNo\"]")%>;