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

ASPºǫ́´úÂëµ÷ÓÃǰ̨µÄJavaScript´úÂë

ÔÚaspÖÐÓÐÔËÓÃAJAXµÄʱºò£¬ÎÒÔÚ·þÎñÆ÷¿Ø¼þÈ·¶¨°´Å¥µã»÷ºó´¦ÀíһЩÊÂÇ飬½ÓÏÂÀ´¾ÍÊÇÒªµ÷ÓÃǰ̨µÄJavaScriptµÄº¯Êý£¬ÔõôŪ
C# code:
button.Attributes.Add("onclick", "xx()");


ÒýÓÃ
C# codebutton.Attributes.Add("onclick","xx()");

.netÊÇÕâÑùµÄ,µ«ÊÇÂ¥Ö÷Ìáµ½,"aspºǫ́´úÂëÖÐ"Ó¦¸Ã¾ÍÊÇÖ¸µÄaspx.csµÄ.net´úÂëÎļþ°É
ÒòΪaspÊÇÒ³ÃæºÍ´úÂë²»·ÖÀëµÄ.

Ï£ÍûÂ¥Ö÷ ˵µÄ ASP ÊÇASP.NET £¬¿ÉÒÔÓÃÂ¥É쵀 ·½·¨½â¾ö~ ¸ø°´Å¥Ôö¼ÓÊôÐԽű¾Öµ

button.Attributes.Add("onclick", "xx()"); ¸ø°´Å¥×¢²áʼþ

ÓõÄÊDz»ÊÇVBÓïÑÔдµÄô?ÄÇô¾ÍÖ±½Óµ÷ÓÃJS¾ÍºÃÁË,¸øBUTTON×¢²áÒ»¸öʼþ°¡!

[/Quote]
.netÊÇÕâÑùµÄ,µ«ÊÇÂ¥Ö÷Ìáµ½,"aspºǫ́´úÂëÖÐ"Ó¦¸Ã¾ÍÊÇÖ¸µÄaspx.csµÄ.net´úÂëÎļþ°É
ÒòΪaspÊÇÒ³ÃæºÍ´úÂë²»·ÖÀëµÄ.
[/Quote]

¿ÉÒÔÒ³ÃæºÍºǫ́´úÂë·ÖÀë°¡£¬²»ÊÇÓдúÂëºóÖÃô£¿



¿ÉÒÔÒ³ÃæºÍºǫ́´úÂë·ÖÀë°¡£¬²»ÊÇÓдúÂëºóÖÃô£¿


½Å±¾º¯Êý²»´ø²ÎÊýÊÇ button.Attributes.Add("onclick", "xx()");  µ«Èç¹û´øÁ˲ÎÊýÄØ


C# code:
ICallbackEventHandler
ÓÃÕâ¸ö½Ó¿Ú¿ÉÒÔʵÏÖ

ÎÒ¾ÍÊÇÔÚVS2005ÖзÅÈëÒ»¸ö°´Å¥£¬Ë«»÷½øÈ¥ºó£¬µ½ºǫ́д´úÂ룬½øÐÐһϵÁе


Ïà¹ØÎÊ´ð£º

ÎÒÏë×öÒ»¸öaspÍøÕ¾£¬µ«ÊDz»ÖªµÀ×öʲô£¡

×î½üÎÒͨ¹ýѧϰ£¬¸Ð¾õ×Ô¼ºÑ§µÄ»¹¿ÉÒÔÁË£¬Ïë×öÒ»ÍøÕ¾£¬µ«ÊÇÒ»Ö±¶¼ÕÒ²»µ½Ìâ²Ä£¬²»ÖªµÀ×öʲô£¬Ï£Íû¸÷λ¸øÎÒµãÒâ¼û£¬Èç¹ûÓÐÐèÇóÎĵµ¾Í¸üºÃÁË£¡Ï£Íû´ó¼Ò¸øÎÒµãÒâ¼û£¬Ð»Ð»£¡
ÏÈ×ö¸öÆóÒµÍøÕ¾°É£¬ÎҸоõÒ»¸öÈË×öÍøÕ¾²»ÊÊÒË ......

ASP網頁ÖÐÈ¡µÃµÇ陸µÄÓÃ戶Ãû

ÎÒµÄ網頁´ú碼為ASP語ÑÔ,驗證·½Ê½為ϵ統×Ô帶µÄWINDOW驗證ģʽ.

現ÔÚÎÒÈç¹ûÒªÔÚASP´ú碼ÖÐ獲È¡當ǰµÄµÇÈëÈË ......

ÏÖÔÚµÄasp³ÌÐòÔ±ÊDz»ÊǺܱ¯°§Ñ½

ÏÖÔÚÕâÉç»á»ù±¾Éϲ»ÐèÒªASP³ÌÐòÔ±ÁË,Ò»ÃæÊÔ,¶¼Òª.NET»òÕßPHP,JSPµÄ,°¥,,,,ASPÕâô²»ÖµÇ®Âð,ѧϰASPÊǸö´íÎóÂð
ûɶ´íÎó Ò»¾ä»°£º¼¼¶à²»Ñ¹Éí

¿¿ASP¶¼»ì²»µ½·¹³ÔÁË  ÔÎ ÔÎ

ÎÒµÄÒâ˼ÊǶàѧһÃż¼Êõûɶ´íÎó ......

aspÉý¼¶µ½asp.net£¬ºÃ¶à½á¹¹¶¼²»ÖªµÀÈçºÎת»»

aspÏÂÃæ£¬µ±Òª¸ù¾Ý²»Í¬µÄȨÏÞÏÔʾһЩ¹¦Äܰ´Å¥µÄ»°»áд³É
<%
if ȨÏÞ=1 then
%>
<input type="submit" name="Submit" value="Ìá½»" />
<%
end i ......

asp¸úAccessÊý¾ÝÁ¬½ÓÎÊÌâ¡£

IsSqlDataBase = 0 'Ö÷Êý¾Ý¿âÀàÐÍ(1=SQL£¬0=AC)

'===========================================================================
SqlDatabaseName = "ads365" 'Ö÷Êý¾Ý¿âÃû
S ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ