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

asp.net ¶ÁÈ¡Éí·ÝÖ¤Ô´Âë

Ò»°ãÀ´ËµwinformÓ¦ÓóÌÐò½â¾öÕâ¸öÎÊÌâÆðÀ´Ê±ºÜÈÝÒ׵ģ¬webÓ¦ÓóÌÐò¾ÍÂé·³Ò»µãÁË¡£ ÕâÀïÎÒ˵˵ÎҵĽâ¾ö˼·£º Ò»¡¢Äã±ØÒªÓÐÁª»úÐ;ÓÃñÉí·ÝÖ¤ÔĶÁÆ÷Ò»¸ö£¨´øÇý¶¯¹âÅÌ£©£¬ÕâÀïÎÒÓõÄÊǾ«Â×µç×Ó¹«Ë¾µÄiDR200,²¢ÓÐÕâ¸öÔĶÁÆ÷µÄ¿ª·¢½Ó¿Ú˵Ã÷¡£ ¶þ¡¢Ð½¨Ò»¸öwinform¿Ø¼þÏîÄ¿ReadCardControl£¬Ìí¼ÓÒ»¸öÖ÷ÀàReadCard 1¡¢ ÉùÃ÷dllÈë¿Ú [DllImport("Sdtapi.dll")] private static extern int InitComm(int iPort);//³õʼ»¯ [DllImport("Sdtapi.dll")] private static extern int Authenticate();//¿¨ÈÏÖ¤ [DllImport("Sdtapi.dll")] private static extern int ReadBaseInfos(StringBuilder Name, StringBuilder Gender, StringBuilder Folk, StringBuilder BirthDay, StringBuilder Code, StringBuilder Address, StringBuilder Agency, StringBuilder ExpireStart, StringBuilder ExpireEnd);//¶ÁÈ¡Êý¾Ý£¬ÍƼöʹÓà [DllImport("Sdtapi.dll")] private static extern int CloseComm();//¹Ø±Õ¶Ë¿Ú [DllImport("Sdtapi.dll")] private static extern int ReadBaseMsg(byte[] pMsg, ref int len);//¶ÁÈ¡Êý¾Ý£¬ÕâÀï²»Óà [DllImport("Sdtapi.dll")] private static extern int ReadBaseMsgW(byte[] pMsg, ref int len);//¶ÁÈ¡Êý¾Ý£¬ÕâÀï²»Óà [DllImport("kernel32.dll")] private static extern int Beep(int dwFreq, int dwDuration);//ÓÃÀ´´óºðÒ»Éù 2¡¢¶Á¿¨·½·¨ private string[] arrys = null;//ÉùÃ÷ÓÃÀ´±£´æÉí·ÝÖ¤ÐÅÏ¢µÄÊý×é public void OnTimer() { StringBuilder Name = new StringBuilder(31); StringBuilder Gender = new StringBuilder(3); StringBuilder Folk = new StringBuilder(10); StringBuilder BirthDay = new StringBuilder(9); StringBuilder Code = new StringBuilder(19); StringBuilder Address = new StringBuilder(71); StringBuilder Agency = new StringBuilder(31); StringBuilder ExpireStart = new StringBuilder(9); StringBuilder ExpireEnd = new StringBuilder(9); //int len = 0; //string[] temp; char[] param = { '\0' }; byte[] pMsg = new byte[256]; string[] baseinfo = new string[9]; //´ò¿ª¶Ë¿Ú int intOpenRet = InitComm(1001); if (intOpenRet != 1) { //SetText("ÔĶÁ»ú¾ßδÁ¬½Ó", lblMsg); return; } //¿¨ÈÏÖ¤ int intReadRet = Authenticate(); if (intReadRet != 1) { //SetText("¿¨ÈÏ֤ʧ°Ü", lblMsg); CloseCo


Ïà¹ØÎĵµ£º

ASP.NET³ö´í µ±Ç°ÉÏÏÂÎÄÖв»´æÔÚÃû³Æ"Response"

      Page.ResponseÊôÐÔÖ»ÓÐÔÚÒ³Ãæ´úÂëÖУ¬»òÕß˵Ôڼ̳Ð×Ô: System.Web.UI.PageµÄÀàÖвÅÓС£ÆäËû¼´Ê¹using System.Web.UI Ò²ÎÞ·¨Ê¹ÓÃPage.ResponseÊôÐÔ¡£·ñÔò±àÒëʱ±¨´í£ºµ±Ç°ÉÏÏÂÎÄÖв»´æÔÚÃû³Æ"Response"
      ½â¾ö·½·¨£º¿ÉÒÔÓÃSystem.Web.HttpContext.Current.Res ......

asp.net Ò³ÃæÀàÉú³É¼°´úÂëÒþ²Ø¼¼Êõ

·þÎñÆ÷¶Ë½Å±¾¿é£º
<script runat="server">
     int my = 10;
</script>
    
·ÖÉ¢µÄ½Å±¾    
<%= my.ToString() %>
<% Response.Write(my); %>
        
.aspxÎļþµÄÄÚÈݱ»½âÎöÎ ......

asp.netʵÏÖÍøÒ³ÐÅÏ¢²É¼¯µÄ¼¸µã˼¿¼

×î½ü¹«Ë¾ÐèÒª¿ª·¢Ò»¸ö¼òÀúµ¼È빦ÄÜ£¬ÀàËƲ©¿Í°á¼Ò»òÕßÓÊÏä°á¼Ò£¬Ö®Ç°×¥È¡ÐÅÏ¢ÊÇÀûÓû𳵲ɼ¯Æ÷£¬µ«ÊǼòÀúµ¼È빦ÄÜÐèÒªÓû§µÇ½ÒÔºó²ÅÄÜ»ñÈ¡¼òÀúÊý¾Ý£¬ÎÞÄÎÖ»ºÃ×Ô¼º¿ª·¢ÁË¡£
Ê×ÏÈÊÇÓöµ½µÄÎÊÌâÊÇ£ºÈçºÎʵÏÖÄ£ÄâµÇ½£¿
ÎÒÃÇÖªµÀÒ»°ãµÄÍøÕ¾¶¼ÊÇͨ¹ýCookiesÀ´Î¬»¤×´Ì¬µÄ£¬ÎÒ×¥µÄÍøÕ¾Ò²ÊÇÖ§³ÖÀûÓÃCookiesÀ´ÑéÖ¤Óû§µÄ£¬¹¹ÔìÒ»¸ö ......

ÈÃASP.Net HTMLÒ³Ãæ´úÂë ÇåˬÆðÀ´

×Ô´ÓÓÃÁË ASP.Net MVCºó¾Íϲ»¶ÉÏÁËËü £¬ÒòΪMVC¶Ô·þÎñÆ÷¿Ø¼þµÄÒÀÀµ´ó´ó¼õÉÙ£¬ËüÉú³ÉµÄHTMLÒ³Ãæ¾Í±ÈWebFormÇåˬ¶àÁË£¬¼ÓÔØËÙ¶ÈÓÐÁËÃ÷ÏԵĸÄÉÆ¡£
µ«¶ÔÓÚÒ³ÃæÖÐÄÚǶscript£¬»¹ÊDz»Äܳ¹µ×µÄ±ÜÃ⣬È磺
<script type="text/javascript" language="javascript">
//<!--
function DepositPa ......

asp.netÖÐa¿Ø¼þ´¥·¢b¿Ø¼þ·þÎñÆ÷¶Ëʼþ

ҪʵÏÖa¿Ø¼þ¿Ø¼þ´¥·¢b¿Ø¼þ·þÎñÆ÷¶Ëʼþ£¬Ðè¸øa¿Ø¼þÌí¼Ójs½Å±¾£¬ÒÔb¿Ø¼þÃûÒåÌá½»Ò³Ã棬¾ßÌå´úÂ룺
var theForm = document.forms['form1'];
theForm.__EVENTTARGET.value = "b"; //´¥·¢b¿Ø¼þ·þÎñÆ÷¶Ë·½·¨
theForm.__EVENTARGUMENT.value = "a trigger";//´«µÝµÄ²ÎÊý
theForm.submit();
×¢Ò⣺ÐèÒªÉèÖÃÒ³ÃæÊôÐÔÖÐµÄ enab ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ