´¦Àíasp.netµÄ»Ø³µÊ¼þ
1.Ìí¼Ójsº¯Êý
function TextBoxEntered(buttton) {
if (event.which || event.keyCode) {
if ((event.which == 13) || (event.keyCode == 13)) {
document.getElementById(button).click();
return false;
}
}
else { return true; }
}
´Ëº¯ÊýÄÜÈÃÎı¾¿òµÄ»Ø³µÊ¼þת»»ÎªÒ»¸öÒþ²Ø°´Å¥µÄµã»÷ʼþ¡£
2.°ó¶¨onkeydownʼþµÄ´¦Àíº¯Êý
TextBoxX.Attributes.Add("onkeydown", "TextBoxEntered('" + ButtonX.ClientID + "')"); (.cs)
or
onkeydown = "TextBoxEntered('<%=ButtonX.ClientID%>')" (.aspx)
Ïà¹ØÎĵµ£º
·ÖÒ³´úÂëÈçÏ£¨PageHelper.cs£©£º
´úÂë
1 using System;
2 using System.Collections.Generic;
3 using System.Collections.Specialized;
4 using System.Linq;
5 using System.Web;
......
asp.net·¢²¼ÍøÕ¾Ê±Èý¸öÑ¡ÏîµÄÎÊÌâ
·¢²¼ÍøÕ¾µÄʱºòÓÐÈý¸öÑ¡Ï
µÚÒ»¸öÑ¡ÏîÖ¸¶¨·¢²¼ºóÊDz»ÊÇ¿ÉÒÔÐÞ¸ÄaspxÎļþ£¬Èç¹û¹´Ñ¡£¬Ôò·¢²¼ºóµÄÍøÕ¾ÐÐΪ»ù±¾ÓëASP.NET 1.1Ò»Ö£¬Ö»ÒªÃ»ÓÐÔöɾÐ޸Ŀؼþ£¬¿ÉÒÔÖ±½ÓÔÚ·þÎñÆ÷ÉÏÐÞ¸ÄaspxÎļþ²»ÓÃÖØÐ·¢²¼ÍøÕ¾¡£
µÚ¶þ¸öÑ¡ÏîÖ¸¶¨ÊDz»Êǽ«Ã¿¸öaspxÎļþ¶¼±à ......
using System;
using System.Collections.Generic;
using System.Text;
using System.Security.Cryptography;//CryptographyÃÜÂëÊõ
namespace DAL
{
public class Enc ......
using System.Web;
/// <summary>
/// Javascript³£Ó÷½·¨
/// </summary>
public class JS
{
private static string ScriptStart = "<script type=\"text/javascript\">";
private static string ScriptEnd = "</script>";
&n ......
ÎåÖÖ³£¼ûµÄASP.NET°²È«È±ÏÝ
2004-10-18 19:30×÷Õߣºmenhal ³ö´¦£º¶¯Ì¬ÍøÖÆ×÷Ö¸ÄÏÔðÈα༣º·½ÖÛ
¡¡¡¡±£Ö¤Ó¦ÓóÌÐòµÄ°²È«Ó¦µ±´Ó±àдµÚÒ»ÐдúÂëµÄʱºò¿ªÊ¼×öÆð£¬ÔÒòºÜ¼òµ¥£¬Ëæ×ÅÓ¦ÓùæÄ£µÄ·¢Õ¹£¬ÐÞ²¹°²È«Â©¶´ËùÐèµÄ´ú¼ÛÒ²ËæÖ®¿ìËÙÔö³¤¡£¸ù¾ÝIBMµÄϵͳ¿ÆÑ§Ð»á£¨Systems Sciences Institute£©µÄÑо¿£¬Èç¹ûµÈµ½Èí¼þ²¿ÊðÖ®ºóÔ ......