ASP.NET»ñÈ¡ÖÐÎÄÊ××Öĸ
//ASP.NET»ñÈ¡ÖÐÎÄÊ××Öĸ
public class Converter
{
static public string GetChineseSpell(string strText)
{
int len = strText.Length;
string myStr = "";
for (int i = 0; i < len; i++)
{
myStr += getSpell(strText.Substring(i, 1));
}
return myStr;
}
static public string getSpell(string cnChar)
¡¡¡¡ {
¡¡¡¡ byte[] arrCN = Encoding.Default.GetBytes(cnChar);
¡¡¡¡ if (arrCN.Length > 1)
¡¡¡¡ {
¡¡¡¡ int area = (short)arrCN[0];
¡¡¡¡ int pos = (short)arrCN[1];
¡¡¡¡ int code = (area << 8) + pos;
¡¡¡¡ int[] areacode = { 45217, 45253, 45761, 46318, 46826, 47010, 47297, 47614, 48119, 48119, 49062, 49324, 49896, 50371, 50614, 50622, 50906, 51387, 51446, 52218, 52698, 52698, 52698, 52980, 53689, 54481 };
¡¡¡¡ for (int i = 0; i < 26; i++)
¡¡¡¡ &
Ïà¹ØÎĵµ£º
ÔÚ IIS 6.0 Öв¿ÊðASP.NET MVC³ÌÐò
1¡¢°²×°ASP.NET MVC¿ò¼Ü³ÌÐò
AspNetMVC1.msi ÏÂÔØµØÖ·£º
http://www.microsoft.com/downloads/details.aspx?FamilyID=53289097-73ce-43bf-b6a6-35e00103cb4b&displaylang=en
2¡¢ÉèÖÃIIS
1£© ......
//default.aspx.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Data.OleDb;
using System.Data.SqlClient;
using System.Runtime.InteropService ......
asp.netÎļþÉÏ´«£¨0£©
2009Äê04ÔÂ13ÈÕ ÐÇÆÚÒ» ÏÂÎç 06:11
Default.aspx:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"& ......
asp.netÈçºÎ°ÑÎļþÉÏ´«µ½ÁíÍâһ̨·þÎñÆ÷?
ÎÒÓÃÓ³ÉäÍøÂçÅ̵ÄÐÎʽ,¿ÉÊdzÌÐòÎÞ·¨½«Îļþ±£´æµ½ÍøÂçÓ³ÉäÅÌÉÏ.
ÈçºÎ¹²ÏíÎļþ¼ÐµÄ»°,Îļþ¼Ð±ØÐëÓÐдÈëµÄȨÏÞ,¿ÉÊÇÕâÑùµÄ»°¾ÖÓòÍøÄÚËùÓеÄÈ˶¼¿ÉÒÔÉÏ´«µ½Õâ¸ö¹²ÏíĿ¼ÁË?
½¨Ò飺
Õâ¸öÎÒÕýºÃ×ö¹ýµÄ£¬ºÇºÇ£¬¸øÄã²Î¿¼
¼ÙÉèÓзþÎñÆ÷AÊÇweb·þÎñÆ÷£¬ÎļþҪͨ¹ýA·þÎñÆ÷ÉϵÄweb³ÌÐòÉÏ´«µ ......
Õý³£²Ù×÷Çé¿öÏ»áÓÐASP.NET Session¶ªÊ§µÄÇé¿ö³öÏÖ¡£ÒòΪ³ÌÐòÊÇÔÚ²»Í£µÄ±»²Ù×÷£¬ÅųýSession³¬Ê±µÄ¿ÉÄÜ¡£ÁíÍ⣬Session³¬Ê±Ê±¼ä±»É趨³É60·ÖÖÓ£¬²»»áÕâô¿ì¾Í³¬Ê±µÄ¡£
ÏÖÔÚÎҾͰÑÔÒòºÍ½â¾ö°ì·¨Ð´³öÀ´¡£
ASP.NET Session¶ªÊ§ÔÒò£º
ÓÉÓÚAsp.net³ÌÐòÊÇĬÈÏÅäÖã¬ËùÒÔWeb.ConfigÎļþÖйØÓÚSessionµÄÉ趨ÈçÏ£º
< sessi ......