﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>IT博客-飘着的叶子，什么时候才落地-随笔分类-私人程序片断</title><link>http://www.cnitblog.com/piaoye12345/category/997.html</link><description /><language>zh-cn</language><lastBuildDate>Thu, 29 Sep 2011 09:22:42 GMT</lastBuildDate><pubDate>Thu, 29 Sep 2011 09:22:42 GMT</pubDate><ttl>60</ttl><item><title>upload file</title><link>http://www.cnitblog.com/piaoye12345/archive/2006/09/04/16355.html</link><dc:creator>萌芽的叶子</dc:creator><author>萌芽的叶子</author><pubDate>Mon, 04 Sep 2006 09:45:00 GMT</pubDate><guid>http://www.cnitblog.com/piaoye12345/archive/2006/09/04/16355.html</guid><wfw:comment>http://www.cnitblog.com/piaoye12345/comments/16355.html</wfw:comment><comments>http://www.cnitblog.com/piaoye12345/archive/2006/09/04/16355.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/piaoye12345/comments/commentRss/16355.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/piaoye12345/services/trackbacks/16355.html</trackback:ping><description><![CDATA[
		<p> Dim filepath As String = String.Empty<br />        Dim filename As String = String.Empty<br />        Dim filetype As String = String.Empty<br />        If File1.PostedFile.FileName &lt;&gt; "" Then<br />            filepath = File1.PostedFile.FileName<br />            filetype = filepath.Substring(filepath.LastIndexOf(".") + 1)<br />            filename = filepath.Substring(filepath.LastIndexOf("\") + 1)<br />            If ("xls" &lt;&gt; filetype) Then<br />                Me.lb_msg.Text = "只能選擇excel文件！！"<br />                Exit Sub<br />            Else<br />                Try<br />                    Dim path As String = Server.MapPath("../xml")<br />                    File1.PostedFile.SaveAs(path + "\" + filename)<br />                    Me.lb_msg.Text = "上傳成功！！"<br />                Catch ex As Exception<br />                    Me.lb_msg.Text = "上傳失敗！！" + ex.Message<br />                End Try<br />            End If</p>
		<p>
				<br />        End If</p>
<img src ="http://www.cnitblog.com/piaoye12345/aggbug/16355.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/piaoye12345/" target="_blank">萌芽的叶子</a> 2006-09-04 17:45 <a href="http://www.cnitblog.com/piaoye12345/archive/2006/09/04/16355.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>项目执行步骤</title><link>http://www.cnitblog.com/piaoye12345/archive/2006/02/09/6525.html</link><dc:creator>萌芽的叶子</dc:creator><author>萌芽的叶子</author><pubDate>Thu, 09 Feb 2006 06:35:00 GMT</pubDate><guid>http://www.cnitblog.com/piaoye12345/archive/2006/02/09/6525.html</guid><wfw:comment>http://www.cnitblog.com/piaoye12345/comments/6525.html</wfw:comment><comments>http://www.cnitblog.com/piaoye12345/archive/2006/02/09/6525.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/piaoye12345/comments/commentRss/6525.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/piaoye12345/services/trackbacks/6525.html</trackback:ping><description><![CDATA[<DIV style="mso-element: frame; mso-element-frame-hspace: 9.0pt; mso-element-wrap: around; mso-element-anchor-vertical: paragraph; mso-element-anchor-horizontal: margin; mso-element-top: 1.55pt; mso-height-rule: exactly">
<TABLE cellSpacing=0 cellPadding=0 align=left vspace="0" hspace="0">
<TBODY>
<TR>
<TD style="BORDER-RIGHT: #ece9d8; PADDING-RIGHT: 9pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 9pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #ece9d8; PADDING-TOP: 0cm; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent" vAlign=top align=left>
<P class=MsoNormal style="MARGIN: 6pt 0cm 0pt 21pt; TEXT-INDENT: -21pt; LINE-HEIGHT: 15pt; mso-element: frame; mso-element-frame-hspace: 9.0pt; mso-element-wrap: around; mso-element-anchor-vertical: paragraph; mso-element-anchor-horizontal: margin; mso-element-top: 1.55pt; mso-height-rule: exactly; mso-para-margin-top: .5gd; mso-para-margin-right: 0cm; mso-para-margin-bottom: .0001pt; mso-para-margin-left: 21.0pt; mso-line-height-rule: exactly; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt"><SPAN lang=EN-US style="FONT-SIZE: 14pt; FONT-FAMILY: 楷体_GB2312; mso-bidi-font-family: 楷体_GB2312"><SPAN style="mso-list: Ignore"><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp; </SPAN></SPAN></SPAN><SPAN style="FONT-SIZE: 14pt; FONT-FAMILY: 楷体_GB2312">项目执行步骤<SPAN lang=EN-US><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 6pt 0cm 0pt 42pt; TEXT-INDENT: -21pt; LINE-HEIGHT: 15pt; mso-element: frame; mso-element-frame-hspace: 9.0pt; mso-element-wrap: around; mso-element-anchor-vertical: paragraph; mso-element-anchor-horizontal: margin; mso-element-top: 1.55pt; mso-height-rule: exactly; mso-para-margin-top: .5gd; mso-para-margin-right: 0cm; mso-para-margin-bottom: .0001pt; mso-para-margin-left: 42.0pt; mso-line-height-rule: exactly; mso-list: l0 level2 lfo1; tab-stops: list 42.0pt"><SPAN lang=EN-US style="FONT-SIZE: 14pt; FONT-FAMILY: Wingdings; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings"><SPAN style="mso-list: Ignore">l<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><SPAN style="FONT-SIZE: 14pt; FONT-FAMILY: 楷体_GB2312">成立小组<SPAN lang=EN-US><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN></SPAN>用户担当<SPAN lang=EN-US>Leader<SPAN style="mso-spacerun: yes">&nbsp; </SPAN><o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 6pt 0cm 0pt 42pt; TEXT-INDENT: -21pt; LINE-HEIGHT: 15pt; mso-element: frame; mso-element-frame-hspace: 9.0pt; mso-element-wrap: around; mso-element-anchor-vertical: paragraph; mso-element-anchor-horizontal: margin; mso-element-top: 1.55pt; mso-height-rule: exactly; mso-para-margin-top: .5gd; mso-para-margin-right: 0cm; mso-para-margin-bottom: .0001pt; mso-para-margin-left: 42.0pt; mso-line-height-rule: exactly; mso-list: l0 level2 lfo1; tab-stops: list 42.0pt"><SPAN lang=EN-US style="FONT-SIZE: 14pt; FONT-FAMILY: Wingdings; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings"><SPAN style="mso-list: Ignore">l<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><SPAN style="FONT-SIZE: 14pt; FONT-FAMILY: 楷体_GB2312">排定时程表<SPAN lang=EN-US><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 6pt 0cm 0pt 42pt; TEXT-INDENT: -21pt; LINE-HEIGHT: 15pt; mso-element: frame; mso-element-frame-hspace: 9.0pt; mso-element-wrap: around; mso-element-anchor-vertical: paragraph; mso-element-anchor-horizontal: margin; mso-element-top: 1.55pt; mso-height-rule: exactly; mso-para-margin-top: .5gd; mso-para-margin-right: 0cm; mso-para-margin-bottom: .0001pt; mso-para-margin-left: 42.0pt; mso-line-height-rule: exactly; mso-list: l0 level2 lfo1; tab-stops: list 42.0pt"><SPAN lang=EN-US style="FONT-SIZE: 14pt; FONT-FAMILY: Wingdings; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings"><SPAN style="mso-list: Ignore">l<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><SPAN style="FONT-SIZE: 14pt; FONT-FAMILY: 楷体_GB2312">讨论<SPAN lang=EN-US> AS IS</SPAN>（现有情况）<SPAN lang=EN-US><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 6pt 0cm 0pt 42pt; TEXT-INDENT: -21pt; LINE-HEIGHT: 15pt; mso-element: frame; mso-element-frame-hspace: 9.0pt; mso-element-wrap: around; mso-element-anchor-vertical: paragraph; mso-element-anchor-horizontal: margin; mso-element-top: 1.55pt; mso-height-rule: exactly; mso-para-margin-top: .5gd; mso-para-margin-right: 0cm; mso-para-margin-bottom: .0001pt; mso-para-margin-left: 42.0pt; mso-line-height-rule: exactly; mso-list: l0 level2 lfo1; tab-stops: list 42.0pt"><SPAN lang=EN-US style="FONT-SIZE: 14pt; FONT-FAMILY: Wingdings; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings"><SPAN style="mso-list: Ignore">l<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><SPAN style="FONT-SIZE: 14pt; FONT-FAMILY: 楷体_GB2312">讨论<SPAN lang=EN-US> TO BE</SPAN>（将来）<SPAN lang=EN-US><o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 6pt 0cm 0pt 42pt; TEXT-INDENT: -21pt; LINE-HEIGHT: 15pt; mso-element: frame; mso-element-frame-hspace: 9.0pt; mso-element-wrap: around; mso-element-anchor-vertical: paragraph; mso-element-anchor-horizontal: margin; mso-element-top: 1.55pt; mso-height-rule: exactly; mso-para-margin-top: .5gd; mso-para-margin-right: 0cm; mso-para-margin-bottom: .0001pt; mso-para-margin-left: 42.0pt; mso-line-height-rule: exactly; mso-list: l0 level2 lfo1; tab-stops: list 42.0pt"><SPAN lang=EN-US style="FONT-SIZE: 14pt; FONT-FAMILY: Wingdings; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings"><SPAN style="mso-list: Ignore">l<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><SPAN style="FONT-SIZE: 14pt; FONT-FAMILY: 楷体_GB2312">收集资料<SPAN lang=EN-US><o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 6pt 0cm 0pt 42pt; TEXT-INDENT: -21pt; LINE-HEIGHT: 15pt; mso-element: frame; mso-element-frame-hspace: 9.0pt; mso-element-wrap: around; mso-element-anchor-vertical: paragraph; mso-element-anchor-horizontal: margin; mso-element-top: 1.55pt; mso-height-rule: exactly; mso-para-margin-top: .5gd; mso-para-margin-right: 0cm; mso-para-margin-bottom: .0001pt; mso-para-margin-left: 42.0pt; mso-line-height-rule: exactly; mso-list: l0 level2 lfo1; tab-stops: list 42.0pt"><SPAN lang=EN-US style="FONT-SIZE: 14pt; FONT-FAMILY: Wingdings; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings"><SPAN style="mso-list: Ignore">l<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><SPAN style="FONT-SIZE: 14pt; FONT-FAMILY: 楷体_GB2312">编程<SPAN lang=EN-US>/</SPAN>设定<SPAN lang=EN-US><o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 6pt 0cm 0pt 42pt; TEXT-INDENT: -21pt; LINE-HEIGHT: 15pt; mso-element: frame; mso-element-frame-hspace: 9.0pt; mso-element-wrap: around; mso-element-anchor-vertical: paragraph; mso-element-anchor-horizontal: margin; mso-element-top: 1.55pt; mso-height-rule: exactly; mso-para-margin-top: .5gd; mso-para-margin-right: 0cm; mso-para-margin-bottom: .0001pt; mso-para-margin-left: 42.0pt; mso-line-height-rule: exactly; mso-list: l0 level2 lfo1; tab-stops: list 42.0pt"><SPAN lang=EN-US style="FONT-SIZE: 14pt; FONT-FAMILY: Wingdings; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings"><SPAN style="mso-list: Ignore">l<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><SPAN lang=EN-US style="FONT-SIZE: 14pt; FONT-FAMILY: 楷体_GB2312">CRP</SPAN><SPAN style="FONT-SIZE: 14pt; FONT-FAMILY: 楷体_GB2312">（模拟上线）<SPAN lang=EN-US><o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 6pt 0cm 0pt 42pt; TEXT-INDENT: -21pt; LINE-HEIGHT: 15pt; mso-element: frame; mso-element-frame-hspace: 9.0pt; mso-element-wrap: around; mso-element-anchor-vertical: paragraph; mso-element-anchor-horizontal: margin; mso-element-top: 1.55pt; mso-height-rule: exactly; mso-para-margin-top: .5gd; mso-para-margin-right: 0cm; mso-para-margin-bottom: .0001pt; mso-para-margin-left: 42.0pt; mso-line-height-rule: exactly; mso-list: l0 level2 lfo1; tab-stops: list 42.0pt"><SPAN lang=EN-US style="FONT-SIZE: 14pt; FONT-FAMILY: Wingdings; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings"><SPAN style="mso-list: Ignore">l<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><SPAN style="FONT-SIZE: 14pt; FONT-FAMILY: 楷体_GB2312">调整<SPAN lang=EN-US><o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 6pt 0cm 0pt 42pt; TEXT-INDENT: -21pt; LINE-HEIGHT: 15pt; mso-element: frame; mso-element-frame-hspace: 9.0pt; mso-element-wrap: around; mso-element-anchor-vertical: paragraph; mso-element-anchor-horizontal: margin; mso-element-top: 1.55pt; mso-height-rule: exactly; mso-para-margin-top: .5gd; mso-para-margin-right: 0cm; mso-para-margin-bottom: .0001pt; mso-para-margin-left: 42.0pt; mso-line-height-rule: exactly; mso-list: l0 level2 lfo1; tab-stops: list 42.0pt"><SPAN lang=EN-US style="FONT-SIZE: 14pt; FONT-FAMILY: Wingdings; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings"><SPAN style="mso-list: Ignore">l<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><SPAN style="FONT-SIZE: 14pt; FONT-FAMILY: 楷体_GB2312">培训<SPAN lang=EN-US><o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 6pt 0cm 0pt 42pt; TEXT-INDENT: -21pt; LINE-HEIGHT: 15pt; mso-element: frame; mso-element-frame-hspace: 9.0pt; mso-element-wrap: around; mso-element-anchor-vertical: paragraph; mso-element-anchor-horizontal: margin; mso-element-top: 1.55pt; mso-height-rule: exactly; mso-para-margin-top: .5gd; mso-para-margin-right: 0cm; mso-para-margin-bottom: .0001pt; mso-para-margin-left: 42.0pt; mso-line-height-rule: exactly; mso-list: l0 level2 lfo1; tab-stops: list 42.0pt"><SPAN lang=EN-US style="FONT-SIZE: 14pt; FONT-FAMILY: Wingdings; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings"><SPAN style="mso-list: Ignore">l<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><SPAN lang=EN-US style="FONT-SIZE: 14pt; FONT-FAMILY: 楷体_GB2312">GO LIVE</SPAN><SPAN style="FONT-SIZE: 14pt; FONT-FAMILY: 楷体_GB2312">（上线）<SPAN lang=EN-US><SPAN style="mso-spacerun: yes">&nbsp; </SPAN></SPAN>由用户宣布（公告）<SPAN lang=EN-US><o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 6pt 0cm 0pt 42pt; TEXT-INDENT: -21pt; LINE-HEIGHT: 15pt; mso-element: frame; mso-element-frame-hspace: 9.0pt; mso-element-wrap: around; mso-element-anchor-vertical: paragraph; mso-element-anchor-horizontal: margin; mso-element-top: 1.55pt; mso-height-rule: exactly; mso-para-margin-top: .5gd; mso-para-margin-right: 0cm; mso-para-margin-bottom: .0001pt; mso-para-margin-left: 42.0pt; mso-line-height-rule: exactly; mso-list: l0 level2 lfo1; tab-stops: list 42.0pt"><SPAN lang=EN-US style="FONT-SIZE: 14pt; FONT-FAMILY: Wingdings; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings"><SPAN style="mso-list: Ignore">l<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><SPAN lang=EN-US style="FONT-SIZE: 14pt; FONT-FAMILY: 楷体_GB2312">POST GO LIVE SUPPORT </SPAN><SPAN style="FONT-SIZE: 14pt; FONT-FAMILY: 楷体_GB2312">（上线后的支持）<SPAN lang=EN-US><o:p></o:p></SPAN></SPAN></P></TD></TR></TBODY></TABLE></DIV><img src ="http://www.cnitblog.com/piaoye12345/aggbug/6525.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/piaoye12345/" target="_blank">萌芽的叶子</a> 2006-02-09 14:35 <a href="http://www.cnitblog.com/piaoye12345/archive/2006/02/09/6525.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>web服务</title><link>http://www.cnitblog.com/piaoye12345/archive/2005/10/25/3553.html</link><dc:creator>萌芽的叶子</dc:creator><author>萌芽的叶子</author><pubDate>Tue, 25 Oct 2005 07:48:00 GMT</pubDate><guid>http://www.cnitblog.com/piaoye12345/archive/2005/10/25/3553.html</guid><wfw:comment>http://www.cnitblog.com/piaoye12345/comments/3553.html</wfw:comment><comments>http://www.cnitblog.com/piaoye12345/archive/2005/10/25/3553.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/piaoye12345/comments/commentRss/3553.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/piaoye12345/services/trackbacks/3553.html</trackback:ping><description><![CDATA[<P>web 服务其实就是我们说的web service，用户通用模块，或是是通用数据的。<BR><BR>在项目里面添加一个web服务，然后在和写模块一样的，如果是要给别人调用的模块最好是可以返回参数的function，然后别人在引用这个服务，根据返回参数来判断程序的执行情况。<BR><BR>实例：<BR>Imports System.Web.Services</P>
<P>&lt;System.Web.Services.WebService(Namespace := "<A href="http://tempuri.org/SMS/WebSignServiceClass">http://tempuri.org/SMS/WebSignServiceClass</A>")&gt; _<BR>Public Class WebSignServiceClass<BR>&nbsp;&nbsp;&nbsp; Inherits System.Web.Services.WebService</P>
<P>#Region " Web 服务设计器生成的代码 "</P>
<P>&nbsp;&nbsp;&nbsp; Public Sub New()<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MyBase.New()</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '该调用是 Web 服务设计器所必需的。<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; InitializeComponent()</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '在 InitializeComponent() 调用之后添加您自己的初始化代码</P>
<P>&nbsp;&nbsp;&nbsp; End Sub</P>
<P>&nbsp;&nbsp;&nbsp; 'Web 服务设计器所必需的<BR>&nbsp;&nbsp;&nbsp; Private components As System.ComponentModel.IContainer</P>
<P>&nbsp;&nbsp;&nbsp; '注意: 以下过程是 Web 服务设计器所必需的<BR>&nbsp;&nbsp;&nbsp; '可以使用 Web 服务设计器修改此过程。<BR>&nbsp;&nbsp;&nbsp; '不要使用代码编辑器修改它。<BR>&nbsp;&nbsp;&nbsp; &lt;System.Diagnostics.DebuggerStepThrough()&gt; Private Sub InitializeComponent()<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; components = New System.ComponentModel.Container()<BR>&nbsp;&nbsp;&nbsp; End Sub</P>
<P>&nbsp;&nbsp;&nbsp; Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'CODEGEN: 此过程是 Web 服务设计器所必需的<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '不要使用代码编辑器修改它。<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If disposing Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If Not (components Is Nothing) Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; components.Dispose()<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MyBase.Dispose(disposing)<BR>&nbsp;&nbsp;&nbsp; End Sub</P>
<P>#End Region</P>
<P>&nbsp;&nbsp;&nbsp; ' Web 服务示例<BR>&nbsp;&nbsp;&nbsp; ' HelloWorld() 示例服务返回字符串 Hello World。<BR>&nbsp;&nbsp;&nbsp; ' 若要生成项目，请取消注释以下行，然后保存并生成项目。<BR>&nbsp;&nbsp;&nbsp; ' 若要测试此 Web 服务，请确保 .asmx 文件是起始页<BR>&nbsp;&nbsp;&nbsp; ' 并按 F5 键。<BR>&nbsp;&nbsp;&nbsp; '<BR>&nbsp;&nbsp;&nbsp; '&lt;WebMethod()&gt; _<BR>&nbsp;&nbsp;&nbsp; 'Public Function HelloWorld() As String<BR>&nbsp;&nbsp;&nbsp; '&nbsp;&nbsp; Return "Hello World"<BR>&nbsp;&nbsp;&nbsp; 'End Function</P>
<P><BR>End Class<BR><BR>这是添加一个服务时的情况，在里面加一些给别人调用的模块。<BR>调用时：<BR>先在项目引用web服务，比如引用登陆服务：<BR>&nbsp;Dim wr As WebReference.EipUserServices = New WebReference.EipUserServices</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim errmess As String = wr.EipUserLogonCheck(Me.TextBox1.Text, Me.TextBox2.Text, "SIGN-1")<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If errmess = "OK" Then<BR>。。。。。<BR>&nbsp;Else<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Page.RegisterStartupScript("111", "&lt;script&gt;alert('" + errmess.Trim + "');&lt;/script&gt;")<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sjs()<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Exit Sub<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Response.Redirect("JM/Main.htm", True)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Response.End()<BR>可能表达不是很清楚，有问题请留言，谢谢<BR></P><img src ="http://www.cnitblog.com/piaoye12345/aggbug/3553.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/piaoye12345/" target="_blank">萌芽的叶子</a> 2005-10-25 15:48 <a href="http://www.cnitblog.com/piaoye12345/archive/2005/10/25/3553.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>