Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ASP.NET Ìá½»±íµ¥·½Ê½·¢ËÍÊÖ»ú¶ÌÐÅ

        string FormURL = "http://10.45.19.80:8080/easysendok.jsp";
        //±íµ¥ÐèÒªÌá½»µÄ²ÎÊý
        //sendobj ²ÎÊýΪ½ÓÊÕ¶ÔÏó£¨ÊÖ»úÓû§£©£»sendTextΪ¶ÌÐÅÄÚÈÝ 
        string FormData = " user_id1 =12312&password=123&login_name=test&user_name=12312&destaddr=" + sendobj + "&userdata=" + sendText + "";  //¸ù¾ÝÄãµÄʵ¼ÊÇé¿ö£¬·ÖÎöpost ±íµ¥¼´¿É¡£
       Encoding encoding =Encoding.GetEncoding("GBK");//ÓÃGBK±àÂ뷽ʽ£¬²»È»·¢ËͶÌÐŲ»Ö§³ÖÖÐÎÄ
       byte[] data = encoding.GetBytes(FormData);
        HttpWebRequest request = (HttpWebRequest)WebRequest.Create(FormURL);
        //Êý¾ÝÌá½»·½Ê½
        request.Method = "POST";
        request.ContentType = "application/x-www-form-urlencoded";
        request.ContentLength = data.Length;
        request.ContentLength = FormData.Length;
        request.UserAgent = "Mozilla/4.0 (compatible; MSIE 6.0; Windows Server2003 R2; SV1; .NET version 2.0.50727)";//Ä£ÄâÒ»¸öUserAgent
        Stream newStream = request.GetRequestStream();
        newStream.Write(data, 0, data.Length);
        newStream.Close();
         HttpWebResponse response = (HttpWebResponse)request.GetResponse();
        string header = response.ResponseUri.ToString();//È¡µÃ·µ»ØURL
        if (header.IndexOf("false") >= 0)
       


Ïà¹ØÎĵµ£º

ÈçºÎ¿ªÊ¼ASP.NET

    ÓÃASP.NETÓÐÒ»¶Îʱ¼äÁË£¬µ«×ܾõµÃ»¹ÊÇÒ»Ö±¸¡ÓÚ±íÃ棬¶Ô¿Ø¼þ¿ª·¢ÖªÖ®ÉõÉÙ£¬¹Ê½üÆÚ¿ªÊ¼¶ñ²¹Õâ·½ÃæµÄÄÚÈÝ¡£ÒªÅÜÌâÁË£¬»¹ÊÇÏȻعËÒ»ÏÂÓ¦¸ÃÈçºÎÉÏÊÖASP.NET£¬¸ø¸Õ¿ªÊ¼½Ó´¥ËüµÄͬ־һµãÖ¸Òý£º
    1¡¢ÅªÇå³þʲôÊÇ.NET£ºËµ°×ÁËËü¾ÍÊÇÒ»Ì׿ؼþ°ü£¬Ò»°ã±»Ëµ³É¿ò¼Ü£¬ÀàËÆÓÚMFC»òÕßDELPHIµÄVCLµÈµ ......

¹ØÓÚASP.NETÒ³Ãæ´òÓ¡¼¼ÊõµÄ×ܽá

¹ØÓÚASP.NETÒ³Ãæ´òÓ¡¼¼ÊõµÄ×ܽá
     B/S½á¹¹µ¼ÖÂÁËWebÓ¦ÓóÌÐòÖдòÓ¡µÄÌØÊâÐÔ¡£
¡¡¡¡• ³ÌÐòÔËÐÐÔÚä¯ÀÀÆ÷ÖУ¬´òÓ¡»úÔÚ±¾µØ£¬¶øÎļþÈ·¿ÉÄÜÔÚ·þÎñÆ÷ÉÏ£¬µ¼ÖÂÁË´òÓ¡¿ØÖƲ»ÊǺÜÁé»î¡£
¡¡¡¡• ¸ñʽÈçºÎ¿ØÖƺͶ¨ÖƵȣ¬ÊÇÎÒÃÇ¿ª·¢ÖпÉÄÜ»áÃæ¶ÔµÄÎÊÌâ¡£
¡¡¡¡´òÓ¡ÎĵµµÄÉú³É
¡¡¡¡• 1¡¢ ......

ÈçºÎÔÚASP.NETÒ³ÃæÖÐǶÈëWINFORM¿Ø¼þ¶þ

Ô­ÎÄ£ºÁõÎä|ÈçºÎÔÚASP.NETÒ³ÃæÖÐǶÈëWINFORM¿Ø¼þ¶þ
ÉÏһƪ½éÉÜÁËÔÚASP.NETÒ³ÃæÖÐǶÈëWINFORM¿Ø¼þµÄ»ù±¾·½·¨£¬±¾Æª»á¾Ù¸öÉÔ΢¸´ÔÓµÄÀý×ÓÀ´ËµÃ÷ÈçºÎÔÚÒ³ÃæÖе÷ÓÃWINFORM¿Ø¼þµÄÊôÐԺͷ½·¨¡£
Ò» н¨ÏîÄ¿ Liuw.Net.WindowsControlLibrary£¬²¢Ìí¼ÓWINDOWSÓû§¿Ø¼þ MyControl1
¶þ ¸ø¿Ø¼þ MyControl1 Ìí¼ÓÊôÐԺͷ½·¨£º
C#-Co ......

Asp.Net³£ÓÃJavaScript·â×°(ת)

using System;
      using System.Text;
      using System.Data;
      using System.Configuration;
      using System.Web;
      using System.Web.Security;
 & ......

asp.net²Ù×÷ÅäÖÃÎļþ

 ÓÉÓÚÏîÄ¿ÖжദÐèÒª¶ÔÅäÖÃÎļþ½øÐвÙ×÷£¬ÈçÅäÖÃÐÅÏ¢µÄ¶ÁÈ¡¡¢¸ü¸ÄºÍдÈ룬ÐèÒªÒ»¸öͨÓõÄÀàÀ´¶ÔÆä½øÐвÙ×÷ºÍ´¦Àí¡£Õâ´ÎµÄÈÎÎñ¾ÍÊÇÅäÖýڵÄһЩÓ÷¨¡£
       Õâ´ÎÉý¼¶ºóµÄ¿ª·¢¹¤¾ßÊÇ»ùÓÚVS2005µÄ£¬·ÖÎöÁËVS2005 ÐÂÔöµÄһЩ¹¦ÄÜ£¬Ëü×Ô´øÁËÒ»Ì×ÅäÖÃÎļþÖнáµãµÈµÄÅäÖá£Ä¿Ç°µÄÏîÄ¿ÓõÄÅä ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ