asp.net ÉÏ´«ÅжÏÎļþÊÇ·ñΪͼƬ
private bool IsPicture(string filePath)//filePathÊÇÎļþµÄÍêÕû·¾¶
{
try
{
FileStream fs = new FileStream(filePath, FileMode.Open, FileAccess.Read);
BinaryReader reader = new BinaryReader(fs);
string fileClass;
byte buffer;
byte[] b=new byte[2];
buffer = reader.ReadByte();
b[0] = buffer;
fileClass = buffer.ToString();
buffer = reader.ReadByte();
b[1]=buffer;
fileClass += buffer.ToString();
reader.Close();
fs.Close();
if (fileClass == "255216 ")//255216ÊÇjpg;7173ÊÇgif;6677ÊÇ
Ïà¹ØÎĵµ£º
ÓкܾÃÒ»¶Îʱ¼äÎÒµÄBLOGÉÏûÓгöÏÖAJAXÏà¹ØÑ¶Ï¢ÁË£¬Ö÷Òªµ±È»ÊÇÒòΪ¾ø´ó²¿·ÖµÄÖØÐͼ·Åµ½ÁËSilverlightÉíÉÏ(¿ÉÔ¤ÆÚµÄδÀ´Ó¦¸ÃÒ²»áÊÇÈç´Ë)¡£
µ«ÓÉÓÚ¹¤×÷ÉϵÄÐèÒª£¬×î½ü»¹ÊÇ»ØÍ·¿´ÁËһϼ´½«ÍƳöµÄASP.NET Ajax Library...£¬Ë³±ãÕÒÁËÒ»ÏÂÍøÂçÉϵÄѶϢ£¬¿´Õâ¸öÌ¬ÊÆÎÒ²ÂÏëÓ¦¸Ã²»ÉÙASP.NET¿ª·¢ÈËÔ±ºöÂÔµôÁËÕâ¸öÆäʵÒѾbet ......
ѧϰASP.NET-³õ̽Application״̬ - ÉÏһƪ¡¶Ç³Ì¸TeeChart×é¼þÔÚASPÖеÄÓ¦Óá·ÏÂһƪ¡¶ÓÃIS6½øÐÐASPÈí¼þµÄ´ò°üºÍ×Ô¶¯°²×°(²¹³ä)¡·×ÖÌå: С|ÖÐ|´ó ¼ò|·±¾«²ÊÍÆ¼ö asp.netÖеÄapplicationÊý×é Asp.netÖÐapplication¶ÔÏóÎÊÌ⣿ÇëÇó.netѧÕßÖ¸µã…… °²×°Asp.net 2.0·þÎñÆ÷³öÏÖServer Application Unavailable ASP. ......
ASP.NETÊÇĿǰ¿ª·¢WebÓ¦ÓõÄÒ»ÖÖȫз½Ê½¡£±¾ÊéµÚl¡¢2Õ½éÉÜÁËASP.NETµÄһЩ»ù±¾¸ÅÄîºÍ»ù±¾Óï·¨¡£ÆäÓàÕ½ÚÖ÷ÒªÊǶԸ÷ÖÖʾÀý½øÐÐÏêϸ·ÖÎö¡£½éÉÜÁ˸÷ÖÖASP.NETµÄ½â¾ö·½°¸£¬°üÀ¨´´½¨»¥¶¯Ê½ÄÚÁªÍøÓ¦ÓóÌÐò¡¢´´½¨ÌåÓýÕ¾µã¡¢´´½¨ÈËÁ¦×ÊÔ´Ó¦Óᢴ´½¨ÔÚÏßÅÄÂôÕ¾µãµÈ¡£Í¨¹ýÕâЩʵÓõĽâ¾ö·½°¸µÄѧϰ£¬¶ÁÕß¼ÈÄܵõ½ºÜ¶àʵÓõĴúÂë£¬Ó ......
ÐèÒªÒýÓõÄÀàÃû¿Õ¼ä
using System.Security.Cryptography;
using System.IO;
using System.text;
/// <summary>
/// ¼ÓÃÜ
// ......
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.OleDb;
/// <summary>
/// Data ......