Asp.net»Ø³µÄ¬ÈÏ°´Å¥Ê¼þ½â¾ö·½°¸
Ò»¡¢
Js
ÉèÖÃĬÈÏ°´Å¥
function
document.onkeydown()
{
var
e=event
.srcElement;
if
(event
.keyCode==13)
{
document.getElementById("btnSearch"
).focus();
return
true
;
}
}
¶þ¡¢
ÔÚ
Form
±êÇ©ÖÐÉèÖÃ
defaultbutton
ÊôÐÔ
<
form
id
="form1"
runat
="server"
defaultbutton
="
ĬÈÏ°´Å¥
ID">
Èý¡¢
DefaultButton.js
ÎļþÄÚÈÝ
for
(i=0;i<Form1.elements.length;i++)
{
if
(Form1.elements[i].type
== "submit"
)
{
fstsubmit =
Form1.elements[i]
fstsubmit.attachEvent("onmouseup"
, changeEvent)
//break;
ÕâÒ»¾äÓ¦¸ÃÈ¥µô
}
}
function
changeEvent()
{
Ïà¹ØÎĵµ£º
ǰ̨Éè¼ÆÒ³Ãæ.aspx
<body>
<form id="form1" runat="server">
<div>
<CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="true" />
</div>
  ......
ÕâÁ½ÌìÒòΪҪ×öÒ»¸ö¿ÉÒÔÊÕ¼¯Óû§Ìá½»ÐÅÏ¢£¬È»ºó·¢ËÍÓʼþµ½Ö¸¶¨ÓÊÏäµÄÍøÒ³¡£ÔÚ asp.net 2.0 ÀïÃæ·¢ËÍÓʼþ¿ÉÒÔʹÓà System.Net.Mail ÏÂÃæµÄÀà¡£http://www.systemnetmail.com/faq/2.1.aspx Õâ¸öµØÖ·ÓÐ System.Net.Mail µÄ×÷ÕßдµÄ·Â·ðÊÇ MSDN ÀàËÆµÄ Faq£¬¿´´úÂëµÄʱºò¿ÉÒԲο¼ÒÔÏ¡£Ê²Ã´¶¼²»ËµÁË£¬ÏÂÃæÌù³öÀ´´úÂë°É£¬±Ï¾¹´ú ......
·þÎñÆ÷¿Ø¼þ html±ê¼Ç
label----------<span/>
button---------<input type="submit"/>
textbox--------<input type="text"/>
linkbutton-----<a href="javascript:" />
imagebutton----<input type="image"/>
hyperlink------<a />
......
ASP.NETÖеÄÈý²ã½á¹¹·ÖΪ±íʾ²ã£¨UI£©£¬ÒµÎñÂß¼²ã£¨BLL£©£¬Êý¾Ý·ÃÎʲ㣨Models£¬DAL£¬IDAL,DALFactory£¬DB£©£¬ÏÂÃæÎÒÀ´ËµËµÎÒ¶ÔѧϰÈý²ã½á¹¹µÄÔËÓá£
Ê×ÏÈÎÒ¸ø´ó¼Ò˵˵ÕâÈý²ã¶¼ÊÇʲôÒâ˼¡£
1. ±íʾ²ã£ºwebÏîÄ¿×ÔÈ»ÊÇÓ¦ÓóÌÐòµÄ±íʾ²ã£¬¾ÍÊÇ·ÃÎʵÄÕ¾µã£¬ËüÌṩËùÓÐÓëÓû§½øÐн»»¥µÄ ......
Default..aspx
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
Default..aspx.cs
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.We ......