(·Â163)Asp.Net¶à¸½¼þÉÏ´« [תÌù]
¶ÔÓÚasp.net³ÌÐò£¬ÎÒÃÇÓ¦¸Ã¾¡¿ÉÄܵÄÌṩһ¸ö±ã½ÝµÄÓû§½Ó¿Ú£¬¼õÉÙÒ³Ãæ»Ø´«¾ÍÊÇÆäÖÐÖ®Ò»¡£
±¾ÎÄÑÝʾһ´ÎÉÏ´«¶à¸öÎļþµÄ·½·¨£¬ÔÚ¿Í»§¶Ë¿ÉÒÔËæÒâ¿ØÖÆÉÏ´«ÎļþµÄ¸öÊý£¬µ«ÊÇ×¢Òâ×ÜÎļþ´óС²»Äܹý´ó£¬·ñÔò»áÓÐÒì³£Å׳ö¡£ÖÁÓÚ½â¾ö´óÎļþÉÏ´«µÄ·½·¨ÒѾ³¬³ö±¾ÎĵÄÌÖÂÛ·¶Î§¡£
<×¢£º´ó¸½¼þ°ì·¨>
<
<configuration>
<system.web>
<httpRuntime maxRequestLength="10000"
useFullyQualifiedRedirectUrl="true"
executionTimeout="45"/>
</system.web>
</configuration>
ÐèÒª½«machine.config»òweb.configÖеÄ<httpRuntime> sectionµÄmaxRequestLengthÖµ×÷ÏàÓ¦µÄÐÞ¸Ä.
>
ÕâÀïÓÐÒ»¸öÒªµã´ó¼Ò²»ÒªºöÂÔÁË£¬·ñÔò³ÌÐò²»ÄÜÕý³£¹¤×÷¡£
¾ÍÊDZØÐëÖ¸¶¨formµÄenctype="multipart/form-data" ÊôÐÔ
´úÂëÈçÏ£º
<%@ Page language="c#"
Codebehind="MultiAttchments.aspx.cs" AutoEventWireup="false"
Inherits="WebApplication3.MultiAttchments" %><!DOCTYPE HTML
PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" ><HTML>
<HEAD>
<script>
function AddAttachments()
{
document.getElementById('attach').innerText
Ïà¹ØÎĵµ£º
´òÓ¡¾Ö²¿Ò³Ãæ
1. window.print(); ´òÓ¡
<!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><input class="NOPRINT" type="button" onclick="window ......
Ò»¡¢·µ»Ø¶à¸öÊý¾Ý¼¯
¼ì²éÄãµÄ·ÃÎÊÊý¾Ý¿âµÄ´úÂ룬¿´ÊÇ·ñ´æÔÚ×ÅÒª·µ»Ø¶à´ÎµÄÇëÇó¡£Ã¿´ÎÍù·µ½µµÍÁËÄãµÄÓ¦ÓóÌÐòµÄÿÃëÄܹ»ÏìÓ¦ÇëÇóµÄ´ÎÊý¡£Í¨¹ýÔÚµ¥¸öÊý¾Ý¿âÇëÇóÖзµ»Ø¶à¸ö½á¹û
¼¯£¬¿ÉÒÔ¼õÉÙÓëÊý¾Ý¿âͨÐŵÄʱ¼ä£¬Ê¹ÄãµÄϵͳ¾ßÓÐÀ©Õ¹ÐÔ£¬Ò²¿ÉÒÔ¼õÉÙÊý¾Ý¿â·þÎñÆ÷ÏìÓ¦ÇëÇóµÄ¹¤×÷ ......
¹ØÓÚÊý¾Ý´¦ÀíÏà¹ØµÄÓÅ»¯
Ò»¡¢ SqlDataReadºÍDatasetµÄÑ¡Ôñ
SqldatareadÓŵ㣺¶ÁÈ¡Êý¾Ý·Ç³£¿ì¡£Èç¹û¶Ô·µ»ØµÄÊý¾Ý²»Ðè×ö´óÁ¿´¦ÀíµÄÇé¿öÏ£ ......
/// <summary>
/// Ìṩ¾³£ÐèҪʹÓõÄһЩÑéÖ¤Âß¼¡£ ±ÈÈç ÓÊÏäÊÇ·ñºÏ·¨
/// </summary>
public class Validator
{
/// <summary>
&nbs ......
ASP.NETÕýÔò±í´ïʽ¼¯ºÏ
1.ÕʺÅÓÉa¡«zµÄÓ¢ÎÄ×Öĸ(²»Çø·Ö´óСд)¡¢0¡«9µÄÊý×Ö¡¢µã¡¢¼õºÅ»òÏ»®Ïß×é³É£¬³¤¶ÈΪ
3¡«18¸ö×Ö·û£¬ÀýÈç:kyzy_001
^[a-zA-Z0-9.-_]{3,18}$
2.ÊäÈë¿òÀï±ØÐëΪÊý×Ö
^[0-9]{1,}$
3.µç×ÓÓʼþ¸ñʽ
\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*
4.ÒªÇóÎı¾¿òÖ»ÄÜÊäÈë×î¶à ......