ASP.NET¶Áдcookies
/// <summary>
/// дCookies
/// </summary>
/// <param name="response"></param>
/// <param name="request"></param>
/// <param name="server"></param>
/// <param name="IndexValue"></param>
/// <param name="TextValue"></param>
/// <param name="ExpriesHour">ÉèÖõĹýÆÚʱ¼ä</param>
public void WriteCookies(HttpResponse response,HttpRequest request,HttpServerUtility server,string IndexValue,string TextValue,int ExpriesHour)
{
response.Cookies[IndexValue].Value = TextValue;
response.Cookies[IndexValue].Expires = System.DateTime.Now.AddHours(ExpriesHour);
}
/**//// <summary>
/// ¶ÁCookies
/// </summary>
/// <param name="response"></param>
/// <param name="request"></param>
/// <param name="server"></param>
/// <param name="IndexValue"></param>
/// <returns></returns>
public string ReadCookies(HttpResponse response, HttpRequest request, HttpServerUtility server, string IndexValue)
{
if (request.Cookies[IndexValue] !=&nb
Ïà¹ØÎĵµ£º
fileupload¿Ø¼þµÄÓ÷¨
ASPXÒ³Ãæ
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" t ......
Ò»¡¢´´½¨Îļþ¼Ð
#region ´´½¨Îļþ¼Ð
/// <summary>
/// Self_Function:´´½¨Îļþ¼Ð
/// </summary>
/// <param name="path">´´½¨Îļþ¼ÐµÄ·¾¶</param>
/// <param name="noyes">Òþ²ØÎ ......
if (FileUpload1.HasFile)
{
string fileContentType = FileUpload1.PostedFile.ContentType;
&n ......
¡¡¡¡ÓÉÊý¾Ý¿âÇý¶¯µÄWebÓ¦ÓóÌÐò£¬Èç¹ûÐèÒª¸ÄÉÆÆäÐÔÄÜ£¬×îºÃµÄ·½·¨ÊÇʹÓûº´æ¹¦ÄÜ¡£Óû§´ÓÊý¾Ý¿âÖмìË÷Êý¾Ý£¬¿ÉÄÜÊÇWebÓ¦ÓóÌÐòÖÐÖ´ÐÐ×îÂýµÄ²Ù×÷Ö®Ò»¡£ÒòΪÆäÖÐÉæ¼°¶à¸ö»·½Ú£¬ÀýÈ磬Web·þÎñÆ÷¡¢Êý¾Ý¿â·þÎñÆ÷µÈ¡£ÓÈÆäÊÇÔÚÓû§±È½Ï¶à£¬¼ìË÷µÄÊý¾ÝÁ¿±È½Ï´óµÄÇé¿öÏ£¬»á¸ø°üÀ¨Óû§ÔÚÄڵĸ÷¸ö·½ÃæÔì³É²»Ð¡µÄÀ§ÄÑ¡£Èç¹ûÄܹ»½«Êý¾Ý¿ ......
ÔÚASP.NETÏîÄ¿¿ª·¢ÖÐ,»á±»ÒªÇóÌí¼Ó¹ã¸æ,ÓзÆÁЧ¹û¡¢Óйã¸æÂÖÁ÷ÏÔʾ¡¢Æ®¸¡¹ã¸æ¡¢×ó²à¹ã¸æ¡¢ÓÒ²à¹ã¸æµÈ¡£Óñ¾Ìù³ÖÐø¼Ç¼һЩÊÕ¼¯µÄ¹ã¸æЧ¹û¡£Ï£Íû¸øÓÐÐèÇóµÄÅóÓÑÃÇһЩ֧³Ö¡£Ò²Ï£ÍûÅóÓÑÃÇ°ÑÎÒδ¼Ç¼µÄ¹ã¸æÐÎʽҲ¸øÓèÒ»Æð»ØÌù¡£Ê¹±¾Ìù¸ü¼ÓµÄÍêÉÆ£¬Ò²Èøü¶àµÄÅóÓÑÃÇ·ÖÏí¡£
1.·ÆÁЧ¹û
·ÆÁЧ¹û
<html>
<head>& ......