asp.net返回简单数组
	
    
    
	Imports System.Web
Imports System.Web.Services
Imports System.Web.Services.Protocols
'若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务,请取消对下行的注释。
<System.Web.Script.Services.ScriptService()> _
<WebService(Namespace:="http://tempuri.org/")> _
<WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Public Class WebService
    Inherits System.Web.Services.WebService
    <WebMethod()> _
    Public Function HelloWorld() As String()
        Dim cities As String() = {"北京", "上海", "天津", "重庆"}
        Return cities
    End Function
End Class
==============================================================
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div id="div1">
    
        <asp:ScriptManager ID="ScriptManager1" runat="server">
            <Services>
                <asp:ServiceReference Path="~/WebService.asmx" />
            </Services>
        </asp:ScriptManager>
    
    </div>
    </form>
    <script&
    
     
	
	
    
    
	相关文档:
        
    
    写cookie
  1 HttpCookie cookie = new HttpCookie("Info");//定义cookie对象以及名为Info的项
  2 DateTime dt = DateTime.Now;//定义时间对象
  3 TimeSpan ts=new TimeSpan(1,0,0,0);//cookie有效作用时间,具体查msdn
  4 cookie.Expires = dt.Add(ts);//添加作用时间
  5 cookie.Values.Add("user","cx ......
	
    
        
    
    Parameter Queries in ASP.NET with MS Access
A selection of code samples for executing queries against MS Access using parameters. 
Making use of the ASP.NET 2.0 datasource controls is fine, but it is important to understand how to manually create data access code. Best practice dictates that, at t ......
	
    
        
    
    Windows 身份验证提供程序 提供有关如何将 Windows 身份验证与 Microsoft Internet 信息服务 (IIS) 身份验证结合使用来确保 ASP.NET 应用程序安全的信息。 Forms 身份验证提供程序 提供有关如何使用您自己的代码创建应用程序特定的登录窗体并执行身份验证的信息。使用 Forms 身份验证的一种简便方法是使用 ASP.NET 成员资格 ......
	
    
        
    
    
using System; 
using System.Collections.Generic; 
using System.Text; 
namespace Common 
{ 
/// <summary> 
/// 转换人民币大小金额。 
/// </summary> 
public class Rmb 
{ 
/// <summary> 
/// 转换人民币大小金额 
/// </summary> 
/// <param name="num">金额</ ......
	
    
        
    
    asp.net 页面延时五秒,跳转到另外的页面的实现代码。
--前台 
复制代码 代码如下:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Successed.aspx.cs" Inherits="Biz_Order_Successed" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xht ......