ʹÓÃASP.NETÉÏ´«¶à¸öÎļþµ½·þÎñÆ÷
ÔÚEmailϵͳÖо³£»áÉÏ´«¶à¸öÎļþµ½·þÎñÆ÷£¬Óû§´ó¶àϰ¹ßÒ»´ÎÉÏ´«ËùÓеÄÎļþ£¬¶ø²»ÊÇÖð¸öÉÏ´«£¬ÎÒÃÇ¿ÉÒÔʹÓÃjavascript¶¯Ì¬µØÌí¼ÓfileÔªËØµ½±íµ¥£¬È»ºóÔÚ·þÎñÆ÷¶Ë´¦ÀíÕâЩfile
Ч¹ûͼÈçÏÂ:
Ò³Ãæ´úÂëMutlileFileUpload.aspxÈçÏÂ:
view plaincopy to clipboardprint?
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="MutlileFileUpload.aspx.cs" Inherits="MutlileFileUpload"%>
<!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>
<title>¶àÎļþÉÏ´«µ½·þÎñÆ÷Demo</title>
<link href="css/writemail.css" mce_href="css/writemail.css" rel="stylesheet" type="text/css" />
<mce:script type="text/javascript"><!--
var MAXFILES = 5;
//Îļþ¼ÆÊýÆ÷
var fileCount = 0;
function addAttach(noAlert) {
if (fileCount >= MAXFILES && !noAlert) {
alert("×î¶àÖ»ÄÜÌí¼Ó" + MAXFILES + "¸ö¸½¼þ£¡");
return;
}
var fileSectionDiv = document.getElementById("files");
var fileItemDiv = document.createElement("div");
&
Ïà¹ØÎĵµ£º
·½·¨Ò»£ºÊ¹ÓÃFileUpLoad ¿Ø¼þ¶à¸öÖ±½ÓÉÏ´«¡£ÕâÑù×öµÄÎÊÌâ¾ÍÊÇÒªÇóÒ³ÃæÌá½»£¬´Ó¶øµ¼ÖÂһЩ²»Ó¦¸ÃˢеÄÄÚÈÝÔڴ˲Ù×÷¹ý³ÌÖÐÏûʧµô¡£µ«ÊÇÓÃScriptManger À´Åª È´ÓÖ²»ÄÜÉÏ´«ÁË ÔÒòºÜ¼òµ¥ FileUpLoad ¿Ø¼þÒªÇópost¡£ÓÉÓÚÕâ¸öÎÊÌâ ËùÒÔ¶àÊýÈ˶¼ºÜÉÙ²ÉÓÃÕâÖÖ·½·¨£¬²»µÃ²»ÁíѰËü·¨¡£ÏÂÃæµÄ·½·¨¶þ½â¾ö´ËÎÊÌâ¡£
·½·¨¶þ£ºÊ¹ÓÃHtml±êÇ ......
·½·¨1:
Response.Cookies["username"].Value="gjy";
Response.Cookies["username"].Expires=DateTime.Now.AddDays(1);
·½·¨2:
System.Web.HttpCookie newcookie=new HttpCookie("username");
newcookie.Value="gjy";
newcookie.Expires=DateTime.Now.AddDays(1);
Response.AppendCookie(newcookie);
´´½¨´ø ......
×Ô¼ºÔÚ¿ª·¢ÖÐÅöµ½µÄ+ÁËһЩÔÚÍøÉÏËѵ½µÄ¡£¡£ºÍ´ó¼Ò·ÖÏíÏ¡£
DropdownlistÎÞˢеÄÀý×Ó¡£xml.
ÀýÈçÎı¾ÑéÖ¤!
ÏÂÃæÊÇÒ»¸öµ¥Ñ¡°´Å¦Ç°Ì¨²»Ë¢ÐµÄÀý×Ó.ÓкõľÍÍùÉÏÌù
<mce:script language="javascript"><!--
function SetButton()
{
if(document.all.rdoByHuman.checked==true)
{
......
ÓÉÓÚ¾³£ÒªÐ´Ò»Ð©²É¼¯µÄ³ÌÐò£¬ÏÂÃæµÄÈý¸öº¯ÊýÊDzɼ¯Öеĺܳ£Óõĺ¯Êý¡£¹ÃÇҽвɼ¯ÏµÍ³ÍòÄÜÕýÔò±í´ïʽ°É¡£
µÚÒ»¸ö£º//»ñÈ¡Ò³ÃæµÄhtmlÔ´Âë
public string GetHtmlSource(string Url, string charset)
{
& ......