asp.netÎļþÉÏ´«´úÂë\Êý¾Ý¿âÇÉÃîÁ¬½Ó
public class Up_Loadcs
{
public string[] Resup={"ÉÏ´«Ê§°Ü»òÖ¸¶¨µÄÎļþ²»´æÔÚ","ͼƬ´óÓÚ10K£¬ÖØÐ´«Í¼Æ¬£¡","¸ñʽ²»¶Ô£¬ÏÞÖÆÉÏ´«£¨Ö»ÔÊÐígif/jpg¸ñʽÎļþ£©£¡","ÉÏ´«³É¹¦£¡"};
public string s = string.Empty;
public string Up(System.Web.UI.HtmlControls.HtmlInputFile File2,string Pa)
{
//
// TODO: ÔÚ´Ë´¦Ìí¼Ó¹¹Ô캯ÊýÂß¼
//
if (File2.PostedFile.ContentLength.ToString() == "0")
{
return "0";
}
else
{
//»ñÈ¡ÎļþÃû³Æ
string ss ;
ss =System.DateTime.Now.ToString().Replace("-","").Replace(" ","").Replace(":","")+Path.GetExtension(File2.PostedFile.FileName);
if (File2.PostedFile.ContentLength/1024>10)
{return "1";}
else
{
string ty=File2.PostedFile.ContentType;
if (ty=="image/gif"||ty=="image/pjpeg")
{
File2.PostedFile.SaveAs(System.Web.HttpContext.Current.Server.MapPath(Pa) + ss);
s= ss;
Ïà¹ØÎĵµ£º
ASP.NET¶ÔÇëÇó´¦ÀíµÄ¹ý³Ì
µ±ÇëÇóÒ»¸ö*.aspxÎļþµÄʱºò£¬Õâ¸öÇëÇó»á±»inetinfo.exe½ø³Ì½Ø»ñ£¬ËüÅжÏÎļþµÄºó׺£¨aspx£©Ö®ºó£¬½«Õâ¸öÇëÇóת½»¸ø ASPNET_ISAPI.dll£¬ASPNET_ISAPI.dll»áͨ¹ýhttp¹ÜµÀ£¨Http PipeLine£©½«ÇëÇó·¢Ë͸øASPNET_WP.exe½ø³Ì£¬ÔÚASPNET_WP.exe½ø³ÌÖÐͨ¹ýHttpRuntimeÀ´´¦ÀíÕâ¸öÇëÇ󣬴¦ÀíÍê±Ï½«½á¹û·µ»Ø ......
FCKeditor ÔÚASP.Net ÖеÄʹÓÃ˵Ã÷
[ 2008-7-23 23:41:00 | By: »ª×Ó ]
2
ÍÆ¼ö
FCKeditor ÊÇÒ»¸öÔËÐÐÔÚä¯ÀÀÆ÷É쵀 Java Ó¦ÓóÌÐò¡£Ëû¿ÉÒÔ²»ÒÀÀµÈκηþÎñÆ÷¶ËÓïÑÔÔËÐС£²»¹ý£¬¸üºÃµÄʹÓ÷½·¨ÊÇÄãʹÓÃÒ»ÖÖ·þÎñÆ÷¶ËÓïÑÔÀ´µ÷ÓÃËû¡£
ÔÚASP.Net ÖУ¬ÓÐÒ»¸öÏֳɵŤ¾ß°ü¿ÉÒÔÈÃÄã°Ñ FCKeditor ×÷Î ......
If you come to ASP.NET MVC from a purely ASP.NET Web Forms background, one of the first things you are likely to notice is that all those nice easy Server Controls have disappeared. One of those is the FileUpload, and its absence seems to cause a few problems. This article looks at how to upload f ......
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
  ......
×ªÔØÒ»Æª¹ØÓÚASP.NETÒ³ÃæÉúÃüÖÜÆÚÎÄÕÂ,ÓбØÒªÁ˽âÒÅÒ»ÏÂÒ³Ãæ³õʼ¹ý³Ìµ½µ×ÊÇÔõôÑùµÄ
ÏÂÃæÊÇASP.NETÒ³Ãæ³õʼµÄ¹ý³Ì:
1. Page_Init();
2. Load ViewState;
3. Load Postback data;
4. Page_Load();
5. Handle control events;
6. Page_PreRender();
7. Page_Render();
8. Unload event;
9. Dispose method called;
......