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ÊÇ
Ïà¹ØÎĵµ£º
asp.net session ½éÉÜÒ»ÈýÖÖSession´æ´¢·½Ê½
www.firnow.com¡¡Ê±¼ä£º2009-03-04¡¡×÷Õß:ÄäÃû ±à¼:sky µã»÷£º¡¡1478 [ÆÀÂÛ]
¶ÔÓÚasp.netµÄ³ÌÐòÀ´Ëµ£¬sessionÊÇÒ»¸ö±ØÐèÒªÁ˽âµÄ¶ÔÏó¡£
ÏÂÃæ¾Í¶Ôsession×öÒ»¸ö¾ßÌå½éÉÜ¡£
¼òµ¥À´Ëµ£¬Session¾ÍÊÇ·þÎñÆ÷¸ø¿Í»§¶ËµÄÒ»¸ö±àºÅ£¬µ±Ò»Ì¨web·þÎñÆ÷ÔËÐÐʱ£¬¿ÉÄÜÊÇÓжà¸öÓû§¶¼ÔÚä¯ÀÀ ......
ASP.NETÓ¦ÓóÌÐòÉè¼ÆµÄ10´ó¼¼ÇÉ [ ASP.NETÓ¦ÓóÌÐòÉè¼ÆµÄ10´ó¼¼ÇÉ | ÔðÈαà¼: 51»¶ÀÖ°É - ¹ØÌÎ | 2007-09-25 10:38:16 ]
µ÷Õû×ÖÌå´óС: ´ó | ÖÐ | С
ÉùÃ÷:ÈçÓÐÉæ¼°µ½·¨ÂÉÏà¹ØÎÊÌâ,Ç뼰ʱÓë¹ØÌÎÁªÏµ! QQ:364586868 ÁªÏµQQ
--------------------------------------------------------------------------------
Ô ......
µ¼³öµ½excelµÄ·½·¨ÓжàÖÖ£¬±È½Ï³£¼ûµÄÊÇÖ±½Óµ¼³öµ½EXCEL,»¹ÓоÍÊÇÏȽ«Ò³ÃæµÄÊý¾Ýдµ½´ÅÅÌÎļþ£¬Ö®ºóÖ±½ÓÔÙ´ò¿ªÎļþ£¬ÁíÍ⻹ÓоÍ
ÊǽèÖúµÚÈý·½µÄ¿Ø¼þ¡£
ǰ¶Îʱ¼äдµÄµ¼³öÊý¾Ýµ½excelÔÚexcel2003ÖÐÕý³£¶øÔÚexcel2007ÖÐÊý¾ÝÂÒÂ룬½ñÌìÁ˽⵽ÔÀ´ÊÇResponse.ContentType = "application/ms-excel";µ¼Ö ......
Page.ClientScript.RegisterStartupScript(Page.GetType(), "message", "<script language='javascript' defer>alert('¼ÓÈëÔÝ´æ¼Ü³É¹¦£¡');</script>");
asp.net¼òµ¥¼ÓÃÜ
//using System.Web.Security;
System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfig ......
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 ......