当前位置:首页>网络学院>程序开发>ASP.NET教程>文章内容

利用webservice构建动态页面的实例

[ 来源: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


   <tbody>
   <tr>
   <td align="center" colSpan="2"><font size="3"><font face="宋体">***   管    理</font></font>
   </td>
   <td width="30"><font face="宋体"></font>
   </td>
   </tr>
   </tbody>
  </table><asp:panel id="top" width="650" RUNAT="server">
  <table cellSpacing="0" cellPadding="0" width="650">
   <tbody>
   <tr>
   <td align="right"><font face="宋体"></font>
   </td>
   <td><font face="宋体"></font>
   </td>
   <td><font face="宋体"></font>

vd;k;l http://www.it55.com rdfg


   </td>
   </tr>
   </tbody>
  </table>
  <table width="650">
   <tbody>
   <tr>
   <td colSpan="5" style="HEIGHT: 14px"><font face="宋体">        </font>
   </td>
   </tr>
   <tr>
   <td colSpan="5"><font face="宋体"> 
   <div id="label" align="left" ms_positioning="FlowLayout" style="DISPLAY: inline; WIDTH: 472px; HEIGHT: 15px"><font face="宋体"></font>

(编辑:IT资讯之家 www.it55.com

返回顶部
共2页: 上一页 1 [2] 下一页  
上一篇:跟踪ADO.NET连接池状态   下一篇:没有了

网友评论

[以下评论为网友观点,不代表本站。请自觉遵守互联网相关政策法规,所有连带责任均有评论者自负。]
[不超过250字]