[ 来源:http://www.it55.com | 作者: | 时间:2007-09-20 | 收藏 | 推荐 ] 【大 中 小】
利用webservice构建动态页面的代码:
<%@ Import Namespace="System.Data" %>
<link href="http://www.aspcool.com/css/Jump.css" type="text/css" rel="stylesheet"></link>
<script language="javascript">
function document.onkeydown()
{
if(event.keyCode==13)
{
event.keyCode=9;
}
}
function showCode(result)
{
if (result >= 0)
document.all('label').value = '成功:' + result.value;
else
document.all('label').value = '失败:' + result.value;
}
function oninputchanged(field) IT资讯之家 http://www.it55.com
{
var input=event.srcElement;
var td=input.parentElement;
var tr=td.parentElement;
var price=input.value;
var pkid =tr.cells(0).innerHTML.replace(" ","");
input.style.color='green';
input.style.backgroundColor='#eeeeee';
service.useService("http://localhost/WebErp/StockCheck.asmx?WSDL","UpdateColumn");
service.UpdateColumn.callService(showCode,"UpdatePrice",pkid,field,price);
}
function oninputchanged2()
{
oninputchanged('A');
}
function oninputchanged3()
{ 精美韩国模版下载http://www.it55.com
oninputchanged('B');
}
function oninputchanged4()
{
oninputchanged('C');
}
function oninputchanged5()
{
oninputchanged('D');
}
function oninputchanged6()
{
oninputchanged('E');
}
</script>
<!--form id= refreshForm method=get runat=server>
<ASP:BUTTON id=btnRefresh tabIndex=3 RUNAT="server" TEXT="刷新" WIDTH="79px"></ASP:BUTTON>
</form-->
<form id="Form2" accept-charset="UNKNOWN" method="post" encType="application/x-www-form-urlencoded">
<table cellSpacing="0" cellPadding="0" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; WIDTH: 646px; BORDER-BOTTOM: medium none">
免费资源http://www.it55.com
vd;k;l http://www.it55.com rdfg
(编辑:IT资讯之家 www.it55.com)