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

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()
        
{
        


Ïà¹ØÎĵµ£º

Asp.net Ë®¾§±¨±í³õ¼¶ÈëÃÅ.

ǰ̨Éè¼ÆÒ³Ãæ.aspx
<body>
    <form id="form1" runat="server">
    <div>
        <CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="true" />
    </div>
  ......

ASP.Net 2.0 ·¢ËÍÓʼþµÄ´úÂë

ÕâÁ½ÌìÒòΪҪ×öÒ»¸ö¿ÉÒÔÊÕ¼¯Óû§Ìá½»ÐÅÏ¢£¬È»ºó·¢ËÍÓʼþµ½Ö¸¶¨ÓÊÏäµÄÍøÒ³¡£ÔÚ asp.net 2.0 ÀïÃæ·¢ËÍÓʼþ¿ÉÒÔʹÓà System.Net.Mail ÏÂÃæµÄÀà¡£http://www.systemnetmail.com/faq/2.1.aspx Õâ¸öµØÖ·ÓÐ System.Net.Mail µÄ×÷ÕßдµÄ·Â·ðÊÇ MSDN ÀàËÆµÄ Faq£¬¿´´úÂëµÄʱºò¿ÉÒԲο¼ÒÔÏ¡£Ê²Ã´¶¼²»ËµÁË£¬ÏÂÃæÌù³öÀ´´úÂë°É£¬±Ï¾¹´ú ......

ASP.NET ·þÎñÆ÷¿Ø¼þäÖȾµ½¿Í»§¶ËÖ®ºó¶ÔÓ¦µÄHTML±êÇ©

·þÎñÆ÷¿Ø¼þ        html±ê¼Ç
label----------<span/>
button---------<input type="submit"/>
textbox--------<input type="text"/>
linkbutton-----<a href="javascript:" />
imagebutton----<input type="image"/>
hyperlink------<a />
......

ASP.NETÖÐÈý²ã½á¹¹µÄÔËÓÃ

ASP.NETÖеÄÈý²ã½á¹¹·ÖΪ±íʾ²ã£¨UI£©£¬ÒµÎñÂß¼­²ã£¨BLL£©£¬Êý¾Ý·ÃÎʲ㣨Models£¬DAL£¬IDAL,DALFactory£¬DB£©£¬ÏÂÃæÎÒÀ´ËµËµÎÒ¶ÔѧϰÈý²ã½á¹¹µÄÔËÓá£
Ê×ÏÈÎÒ¸ø´ó¼Ò˵˵ÕâÈý²ã¶¼ÊÇʲôÒâ˼¡£
1.       ±íʾ²ã£ºwebÏîÄ¿×ÔÈ»ÊÇÓ¦ÓóÌÐòµÄ±íʾ²ã£¬¾ÍÊÇ·ÃÎʵÄÕ¾µã£¬ËüÌṩËùÓÐÓëÓû§½øÐн»»¥µÄ ......

asp.netÉú³É¾²Ì¬Ò³Ãæ

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 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ