Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ASP.Net ¶àͼƬÉÏ´«£¨¿ÉÑéÖ¤£©

1:¿Í»§Ò³Ãæ
 
 
 <%@ Page Language="C#" MasterPageFile="~/Admin/admin.master" AutoEventWireup="true" CodeFile="AddProductPhoto.aspx.cs" Inherits="Admin_AddProductPhoto" Title="Untitled Page" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
   
<asp:Content ID="Content1" ContentPlaceHolderID="cphAdmin" Runat="Server">
<script type="text/javascript">
var file_num=1;
function addFile() {
 if(file_num>=10) return alert("Ò»´ÎÖ»ÔÊÐíÉÏ´«10¸öÎļþ£¡");
 var temp;
 temp="<div><input type=\"file\" name=\"mfile" + (file_num+1) + "\" size=\"70\" onchange=\"mysubmit()\" />&nbsp;<button onclick=\"removeSelf(this)\">ɾ³ý</button></div>";
 var obj=document.getElementById("file_group");
 obj.innerHTML=obj.innerHTML+temp;
 file_num++;
}
function removeSelf(node) {
 var obj=node.parentNode.parentNode.removeChild(node.parentNode);
 file_num--;
}
function chkUpload(){
 var obj=document.getElementsByTagName("input");
 for (i=0;i<obj.length;i++)
 {
  if(obj[i].type=="file")
  {
   if(obj[i].value!="")
   {
    var getStr=obj[i].value.match(/\.(jpg|gif|png|bmp)$/);
    if(!getStr)
    {
     alert("Ö»ÔÊÐíÉÏ´« jpg¡¢gif¡¢png¡¢bmp ¸ñʽµÄͼƬ£¡");
     return false;
    }
   }
  }
 }//end for
 return true;
}
function mysubmit(){
 var ret=false;
 if(chkUpload()){ ret=true;}
 return ret;
}
</script>
    <br />
    <br />
    <br />
    <br />
  


Ïà¹ØÎĵµ£º

ASP.NET EditorZone Web ·þÎñÆ÷¿Ø¼þ¸ÅÊö


      Web ²¿¼þµÄÒ»ÏîÖ÷Òª¹¦ÄÜÊÇʹ×îÖÕÓû§Äܹ»¸öÐÔ»¯ÍøÒ³²¢±£´æÆä¸öÐÔ»¯ÉèÖá£ÐÞ¸Ä Web ²¿¼þÒ³µÄÒ»¸ö·½Ãæ°üÀ¨±à¼­¿É¼û WebPart ¿Ø¼þµÄÍâ¹Û¡¢²¼¾Ö¡¢ÐÐΪºÍÆäËûÊôÐÔ¡£
Web ²¿¼þ¿Ø¼þ¼¯Öеļ¸Öֿؼþ¿ÉÌṩ±à¼­¹¦ÄÜ¡£ÆäÖаüÀ¨ EditorZone ¿Ø¼þ£¬¸Ã¿Ø¼þÊÇ Web ²¿¼þ¿Ø¼þ¼¯ÖÐÓÃÓÚ³ÐÔØÍøÒ³É쵀 EditorP ......

ASP.NETµÄ¹¤×÷Ô­Àí

ASP.NETµÄ¹¤×÷Ô­Àí

ÔÚ¶àÊý³¡ºÏÏ£¬¿ÉÒÔ½«ASP.NETÒ³Ãæ¼òµ¥µØ¿´³ÉÒ»°ãµÄHTMLÒ³Ã棬ҳÃæ°üº¬±ê¼ÇÓÐÌØÊâ´¦Àí·½Ê½µÄһЩ´úÂë¶Î¡£µ±°²×°.NETʱ£¬±¾µØµÄIIS Web·þÎñÆ÷×Ô¶¯ÅäÖóɲéÕÒÀ©Õ¹ÃûΪ.aspxµÄÎļþ£¬ÇÒÓÃASP.NETÄ£¿é(ÃûΪaspnet_isapi.dllµÄÎļþ)´¦ÀíÕâЩÎļþ¡£
´Ó¼¼ÊõÉϽ²£¬ASP.NETÄ£¿é·ÖÎöASPXÎļþµÄÄÚÈÝ£¬²¢½«ÎļþÄÚÈ ......

ASP.NETÒ³Ãæˢз½·¨×ܽá

ÏÈ¿´¿´ASP.NETÒ³ÃæˢеÄʵÏÖ·½·¨£º
µÚÒ»£º
private void Button1_Click( object sender, System.EventArgs e ) { Response.Redirect( Request.Url.ToString( ) ); } µÚ¶þ£º
private void Button2_Click( object sender, System.EventArgs e ) { Response.Write( " < script language=javascript>window.locatio ......

asp.netÊý¾Ýµ¼³öµ½word

ÎÒ¾õµÃÕâ¸öÎÄÕ²»ÄÜËãÎÒµÄÔ­´´£¬ÒòΪ´úÂëÒ²ÊÇÎÒ´Ó±ðµÄµØ·½ÕÒµ½µÄ£¬¶øÇÒÎÒÔÚÍøÉϲéÁË£¬»ù±¾É϶¼ÊÇÕâÌ×´úÂë¡£
ͨÓõİÑÊý¾Ýµ¹½øword»òÕßexcel¡£ÕâÀïµÄµ¼ÈëexcelºÍÎÒ֮ǰµÄÄÇƪÎÄÕÂÖеķ½·¨ÊDz»Ò»ÑùµÄ¡£
´úÂëÈçÏ£º
aspxÒ³ÃæÖУº
<form id="form1" runat="server">
       &nbs ......

ASP.NETÎļþÏÂÔغ¯ÊýʹÓÃdzÎö

ASP.NETÎļþÏÂÔغ¯ÊýʹÓÃÊÇʲôÇé¿öÄØ£¿ÔÚÄãµÄPage_LoadÖÐÌí¼ÓÕâÑùµÄ´úÂë:
Page.Response.Clear();
bool success = ResponseFile(Page.Request, Page.Response, "Ä¿µÄÎļþÃû³Æ", @"Ô´Îļþ·¾¶", 1024000);
if (!success) Response.Write("ÏÂÔØÎļþ³ö´í£¡"); Page.Response.End();
ASP.NETÎļþÏÂÔغ¯Êý´úÂëΪ:
publi ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ