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

ÓÃC#Éú³ÉWAPÒ³Ãæ½éÉÜ

ÊÖ»úÉÏÍøÔ½À´Ô½ÆÕ¼°£¬ÊÖ»úÖÖÀàÔ½À´Ô½¶à£¬Òª¿ª·¢Ò»¸ö¹©ÊÖ»ú·ÃÎÊÍøÕ¾²¢¼æÈÝËùÓв»Í¬ÀàÐ͵ÄÊÖ»úºÍä¯ÀÀÆ÷ÊǺܲ»ÈÝÒ׵ģ¬±±¾©Ê¦·¶´óѧ×ÔÏ°ÊÒ²éѯƽ̨µÄÊÖ»ú°æ×î³õÊÇÖ±½ÓÓÃASP.NETʵÏֵģ¬Ö»ÊÇÓÃCSS¶¨Òå³ÉÁËÊʺÏÊÖ»úÆÁÄ»µÄÒ³Ã棬ËäȻͬѧÃÇ·ÃÎÊ»ù±¾Ã»ÓÐÎÊÌ⣬µ«ÊÇҲż¶û»áÓГ²»ÄÜÑ¡ÔñÏÂÀ­²Ëµ¥”¡¢“°´Å¥button²»Äܵã»÷”ÕâÑùµÄÎÊÌ⣬ºóÀ´ÏëÁËÏ룬²¢²»ÊÇÿ¸öÊÖ»ú¶¼ÄܺܺõÄÖ§³ÖHTMLºÍCSS£¬UCWEBÔòÊǾ­¹ýÆäµÚÈý·½´úÀí´¦ÀíÁËHTMLÁ÷£¬ÒÔѹËõÒ³Ãæ´øÀ´Á÷Á¿½ÚÊ¡¡£
¡¡¡¡ÓÚÊÇÎÒ¾ö¶¨Óô¿WAPµÄ·½Ê½ÊµÏÖ×ÔÏ°ÊÒ²éѯƽ̨£¬ÒòΪÀÏÊÖ»ú¼´Ê¹²»Ö§³ÖWAP2.0£¬µ«ÊÇÒ»¶¨ÊÇÖ§³ÖWAP1.1µÄ£¬¼´×î×ͳµÄWML1.1£¬ËäÈ»ÏÖÔÚWAP2.0ÊÇÇ÷ÊÆ£¬µ«ÊÇÎÞ·¨±ÜÃâµÄÊÇ×ÜÓÐÄÇôһЩä¯ÀÀÆ÷²»ÄܺܺõÄÖ§³Ö£¡
¡¡¡¡WAP1.1ÊÇÊ®ÄêÇ°µÄ¼¼ÊõÁË£¬ÒòΪÀÏ£¬ËùÒÔ¼¸ºõÿ¸öÊÖ»ú¶¼Ö§³Ö£¬²»¹ÜÊDzÊÆÁ»¹ÊǺڰ×ÆÁ£¬Ö»ÒªÄÜÉÏÍø£¬Ò»°ã¶¼ÄÜÕýÈ·ÏÔʾ£¬ÓÚÊÇ¿ªÊ¼Ñ§Ï°Õâ¸öËäÀϵ«ÊÇÈÔÈ»½¡×³µÄÓïÑÔ£¡
¡¡¡¡ÒòΪÓй®¹ÌµÄXHTMLºÍXML»ù´¡£¬WML1.1ѧÆðÀ´·Ç³£ÈÝÒ×£¬ÎÒÖ±½ÓÔÚW3SHCOOLÉÏ¿´µÄ²Î¿¼½Ì³Ì£¬ÕâÀï¾Í²»¶à˵wmlÓï·¨µÄϸÔòÁË£¬ÒòΪhttp://www.w3school.com.cn/wap/index.aspÀïдµÃ·Ç³£Çå³þÁË£¡
¡¡¡¡²»Ì«Ï°¹ßµÄÊÇWML1.1Àï¿ÉÓõıêÇ©ÕæµÄºÜÉÙ£¬ËùÓÐÎÄ×Ö¶¼Òª·ÅÔÚ¶ÎÂä±ê¼Ç
ÀïÃ棬ֱ½Ó±àдһ¸öWMLÎļþȱ·¦¶¯Ì¬ÐÔ£¨Ö»ÓÐÉÙÁ¿±äÁ¿ºÍʼþ£©£¬ÓÚÊÇÎÒÑ¡ÔñÁËÓÃASP.NETÒ³Ã涯̬Éú³ÉWMLµÄ·½Ê½£¬¼´Ã¿Ò»´ÎÇëÇó£¬ÏìÓ¦ContentTypeΪWML¼´¿É£¬±ÈÈçÎÒÃÇн¨Ò»¸öWEB´°Ìåindex.aspx
¡¡¡¡ÔÚindex.aspxÖÐɾȥ³ýÁË×îÉÏÃæÒ»ÐеÄËùÓÐÄÚÈÝ£¬¼´Ö»Ê£
¡¡¡¡È»ºóÔÚindex.aspx.csÀïÉèÖÃ
Response.ContentType = "text/vnd.wap.wml;charset=UTF-8";
¡¡¡¡ÕâÑùä¯ÀÀÆ÷¿´µ½Õâ¾ä»°£¬¾ÍÖªµÀÏìÓ¦µÄÒ³ÃæÊÇwmlµÄ¡£½ÓÏÂÃæÐèÒªÊä³öʵ¼ÊµÄÒ³ÃæÄÚÈÝ£¬Ã¿Ò»¸öwml1.1ÊÇÒ»¸ö±ê×¼µÄxmlÎļþ£¬ËùÒÔÔÚÊä³öµÄʱºòÒ»¶¨Òª×ñÑ­xmlµÄÓï·¨£¬Ò»µã²î´í£¨±ÈÈç±êǩûÓбպϣ¬±êÇ©±ÕºÏ´í룩¶¼²»ÔÊÐí¡£
¡¡¡¡Êä³öwmlÉùÃ÷£º
Response.Write("<?xml version=\"1.0\"?>\r\n");
¡¡¡¡Êä³öwmlÄÚÈÝ£º
Response.Write("
Hello Wap1.1
");
¡¡¡¡ÕâÑù¾ÍÄÜÔÚÊÖ»úÉÏÏÔʾHello Wap1.1µÄ×ÖÑù£¬ºÜ¼òµ¥°É£¡ÕâÑù¶¯Ì¬Éú³ÉµÄºÃ´¦¾ÍÊÇÄÜ×ÔÓɱà³Ì£¬¶¯Ì¬ÏÔʾÐèÒªÏÔʾµÄÄÚÈÝ£¡ËäÈ»wml1.1ÒѾ­Êdz¾ɵļ¼Êõ£¬µ«ÊÇÅäºÏÇ¿´óµÄC#ºÍASP.NET»òÕßÆäËû±à³ÌÓïÑÔ£¬»¹ÊÇ¿ÉÒÔÖÆ×÷³öºÜºÃµÄÒ³ÃæµÄ¡£
¡¡¡¡²»¹ý£¬wap2.0ÊÇÇ÷ÊÆ£¬ÒòΪwap2.0ºÍÈç½ñµÄHTMLºÜÏñ£¬×ñÑ­±ê×¼µÄXHTMLÓï·¨£¬¶øÇÒÖ§³ÖCSSÑùʽ¶¨Òå£


Ïà¹ØÎĵµ£º

C# ¿ìËٹػú´úÂë

½ñÌìÓõ½Õâ¸ö£¬ÍøÉÏÕÒ¸ö²»´íµÄ£¬±£´æÏÂÀ´¡£
×¢Ò⣺Õâ¸ö·½·¨ÊÇ¿ìËٹػú£¬²»»á±£´æÄãµÄÈκÎδ±£´æÐÅÏ¢¡£
// Õâ¸ö½á¹¹Ì彫»á´«µÝ¸øAPI¡£Ê¹ÓÃStructLayout
[StructLayout(LayoutKind.Sequential, Pack = 1)]
internal struct TokPriv1Luid
{
public int Count;
public ......

c#²Ù×÷Excel һЩÎÊÌâ ×Ö·û±äΪnull½â¾ö·½·¨


C#¶ÁÈ¡ExcelÓöµ½ÎÞ·¨¶ÁÈ¡µÄ½â¾ö·½·¨£º
1.ÔÚµ¼ÈëÊý¾ÝÁ¬½Ó×Ö·û´®ÖУ¬½«IMEX=1¼ÓÈ룬“Provider=Microsoft.Jet.OLEDB.4.0;Data Source="C:\Data.xls";Extended Properties="Excel 8.0;HDR=Yes;IMEX=1; ”£¬ÕâÑù¾Í¿ÉÒÔ¡£
C#¶ÁÈ¡ExcelÐèҪעÒâµÄ£º
IMEX=1£º»ìºÏģʽ
HDR=Yes; ÊÇ·ñÈõÚÒ»ÐÐ×÷ΪÁÐÍ·
Á½Õß±ØÐëÒ»Æ ......

C# »Ø¹ö

 private void save_db(){
    SqlConnection conn = new SqlConnection(ConfigurationSettings.AppSettings[""].ToString());
    SqlCommand comm = new SqlCommand();
    conn.Open();
    SqlTransaction rollbk2= conn.BeginTransaction();
& ......

C#»ùÓÚTCPµÄSocketͨÐÅ


   
TCPЭÒéÊÇÒ»¸ö»ù±¾µÄÍøÂçЭÒ飬»ù±¾ÉÏËùÓеÄÍøÂç·þÎñ¶¼ÊÇ»ùÓÚTCPЭÒéµÄ£¬ÈçHTTP£¬FTPµÈµÈ£¬ËùÒÔÒªÁ˽âÍøÂç±à³Ì¾Í±ØÐëÁ˽â»ùÓÚTCPЭÒéµÄ±à
³Ì¡£È»¶øTCPЭÒéÊÇÒ»¸öÅÓÔÓµÄÌåϵ£¬Òª³¹µ×µÄŪÇå³þËüµÄʵÏÖ²»ÊÇÒ»ÌìÁ½ÌìµÄ¹¦·ò£¬ËùÐÒµÄÊÇÔÚ¡£net
framework»·¾³Ï£¬ÎÒÃDz»±ØҪȥ׷¾¿TCPЭÒéµ×²ãµÄʵÏÖ£¬Ò»Ñù ......

Sandcastle Ç¿´óµÄC#ÎĵµÉú³É¹¤¾ß

 
     ×î½ü¿Í»§Ë÷Òª²úÆ·µÄ¶þ´Î¿ª·¢Àà¿âÎĵµ,ÓÉÓÚ¿ª·¢¹ý³ÌÖв¢Ã»Óп¼Âǹý´ËÀàÎĵµ,¶øÇÒÏîÄ¿¹æ·¶±È½Ï£¬³ÖÐøʱ¼ä±È½Ï³¤£¬¾­ÊÖÈ˱Ƚ϶࣬»¹ÕæÊÇÂé·³,Èç¹ûÈ˹¤ÖÆ×÷ÎĵµÐèÒªÊÇÒ»¸ö±È½Ï´óµÄ¹¤³Ì.»¹ºÃÓÐÕâ¸öÎĵµÉú³É¹¤¾ß,Äܹ»¸ù¾ÝÏîÄ¿Éú³ÉÎĵµ,¶øÇÒ¸ñʽ¿´ÆðÀ´È·ÊµºÜרҵ.
     Sa ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ