ASP.NET Cookies¼òµ¥Ó¦Óà ¼ÇסÓû§ÃûºÍÃÜÂë
using System;
using System.Collections.Generic;
using System.Text;
using System.Web;
namespace TLibrary.ObjectHelper
{
public class CookiesHelper
{
#region »ñÈ¡Cookie
/// <summary>
/// »ñµÃCookieµÄÖµ
/// </summary>
/// <param name="cookieName"></param>
/// <returns></returns>
public static string GetCookieValue(string cookieName)
{
return GetCookieValue(cookieName, null);
}
/// <summary>
/// »ñµÃCookieµÄÖµ
/// </summary>
/// <param name="cookieName"></param>
/// <param name="key"></param>
/// <returns></returns>
public static string GetCookieValue(string cookieName,string key)
{
HttpRequest request = HttpContext.Current.Request;
&nbs
Ïà¹ØÎĵµ£º
¶ÔÁª¹ã¸æ²»¹ö¶¯µÄÎÊÌâ asp.net Ò³Ãæ
2008Äê06ÔÂ11ÈÕ ÐÇÆÚÈý 11:01
ÔÚÒ³ÃæÉϼÓÁ˶ÔÁª¹ã¸æºó·¢ÏÖ²»¹ö¶¯£¬ÕÒÁËN¾Ã²Å·¢ÏÖÊÇ<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">Õâ¾äµ¼Ö²»¹ö¶¯µÄ£¬¿ÉÊÇÈç¹ûÈ¥µôµÄ»°¶ÔÓÚÓÃDIV+CSS¿ª·¢µÄÍøÕ¾À´ËµÓÖÊÇÔÖÄÑÒªÁíÍâÕÒ½â ......
ÔÚ¸´ÔÓµÄÒµÎñÓ¦ÓóÌÐòÖУ¬ÓÐʱºò»áÒªÇóÒ»¸ö»òÕ߶à¸öÈÎÎñÔÚÒ»¶¨µÄʱ¼ä»òÕßÒ»¶¨µÄʱ¼ä¼ä¸ôÄڼƻ®½øÐУ¬±ÈÈ綨ʱ±¸·Ý»òͬ²½Êý¾Ý¿â£¬¶¨Ê±·¢Ë͵ç×ÓÓʼþ£¬¶¨ÆÚ´¦ÀíÓû§×´Ì¬ÐÅÏ¢£¬Ö§¸¶ÏµÍ³Öж¨ÆÚͬ²½Òì³£Õ˵¥µÈµÈ£¬ÎÒÃdzÆ֮Ϊ¼Æ»®ÈÎÎñ¡£ÊµÏּƻ®ÈÎÎñµÄ·½·¨Ò²Óкܶ࣬¿ÉÒÔ²ÉÓÃSQLAgentÖ´Ðд洢¹ý³Ì£¬²ÉÓÃWindowsÈÎÎñµ÷¶È³ÌÐòÀ´ÊµÏÖ£ ......
Õâ¸ö¶«Î÷Ì«¾À½áÁË~Ìù³öÀ´´úÂ룬¹©´ó¼ÒÏíÓÃ
·ÖÈý¸ö²¿·Ö£º.config .aspx .aspx.cs
//web.config
<appSettings>
<add key="keystring" value="Data Source=ZRQ-PC;Initial Catalog=OnlineJudge;Integrated Security=True"/>
</appSettings>
......
ʵÏÖ·½·¨¾ÍÊǸøµ¥Ôª¸ñÌî³äÎÒÃÇÏëÒªµÄ¸ñʽ´úÂë¡£
==============C#==============
<%@ Page Language="C#" AutoEventWireup="true" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script run ......
Èý²ãµÄ»®·Ö:
Ä¿µÄ£º¸ßÄÚ¾Û£¬µÍñîºÏ£¬Îª¸üºÃµÄʵÏÖ·Ö²¼Ê½¿ª·¢ºÍά»¤¡£
Óû§½çÃæ²ã: Ò³Ãæ,Óû§¿Ø¼þ,ͼƬ£¬Ñùʽ±í
ÒµÎñÂß¼²ã:ÒµÎñ½Ó¿Ú( BusinessInterface ), ÒµÎñʵÌå( BusinessEntity),ÒµÎñÂß¼(BusinessLogic)
  ......