首页 | 编程语言 | 网站建设 | 游戏天堂 | 冲浪宝典 | 网络安全 | 操作系统 | 软件时空 | 硬件指南 | 病毒相关 | IT 认证
软讯网络 > 软件时空 > 软件相关 > WebService Server & Client (3)WebClient
【标  题】:WebService Server & Client (3)WebClient
【关键字】:WebService,Server,amp,Client,WebClient
【来  源】:http://blog.chinaunix.net/article.php?articleId=34907&blogId=4489

WebService Server & Client (3)WebClient

private void Page_Load(object sender, System.EventArgs e)
  {
   if (!this.IsPostBack)
   {
    obj = new localhost.Service1();
    Session["obj"] = obj;
   }
  }

  #region Web Form 設計工具產生的程式碼
  override protected void OnInit(EventArgs e)
  {
   //
   // CODEGEN: 此為 ASP.NET Web Form 設計工具所需的呼叫。
   //
   InitializeComponent();
   base.OnInit(e);
  }
  
  /// <summary>
  /// 此為設計工具支援所必須的方法 - 請勿使用程式碼編輯器修改
  /// 這個方法的內容。
  /// </summary>
  private void InitializeComponent()
  {   
   this.Button1.Click += new System.EventHandler(this.Button1_Click);
   this.Load += new System.EventHandler(this.Page_Load);

  }
  #endregion

  localhost.Service1 obj;

  private void Button1_Click(object sender, System.EventArgs e)
  {
   obj = (localhost.Service1)Session["obj"];
   Button1.Text = obj.GetNo().ToString();
  }

Implementation Webservice 上課筆記:【上一篇】
WebService Server & Client (2):【下一篇】
【相关文章】
  • Implementation Webservice 上課筆記
  • 1-wire servert驱动with sample code
  • 1-wire client驱动with sample code
  • server side code --> client side
  • 将声音存入sql server数据库并播放
  • Constructing a WebServers with Pattern
  • Vmware 4 下Sco OpenServer 5.0.5完全安装手册
  • WebLogic Server 管理最佳实践
  • AcpSampleP204.mixal
  • 自由软件还是Windows Server?
  • 【随机文章】
  • AI无缝拼接图案的快速制作
  • 主页特效三菜一汤
  • 比较好的java网站[推荐]
  • Ethereal抓包实时分析可行性研究
  • 黑帽06安全大会一改传统 聚焦Vista和IE7安全
  • 论《金瓶梅》与项目管理中人际关系协调
  • 办公室中名片的制作
  • [转贴]web开发的浏览器(工具)插件
  • 屏蔽布线解决方案
  • 利用防火墙来防止SYN Flood攻击(转)
  • 【相关评论】
    没有相关评论
    【发表评论】
    姓名:
    邮件:
    随机码*
    评论*
          
    |  首 页  |  版权声明  |  联系我们   |  网站地图  |
    CopyRight © 2004-2007 软讯网络 All Rigths Reserved.