asp.net/c#textbox½ÓÊÕʼþ
¾ßÌåÊÇÓÃtextbox½ÓÊÕÒ»ÌõÀ´×ÔɨÃèǹµÄÊý¾Ý£¬²¢ÏìÓ¦½ÓÊÕ£¬ÓÃtextbox multiline,ÄÜÏÔʾÿɨһÌõ¼Ç¼£¬¼Ç¼»á×Ô¶¯»»ÐУ¬ÊDz»Êǻسµ£¬²»ÊǺÜÈ·¶¨£¬ÓÃsingleline,½ÓÊÕÒ»Ìõ¼Ç¼ÎÞ·´Ó¦£¬ÓÃÍøÉÏһЩ·½·¨Èç"pressdown"»òÕß"keyCode==13"ÊÔ¹ý£¬ÎÞ·´Ó¦£¬µ«ÓüüÅ̻سµ¼üÄÜÉúЧ£¬ÕâÊÇÔõô»ØÊ£¿ÓкõĽâ¾ö·½·¨Ã»£¿£¿£¿
Â¥Ö÷ºÃÏñÎÊÌâÃðÓÐ˵Çå³þ°¡
Ìí¼Ó»»Ðзû²»ÐÐÂð£¿
²»ÐС£
Ö±½ÓʹÓÃListBox
²»Êǻسµ£¬Ó¦¸ÃÊǶ¥µ½Í·ºó£¬×Ô¶¯»»ÐС£¾Í¸úwordÒ»Ñù£¬¶¥µ½Óұ߽ç×Ô¶¯»»ÐÐÒ»Ñù¡£
ɨÃèǹÉÏÉèÖÃÁË»»ÐÐ(LF)ºÍ»Ø³µ(CR)ºó׺£¬¶¼Ã»·´Ó¦¡£
¿´Ò»ÏÂÄÇÀï²»¶Ô£º
aspx:
<head runat="server">
<title>Scan </title>
<script language="javascript">
function EnterTextBox()
{
if(event.keyCode==13)
{
document.getElementById("btnSubmit").click();
}
}
</script>
</head>
<body onkeypress="return EnterTextBox()">
<form id="form1" runat="server" defaultbutton="btnSubmit">
<asp:TextBox
Ïà¹ØÎÊ´ð£º
Ç°¶Îʱ¼äÅöµ½Ò»µÀÃæÊÔÌâÈçÏ£º
test.aspxÒ³ÃæÓÐÈçÏ´úÂ룺
Response.Write(Test.GetDate());
TestÀàÈçÏ£º
public class Test
{
static string dt="";
public static s ......
ÔÚµ¯³ö¿òÖеã»÷Ò»¸ö°´Å¥£¬Ôõôµ÷תµ½ÁíÒ»¸öä¯ÀÀÆ÷£¬²¢ÇÒÔÚ¸Ãä¯ÀÀÆ÷´ò¿ªÁ½¸öÒ³Ãæ
ÄãµÄÒâ˼Ӧ¸ÃÊÇ
response.write("<script>alert('È·ÈÏ'); window.location.href('xxxx.aspx'); </script>"); ......
ÇëÎÊһϣ¬ASP.NETÎÒÓÃÒ»¸ö²ãÖзÅÁËÒ»¸öÈÕÀú¿Ø¼þ£¬ÔÚµãÒ»¸ö°´Å¥Ê±£¬ÏÔʾÕâ¸ö²ã£¿ÏÖÔÚÎÊÌâÊÇÎÒÔڵ㰴ťʱ£¬ÎÒÏë°Ñ²ãÏÔʾÔÚ°´Å¥µÄÏ·½£¿¾ÍÏñÏÂÀÈÕÆڿؼþÒ»Ñù£¬ÎÒÓÃÊǵÄASP.NET C#
ÎÒÓÐÕâôһ¸öÈÕÆڿؼþ£¬£¡µã»÷¿ÉÒÔÑ ......
ASP.NET MVC¼Ü¹¹·¢²¼ÁË,ÄãÓÃÁËÂð£¿
»¹ÔÚѧϰÖÐ
ÎÒÒ²ÔÚѧϰ¡£ÂòÊ飬Ìý½Ì³Ì£¬¿´ÍøÉÏ×ÊÁÏ£¬ÏÂÔØÀý×Ó£¬¸Ð¾õÌý²»´íµÄ£¬²»¹ý±ÈÆ𹤳§Ä£Ê½£¬ËƺõÑ·É«Á˵㡣¡£¡£»¶Óµ½ÎÒ²©¿Í»¥Ïàѧϰ
¶¼ÓÃÁË5¸ö°æ±¾ÁË ´Ó PV1 µ½beta ......
<script type="text/javascript" src="js/Dialog.js"></script>
<script type="text/javascript">
function zOpenD()
{
va ......