Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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&


Ïà¹ØÎĵµ£º

¹ØÓÚASP.NET/C#ÖжÔCookieµÄ²Ù×÷

д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 ......

ASP.NET ´´½¨XML

 public void CreatXml(int oid)
        {
            XmlTextWriter writer = null;
           string fileName ="a"+ oid.ToString() + ".xml";
   ......

Asp.net ʹÓÃ×ÊÔ´ÎļþʵÏÖË«ÓïÑÔ

¹«Ë¾½»¸øÎÒ¸öÏîÄ¿£¬ÒѾ­Íê³ÉÁËÒ»²¿·Ö£¬ÐèÒª×öÖÐÓ¢ÎÄË«ÓïÑÔ£¬ÒÔǰÌý±ðÈË˵³ÌÐò¶àÓïÑÔʲôµÄ£¬¶¼²»ÖªµÀ´ÓÄÄÏÂÊֵá£ÏîÄ¿¼Ü¹¹ÒѾ­´îºÃÁË£¬´ó¸Å¿´ÁËһϣ¬ÖªµÀÊÇʹÓÃ×ÊÔ´ÎļþÀ´ÊµÏֵ쬲»ËµÁË£¬¸Ï½ô×Ô¼ºÊÔÊÔ°É¡£ÊÔÁ˲Żá¼Çס£¬²ÅÊÇ×Ô¼ºµÄO(∩_∩)O~
 
1. н¨Asp.net WebÓ¦ÓóÌÐòChangeLanuage£¬Ð½¨aspxÒ³ÃæDefau ......

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 ¶à×Ö¶ÎÄ£ºý²éѯ´úÂë

¾­³£Óõ½¶à×ֶεÄÄ£ºý²éѯ£¬ÉÏÃæµÄº¯Êý¿ÉÒÔʵÏÖ£¬ÀýÈçstrKeyWordsֵΪ“½Å±¾Ö®¼Ò”ʱ
string strField = "id|className|classAdd";
string strKeyWords = this.tbxKeyWords.Text.Trim();
string strSql = dbexe.searchText("select * from class", strField, strKeyWords);
¾­³£Óõ½¶à×ֶεÄÄ£ºý²éѯ£¬ÉÏà ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ