ASP.NET,AJAXÎļþÉÏ´«µÄÒÉÎÊ¡£
ASP.NET,AJAXÎļþÉÏ´«µÄÒÉÎÊ
Ô±¾ÒÔΪÓÃÕâÖÖ·½Ê½£¬°Ñ´Ë·½·¨·Åµ½Ò»¸öHttphandlerÖУ¬È»ºó´ÓJAVASCRIPT·ÃÎÊHttphandlerÀ´ÊµÏÖÎÞˢеÄÎļþÉÏ´«¡£Ã»Ïëµ½£¬ÕâÑùͬÑùÊDz»Ðеģ¬Ö»ÄÜÔÚ±¾»ú²âÊÔͨ¹ý£¬Èç¹û·Åµ½ÍøÉÏ£¬»òÕß´ÓÆäËûµØ·½·ÃÎʾͻáÌáʾÎÞ·¨ÕÒµ½Îļþ£¬¿É¼ûÔÚASP.NETÖÐËüÖ»ÄÜÓÃÓÚÉÏ´«·þÎñÆ÷¶ËµÄÎļþ¡£
֮ǰÔÚÍøÕ¾Ò²ËÑË÷µ½Ò»ÆªÎÄÕÂÊÇдÔõôÔÚHttphandlerÖÐÀ´ÊµÏÖÎļþÉÏ´«µÄ£¬ÊǹúÍâµÄÒ»¸öBLOG£¬Ã»Ôõô¿´Ã÷°×£¬Ã²ËÆ»¹½èÖúÓÚÒ»¸öapplet¡£ºóÀ´ÓÉÓÚû×ÊÔ´ÎÒҲûȥÊÔ¹ýÄÇ·½·¨µ½µ×ÊÇ·ñ¿ÉÐÐÁË¡£
ÎÒÏÖÔÚ»¹ÕæµÄ²»ÖªµÀÔÚASP.NETÔõôÄܹ»´¿ÊÖ¹¤µÄʵÏÖAJAXµÄÎÞË¢ÐÂÉÏ´«Îļþ£¬ÒòΪ´ÓJavaScript´ÓÌá½»±íµ¥·ÃÎÊHttphandler£¬ÔÚÀïÃæ¸ù±¾ÎÞ·¨»ñÈ¡µ½±íµ¥µÄÐÅÏ¢,HttpFileCollection,HttpPostedFile,ÀïÃ涼Êǿյġ£ÎÒ¾õµÃASP.NETÖеÄHttphandlerÓëJSPÖеÄServerletµ½ÓÐһЩÏàËÆÖ®´¦,¿ÉÊÇÔÚJSPÖÐÓÃServerletÀ´ÊµÏÖÒ»¸öAJAXÎÞË¢ÐÂÉÏ´«ºÜÈÝÒ×£¬ÏÖÔÚÕæµÄÓеãÀ§»óÁË£¬ÄѵÀASP.NETҪʵÏÖÎÞˢеÄÉÏ´«Ò»¶¨µÃÒªÓÃUpdatePanel¡£¶¼²»ÖªµÀ.NETµ½Ê²Ã´¶¼·â×°µ½¿Ø¼þ£¬ÎÒÃÇÖ»ÄÜÎÞÄÔµÄÍϳöÀ´Ê¹Ó㬾Ͳ»ÄÜÏñJSPÒ»Ñù£¬¶àÈÃÎÒÃdzÌÐòÔ±°´ÕÕ×Ô¼ºµÄ˼·ȥʵÏÖÒ»¸ö¶«Î÷¡£
private void Uploadfile(string filepath)
{
//string filepath = Request["filepath"].ToString();
Response.ContentType = "text/plain";
if (filepath == "" || filepath == null)
{
return;
}
else
{
FileStream fs=null;
BinaryReader br=null;
&nb
Ïà¹ØÎĵµ£º
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
string str = "123456789";
//string str1 = Eval("str").ToString ......
ÔÚ.netµÄÊÀ½çÀïµ½µ×ÓÐʲôÄØ£¿µÚÒ»¸öÊÇ.net¿ò¼Ü£¨.net Framework)£¬ÏÖÔÚ×îеÄÒѾÊÇ4.0°æ±¾ÁË£¬ºÇºÇ£¬µ«ÊÇÎÒµÄnetcmsÓõÄÊÇ2.0°æ±¾¡£µÚ¶þ¸öÊÇ.net¼¯³É¿ª·¢»·¾³£¬Ò²¾ÍÊÇÎÒÃÇƽ³£¿´µ½µÄvisual studio .net 2003 £¨2005 2008µÈ£©¡£ÊÇÓÃÀ´Ð´³ÌÐòºÍµ÷ÊÔ³ÌÐòÓõġ£µ±È»,Èç¹ûÄ㹻ţ±Æ£¬ÄãÒ²¿ÉÒÔÓüÇʱ¾ ......
ÐÂÊÖÈçºÎѧϰc#¡¢asp.net¡¢ado.netºÍ.NET
Èç¹ûÄãÒѾÓн϶àµÄÃæÏò¶ÔÏ󿪷¢¾Ñ飬Ìø¹ýÒÔÏÂÕâÁ½²½£º
µÚÒ»²½¡¡ÕÆÎÕÒ»ÃÅ.NETÃæÏò¶ÔÏóÓïÑÔ£¬C££»òVB.NET¡£
ÔÚûϵͳѧ¹ýÒ»ÃÅÃæÏò¶ÔÏó£¨OO£©ÓïÑÔµÄÇ°ÌáÏÂȥѧASP.NET¡£
ASP.NETÊÇÒ»¸öÈ«ÃæÏò¶ÔÏóµÄ¼¼Êõ£¬²»¶®OO£¬ÄǾø¶Ôѧ ......
Ç°Ò»¶Îʱ¼ä×öÁËÄ£ÄâHttpÇëÇó£¬ÄÇôÎÒÃÇÓ¦¸ÃÔõô×ö¿ÉÒÔ×èÖ¹Óû§Ä£ÄâHttpÇëÇóÁË£¬ÔÚÕâÀïÍƼöÒ»¸ö·½·¨£º¾ÍÊÇ·ÃÎÊʱ¼ä²îºÍ·ÃÎÊ´ÎÊý¡£ÎÒÃÇ°ÑÊý¾Ý·ÃÎʵÄIP´æ·Åµ½Êý¾Ý¿â£¬ÒÔ±ãÎÒÃÇÒÔºó²é¿´¡£
Ê×ÏȽ¨Á¢Êý¾Ý±íºÍ´æ´¢¹ý³Ì
CREATE TABLE [dbo].[IPAccess](
[IP] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NU ......
ÏîÄ¿Öо³£»áÓõ½°ÑexcelµÄÎļþÄÚÈݵ¼Èëµ½Êý¾Ý¿âÖеÄ,¸Õ¸Õ»¨Á˵ãʱ¼ä,×öÁ˸öÀý×Ó,»ù±¾ÉÏÄÜʵÏÖµ¼ÈëExcelºóÏÔʾµÄ¹¦ÄÜ°É,µ¼ÈëµÄexcelÎļþµÃÊÇxls,¼´ÊÇ2003µÄ.
´úÂë˼·ÈçÏÂ:Òª¶ÁÈ¡µÄexcelÎļþ±ØµÃµÃÊÇÔÚ±¾µØÓ²ÅÌ,ËùÒÔÒ»°ãÀ´Ëµ¶¼ÊÇÈÃÔ¶³ÌÓû§Ñ¡Ôñ×Ô¼ºÓ²ÅÌÉϵÄExcelÎļþ,È»ºó°ÑÓû§Ñ¡ÔñµÄÎļþÉÏ´«µ½±¾µØ· ......