当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: 简介 随着web服务的不断发展,其客户端引用也不断的发展壮大,适时、动态的依据.asmx文件所在的URL来添加web引用成为趋势。
 

 

    摘要: 在这篇文章中,我们将学习如何在winform中添加按钮。我们可以在设计视图里添加按钮控件,也可以在代码中动态添加按钮控件,下面的代码显示了如何在winform中动态添加一个按钮控件。 using system;using system.componentmodel;using system.winforms;using system.drawing; public class ......
    摘要: 很多人都在论坛里问,如何实现datagrid的打印预览和打印,现在我就把这方面的源代码告诉大家。这段代码也花费了我1个晚上的时间,呵呵!数据库是基于sql server2000自带的northwind。源代码如下: using system;using system.drawing;using system.collections;using system.componentmo......


ChangingTargetWebServiceAtRuntime

简介

当我们加载了一个web服务以后,这个web服务有可能会更换url地址.这样会让我们引用的服务失效,这是我们不愿看到的事情.那么如何才能在更改web services的url地址以后,web应用还能继续生效呢? 【程序编程相关:因特网上Cookies是如何工作的

随着web服务的不断发展,其客户端引用也不断的发展壮大,适时.动态的依据.asmx文件所在的url来添加web引用成为趋势. 【推荐阅读:ASP.NETWebservice&am

首先我们创建一个只有一个mothod的web服务. 【扩展信息:Asp.net中Cookie简明参考

下面的列子将会告诉你.

create a new c# web service project in vs.net. open the default .asmx file and add following code to it.

using system;

using system.web.services;

namespace helloworldws

{

    public class chelloworld :

    system.web.services.webservice

   {

          [webmethod]

           public string gethelloworld()

           {

                return "hello world from chelloworld";

             }

    }

}


...   下一页
 ·如何把ini文件转换为xml    »显示摘要«
    摘要: 对于开发c/s系统的编程人员来说,ini文件是不会陌生的,当xml越来越普及的时候,如何把原来的ini文件转换程xml就成为一件棘手的事情。下面我把这方面的代码奉献给大家,如果有什么bug,欢迎批评指正:qieyj@cape.com.cn。 frmmain.cs using system;using system.drawing;using system.collections......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE