asp.netÅúÁ¿ÉÏ´«Í¼Æ¬ - .NET¼¼Êõ / ASP.NET
asp.netÅúÁ¿ÉÏ´«Í¼Æ¬×îºÃÓÐÔ´Â룬ÔÚÏߵȣ¡£¡£¡£¡£¡£¡£¡
Ô´ÂëºÜ³¤µÄ¡£
²Î¿¼
C# code:
HttpFileCollection files = HttpContext.Current.Request.Files;
if (files.Count <= 1)
{
Page.ClientScript.RegisterClientScriptBlock(GetType(), "", "<script>alert('ÇëÌí¼ÓͼƬ¸½¼þ!'); hideWaitLayer();</script>");
}
else
{
try
{
for (int i = 0; i < files.Count; i++)
{
HttpPostedFile postedFile = files[i];
string filepath = System.IO.Path.GetFileName(postedFile.FileName);//»ñÈ¡ÎļþÃû
if (filepath != "")
{
string fileName = filepath.Substring(filepath.LastIndexOf("\\") + 1);
string fileExtensions = fileName.Substring(fileName.LastIndexOf(".") + 1);//»ñÈ¡ºó׺Ãû
//±ÜÃâÒ»´ÎÉÏ´«¶à¸öÔì³ÉÃüÃûÖظ´£¬ÌØ´ËÔÙʱ¼äºóÔÙ¼ÓÒ»¸öÐòºÅ£¬¿¼Âǵ½Óû§Á¿²»»áºÜ´ó£¬¸ü´óµÄ²¢·¢²Ù×÷ÔÚÕâÀï²»¿¼ÂÇ
string newFileName = DateTime.Now.ToString("yyyyMMddHHmmss") + i + "." + fileExtensions;
string serverPath = Server.MapPath("../Adjunct/ImagesNews/" + newFileName);
Ïà¹ØÎÊ´ð£º
ÓÐÒ»¸öÀà
class adc
{
dim a,b,c
}
ÈçºÎÔÚÁíÍâÒ»¸öÀàÖÐÈ¡µÃÀà³ÉÔ±¼°³ÉÔ±¸öÊý
class getmenber
{
dim menbers()
function getmenbers(resclass)
'resΪһδ֪Àà
'getmenber ......
function CheckOpwd(){//ÑéÖ¤Óû§Ãû
var pwd=document.all.txtOpwd;
var div1=document.getElementById("divPwd");
if (pwd.value=="")
{
......
µ÷ÕûÁËÕâÀÄÇÀï³öÎÊÌâ¡£
ÓÐûÓÐʲôºÃµÄ·½·¨£¬Ïñµ÷Õû¶Ô»°¿òÒ»Ñù£¿£¿£¿£¿
ÕÒ¸öרÃÅ×öÒ³ÃæµÄ
ÔÚdreamweaverÀïµ÷¡£¡£¡£Ò²¿ÉÒÔÖ±½Ó¿ØÖÆHTML´úÂë
ȷʵʹ¿à ¸ÐͬÉíÊÜѽ
¹þ¹þ ¼á¾ö·¹ý¡£
ÓÃDW°É£¬VS¸ãÉè¼Æ ......
C# code:
SqlConnection conn = CsDB.sqlcon();
SqlDataAdapter da = new SqlDataAdapter("select fwCoding from bjmuma_fwCoding where OrderNumber='" + Order + & ......
ÎÒÓÃasp.net¿ª·¢wapÕ¾µã£¬Íê³ÉºóÈ¥http://validator.w3.org/ÕâÀïÑéÖ¤ÎÒµÄWapÒ³ÃæÊÇ·ñ±ê×¼£¬ÆäËüÎÊÌⶼ¸ÄºÃÁË£¬
¾ÍÊ£ÕâÒ»¸ö´íÎóÁË£¬°´×ÖÃæÒâ˼Àí½âÊÇ˵nameÊôÐÔÒÑ´æÔÚ£¬ÀàËÆÕâÑùµÄ´íÎó»¹Óв»ÄÜÓÃborder ,align,sizeµ ......