ASP.NET´´½¨ËõÂÔͼ
ÔÚѧϰ¹ý³ÌÖз¢ÏÖÈç¹ûÒªÉÏ´«µÄÕÕƬºÜ´óµÄ»°£¬ËٶȻáºÜÂý£¬ËùÒÔ²ÉÓÃÁËÔÚÉÏ´«ÕÕƬʱͬʱÉÏ´«ËõÂÔͼµÄ·½Ê½£¬ÕâÑù¾Í¿ÉÒԼȲ»Ó°Ïì¶à¸öͼƬµÄä¯ÀÀ£¬ÓÖ²»Ó°Ïì²é¿´¾ßÌåµÄͼƬ¡£
ÐèÒªÓõ½µÄÃüÃû¿Õ¼ä£º
using System.Drawing;
using System.IO;
using System.Drawing.Imaging;
#region ±£´æÉÏ´«Îļþ£¬·½·¨Ãû£ºUploadSave(string asFilePath, FileUpload asFileUpload)
/// <summary>
/// ±£´æÉÏ´«Îļþ
/// </summary>
/// <param name="asFilePath">±£´æµ½µÄ·þÎñÆ÷·¾¶</param>
/// <param name="asFileUpload">ÉÏ´«¿Ø¼þ</param>
/// <returns></returns>
public int UploadSave(string asFilePath, FileUpload asFileUpload)
{
int Fhz,Fhz1,Fhz2;
string FilePath = asFileUpload.PostedFile.FileName.ToString();
FileInfo myFileInfo = new FileInfo(FilePath);
string PictureName = myFileInfo.Name.ToString();
string FileExtends = null;
if (PictureName != null)
{
FileExtends = GetFileExtends(PictureName);
string BigPictureName = System.DateTime.Now.DayOfYear.ToString() + asFileUpload.PostedFile.ContentLength.ToString() + "." + FileExtends.ToString();
string SmallPictureName = "S_" + BigPictureName.ToString();
string BigPicturePath = asFilePath + BigPictureName.ToString();
string SmallPicturePath = asFilePath + SmallPictureName.ToString();
Fhz1 = PictureUpload(BigPicturePath, asFileUpload, FileExtends);
Fhz2 = Miniature(FilePath, SmallPicturePath, 130, 130);
Fhz = Fhz1 + Fhz2;
}
else
{
Ïà¹ØÎĵµ£º
Êý¾Ý°ó¶¨ÒÔ¼°Container.DataItemµÄ¾ßÌå·ÖÎö
Áé»îµÄÔËÓÃÊý¾Ý°ó¶¨²Ù×÷
°ó¶¨µ½¼òµ¥ÊôÐÔ:<%#UserName%>
°ó¶¨µ½¼¯ºÏ:<asp:ListBox id="ListBox1" datasource='<%# myArray%>' runat="server">
°ó¶¨µ½±í´ïʽ:<%#(class1.property1.ToString() + "," + class1.property2.ToString())%>
°ó¶¨µ½·½·¨·µ» ......
a. ReportViewer¹ØÁªReport1.rdlcµÄ¼òµ¥³ÊÏÖ
b. ¶Ô´øÓб¨±í²ÎÊýµÄReport1.rdlcµÄ³ÊÏÖ
c.
ÀûÓóÌʽÉú³ÉµÄDataSet Ìî³ä±¨±í
d. µ÷Óô洢¹ý³Ì Éú³ÉDataSet Ìî³ä±¨±í
==========
¼òµ¥µÄ³ÊÏÖ
==========
1. ´ò¿ªVS2005£¬Îļþ->н¨->ÍøÕ¾ Ñ¡ÔñÓïÑÔÖÖÀࣨC#£©
2. Ôڸýâ¾ö·½°¸ÏÂ
Éè¼ÆÆäÒѾÉú³ÉµÄDefault.aspx ......
1.ʲôÊÇcookie?
cookie ÊÇһС¶ÎÎı¾ÐÅÏ¢£¬°éËæÓû§ÇëÇó£¬ÔÚweb·þÎñÆ÷ºÍä¯ÀÀÆ÷Ö®¼ä´«µÝ¡£Óû§Ã¿´Î·ÃÎÊÕ¾µãµÄʱºò£¬
webÓ¦ÓóÌÐò¶¼¿ÉÒÔ¶ÁÈ¡cookie°üº¬µÄÐÅÏ¢¡£
¼ÙÉèÔÚÓû§ÇëÇóÄúµÄÍøÕ¾µÄij¸öÒ³Ãæʱ£¬ÄúµÄÓ¦ÓóÌÐò²»½öÊÇ·µ»ØÇëÇóµÄÒ³Ã档ͬʱҲ·µ»ØÒ»¸ö°üº¬ÈÕÆÚ
ºÍʱ¼äµÄcookie¡£Óû§µÄä¯ÀÀÆ÷ÔÚ»ñµÃÒ³ÃæµÄͬʱҲ»ñµÃ ......
ÎļþÉÏ´« ´ø½ø¶ÈÌõ ¶àÖÖ·ç¸ñ ·Ç³£Æ¯ÁÁ£¡
²¿·Ö´úÂ룺
<form id="form1" runat="server">
<asp:ScriptManager ID="scriptManager" runat="server" EnablePageMethods="true" />
<script type="text/javascript">
var intervalID = 0;
var progressBar;
var fileUpload;
var form;
// ½ø¶ÈÌõ
fu ......
ÉèÖÃSharpDevelop£¬Ê¹ÆäÄܱàдºÍÔËÐÐAsp.net¡£
ÔÚ¿´ÏÂÎĵÄʱºò£¬ÇëÈ·¶¨ÄúµÄϵͳװÉÏÁËIIS£¬FontPageÀ©Õ¹£¬×°ÁË.Net¿ò¼Ü¡£ºÃÏÖÔÚ¿ªÊ¼ÎҵĽ²Êö¡£
Èç¹ûÄú×°µÄ.Net¿ò¼ÜÊÇ1.1°æµÄ£¬ÇëÉú³ÉÒÔÏÂBATÎļþ¡£
Îļþ£ºAsp.Net_1.1_Setup.bat
c:
......