ÔÙ´ÎÇóÖú£¡asp.netÒýÓÃÍⲿDLLÎÊÌâ
ÎÒÓиöÍⲿµÄycode.dll£¬ÎÒÔÚasp.net ÖоÍÊÇÒýÓò»ÁË£¬µ¯³ö´íÎóµÄ¶Ô»°¿ò£¬ËµÊÇÕÒ²»µ½¸Ãdll¡£ÎÒÔÚÍøÉÏÕÒÁËÒ»´ó¶Ñ×ÊÁÏ£¬Ò²¶¼ÊÔÁË£¬¾ø¶Ô·¾¶£¬ÉõÖÁ·ÅÔÚϵͳsystem32 ÏÂÃæ ¶¼Ã»ÓÐÓᣡ£
ÎÒ°Ñ´úÂë[Ìù³öÀ´£¬½ñÌì¾ÍÔÚÕâµÈÁË£¬½â¾öºóÁ¢¼´½áÌù¡£¡£¡£
C# code:
using System;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Runtime.InteropServices;
public partial class _Default : System.Web.UI.Page
{
[DllImport("ycode.dll", EntryPoint = "loadcode", SetLastError = true, ExactSpelling = false, CallingConvention = CallingConvention.StdCall)]
public static extern int loadcode(int i, int j, string str, string enjoy);
[DllImport("ycode.dll", EntryPoint = "Recognition")]
public static extern int Recognition(int i, int j, int a, string str, string enjoy, int b, int c, int d);
[DllImport("ycode.dll", EntryPoint = "Recognitiond")]
public static extern string Recognitiond(int i, int j, int a, string str, string enjoy);
[DllImport("ycode.dll", EntryPoint = "lstrcpy")]
public static extern int lstrcpy(string enjoy, int i);
[DllImport("
Ïà¹ØÎÊ´ð£º
aspÏÂÃæ£¬µ±Òª¸ù¾Ý²»Í¬µÄȨÏÞÏÔʾһЩ¹¦Äܰ´Å¥µÄ»°»áд³É
<%
if ȨÏÞ=1 then
%>
<input type="submit" name="Submit" value="Ìá½»" />
<%
end i ......
asp.net repeater ¿Ø¼þÔõô¿ÉÒÔÈ¡µ½×ӿؼþµÄÖµ£¬ÉèÖöϵãÔÚ ItemDataBound ʼþÔõôûÓÐÓõÄ
Request.Form["name"]
Â¥Ö÷ÄãÒªÔÚ°ÑrepeaterÖÐµÄ Ò»¸öÊôÐÔÉèÖÃһϲÅÄܽøÈëitemdataboundʼþ
¿ÉÒÔ ......
ÎÒÒѽ«Windows¿Ø¼þ³É¹¦Ó¦ÓÃÓÚAsp.netÖУ¬µ«Õâ¸ö¿Ø¼þ»¹Òª·ÃÎÊÊý¾Ý¿â¡¢½øÐб¾µØIO²Ù×÷¡¢´òÓ¡µÈ£¬Õâʱ¾Í»á³öÏÖ¡°Ó¦ÓóÌÐòÊÔͼִÐа²È«²ßÂÔ²»ÔÊÐíµÄ²Ù×÷¡±ÕâÑùµÄÌáʾ£¬Ó¦¸ÃÔõÑù¸øËüÊÚȨ£¿
ÔÚ¿Í»§¶ËÒªÅäÖÃ,ÔÊÐí¿Í»§¶ËÈ ......
HTML code:
<div>
<asp:TextBox runat="server" ID="txt"></asp:TextBox>
<img src="pic.aspx" alt="µã»÷¸ü»»Í¼Æ¬!" onclick=&quo ......
ÎÒµÄÒ³ÃæÀïÓõÄAJAX¿Ø¼þ µ«Ò³Ãæ¾²Ö¹Ò»¶Îʱ¼ä¾Í»á³öÏÖÉÏÃæµÄÒ»¸ö´íÎóÊÇÔõô»áÊÂѽ Ôõô½â¾ö°¡
¸ßÊÖ°ï°ïæ°¡
½«ÏîÄ¿Éϼ¶Ä¿Â¼ÖеÄÖÐÎÄÃû³ÆÈ«²¿¸Ä³ÉÓ¢ÎÄ
Â¥ÉÏ˵µÄºÜÇå³þÁË¡£°ï¶¥Ò»Ï°É
Õâ¸öÎÊÌâ²»ÊǺܳ£ ......