asp.netѹËõÎļþÀà
½ñÌìÑо¿ÁËÒ»ÏÂÔÚasp.netÏÂÓÃC#ÓïÑÔѹËõÎļþ£¬ºÍ½âѹÎļþ£¬ÔÚÍøÉϺÃÁ˺þòÅÕÒµ½Ô´´úÂ룬£¬Õæ²»ÈÝÒ×°¡£¡£¡
ÔÚ ASP.NET ÖÐÓÐÁ½¸öÀࣺDeflateStream ºÍ GZipStream ÓÃÓÚ´¦ÀíѹËõºÍ½âѹËõ£¬ÕâÁ½¸öÀà·Ö±ðʹÓõÄÊÇ DEFLATE ºÍ gzip ѹËõËã·¨£¬ÕâÁ½¸öËã·¨±»Ò»Ð©Ñ¹ËõÈí¼þÖ§³Ö£¬±ÈÈç WinRAR ¾ÍÖ§³Ö gzip¡£ÕâÁ½¸öÀàµÄÃû³Æ¿Õ¼ä¾ùΪ£º
System.IO.Compression
ÕâÁ½¸öÀàÔÚÓ¦ÓÃÉÏÍêÈ«Ò»Ö£¬ËùÒÔÎÒÃDZ¾½ÚÖ»½²½âÆäÖÐÒ»¸öÀàµÄÓ÷¨£¬ÒªÊ¹ÓÃÁíÒ»¸öÀֻ࣬ÐèÒª°ÑÔ´´úÂëÖеÄÀàÃû³ÆÌæ»»¾Í¿ÉÒÔÁË¡£
ѹËõ²½Ö裺ÍùѹËõÁ÷ÖÐдÈëδѹËõµÄÊý¾Ý->¹Ø±ÕѹËõÁ÷->´ÓÄÚ´æÁ÷ÖжÁȡѹËõÁ˵ÄÊý¾Ý
½âѹ²½Ö裺ÍùÄÚ´æÁ÷ÖÐдÈëѹËõÁ˵ÄÊý¾Ý->´ÓѹËõÁ÷ÖжÁÈ¡½âѹÁ˵ÄÊý¾Ý¡£
¿ÉÒÔ¿´µ½Ñ¹ËõÁ÷£¨DeflateStream »ò GZipStream£©ÓëδѹËõ»ò½âѹÁ˵ÄÊý¾Ý´ò½»µÀ£¬¶øÄÚ´æÁ÷£¨MemoryStream£©ÓëѹËõÁ˵ÄÊý¾Ý´ò½»µÀ¡£
ѹËõ´úÂ룺
//ÎļþÁ÷
FileStream reader;
reader = File.Open("D:\\foo.txt", FileMode.Open);
FileStream writer;
writer = File.Create("D:\\dest.gzip");
//ѹËõÏà¹ØµÄÁ÷
MemoryStream ms = new MemoryStream();
GZipStream zipStream = new GZipStream(ms, CompressionMode.Compress, true);
//ÍùѹËõÁ÷ÖÐдÊý¾Ý
byte[] sourceBuffer = new byte[reader.Length];
reader.Read(sourceBuffer, 0, sourceBuffer.Length);
zipStream.Write(sourceBuffer, 0, sourceBuffer.Length);
//Ò»¶¨ÒªÔÚÄÚ´æÁ÷¶Áȡ֮ǰ¹Ø±ÕѹËõÁ÷
zipStream.Close();
 
Ïà¹ØÎĵµ£º
//ExcelÅúÁ¿µ¼Èëµ½Êý¾Ý¿â
protected void btnUpload_Click(object sender, EventArgs e)
{
string IsXls = System.IO.Path.GetExtension(UploadExcel.FileName.ToString().ToLower ......
ASP.NET Cookies¼òµ¥Ó¦Óà ¼ÇסÓû§ÃûºÍÃÜÂë
ASP.NET Cookies¼òµ¥Ó¦Óà ¼ÇסÓû§ÃûºÍÃÜÂë
2009-06-11 22:45
±¾ÎÄת×Ôhttp://www.cnblogs.com/wayne-ivan/archive/2008/12/18/1357628.html
²»ÒªÊÔͼ¸øPasswordÀàÐ͵ÄTextBox¸³Öµ!
ÔÚasp.netÖУ¬²»ÒªÊÔͼ¸øPasswordÀàÐ͵ÄTextBox¿Ø¼þ¸³Öµ! ÎÞÂÛÊÇÔÚÉè¼Æ»òÊÇÔËÐÐʱ ......
À´Ô´£ºhttp://www.ej38.com/showinfo/asp.net-180538.html
1. DotNetNuke(ASP.NET 2.0) ¸öÈËÍƼöÉîÈëÑо¿
DotNetNukeÊÇÒ»¸öWebÓ¦Óÿò¼ÜµÄÀíÏë,Ϊ´´½¨ºÍ²¿ÊðµÄÏîÄ¿,ÈçÉÌÒµÍøÕ¾,ÆóÒµÄÚÁªÍøºÍÍâÁªÍø,ÔÚÍøÉϳö°æÃÅ»§,²¢¶¨ÖÆ´¹Ö±Ó¦ÓÃÈí¼þ¡£ ·½±ãÓû§-DotNetNukeÖ¼ÔÚʹÓû§¿ÉÒÔ¸üÇáËɵعÜÀíËùÓз½ÃæµÄÏîÄ¿¡£
ÏÂÔØÍøÖ·:http:// ......
±í¼ò½à
"¹«½»Ïß·Êý¾Ý¿â"
ÓõÄsqlÊý¾Ý¿â
admin±í
username
password
admin
admin
busroute ±í
³µ´Î
stop-name-id
Õ¾´Î
Ʊ¼Û
68
4
1
1
34
5
6
1.5
25
6
3
2
Õ¾µã±í
id
stop-name
1
»ð³µÕ¾
³µ´Î±í
id
³µ´Î
1
1
Èç¹ûÒªÓûùÓÚvb.netµÄasp.net±à³Ì
µÇ½µÄʱºò¸ÃÔõô±à³Ì°¡,Êý¾Ý¿âÊÇÓÃsql× ......
ASP.NETµÇ½¿Ø¼þ±È½Ï¶à£¬·â×°Á˴󲿷ÖWEBÓ¦ÓÃÖÐҪʵÏÖϵͳµÇ½µÄϵÁй¦ÄÜ£¬Éæ¼°µ½ºÜ¶à·½Ãæ¡£ÖÚ¶à ASP.NET µÇ¼¿Ø¼þÒ»ÆðΪ ASP.NET Web Ó¦ÓóÌÐòÌṩ¿É¿¿µÄÎÞÐè±à³ÌµÄµÇ¼½â¾ö·½°¸¡£Ä¬ÈÏÇé¿öÏ£¬µÇ¼¿Ø¼þÓë ASP.NET ³ÉÔ±×ʸñºÍ Forms Éí·ÝÑéÖ¤¼¯³É£¬ÒÔ°ïÖúʹÍøÕ¾µÄÓû§Éí·ÝÑéÖ¤¹ý³Ì×Ô¶¯»¯¡£Ä¬ÈÏÇé¿öÏ£¬ASP.NET µÇ¼¿Ø¼þÒÔ´¿ ......