asp.netÃæÊÔÌâ(2)
11.ÓÃ.net×öb/s½á¹¹µÄϵͳ£¬ÄúÊÇÓü¸²ã½á¹¹À´¿ª·¢£¬Ã¿Ò»²ãÖ®¼äµÄ¹ØϵÒÔ¼°ÎªÊ²Ã´ÒªÕâÑù·Ö²ã£¿
´ð£ºÒ»°ãΪ3²ã
Êý¾Ý·ÃÎʲ㣬ҵÎñ²ã£¬±íʾ²ã¡£
Êý¾Ý·ÃÎʲã¶ÔÊý¾Ý¿â½øÐÐÔöɾ²é¸Ä¡£
ÒµÎñ²ãÒ»°ã·ÖΪ¶þ²ã£¬ÒµÎñ±í¹Û²ãʵÏÖÓë±íʾ²ãµÄ¹µÍ¨£¬ÒµÎñ¹æÔò²ãʵÏÖÓû§ÃÜÂëµÄ°²È«µÈ¡£
±íʾ²ãΪÁËÓëÓû§½»»¥ÀýÈçÓû§Ìí¼Ó±íµ¥¡£
Óŵ㣺 ·Ö¹¤Ã÷È·£¬ÌõÀíÇåÎú£¬Ò×ÓÚµ÷ÊÔ£¬¶øÇÒ¾ßÓпÉÀ©Õ¹ÐÔ¡£
ȱµã£º Ôö¼Ó³É±¾¡£
12.ÔÚÏÂÃæµÄÀý×ÓÀï
using system;
class a
{
public a()
{
printfields();
}
public virtual void printfields(){}
}
class b:a
{
int x=1;
int y;
public b()
{
y=-1;
}
public override void printfields()
{
console.writeline("x={0},y={1}",x,y);
}
µ±Ê¹ÓÃnew b()´´½¨bµÄʵÀýʱ£¬²úÉúʲôÊä³ö£¿
´ð£ºx=1,y=0;x= 1 y = -1
13.ʲô½ÐÓ¦ÓóÌÐòÓò£¿
´ð£ºÓ¦ÓóÌÐòÓò¿ÉÒÔÀí½âΪһÖÖÇáÁ¿¼¶½ø³Ì¡£Æðµ½°²È«µÄ×÷Óá£Õ¼ÓÃ×ÊԴС¡£
14.cts¡¢cls¡¢clr·Ö±ð×÷ºÎ½âÊÍ£¿
´ð£ºcts£ºÍ¨ÓÃÓïÑÔϵͳ¡£cls£ºÍ¨ÓÃÓïÑԹ淶¡£clr£º¹«¹²ÓïÑÔÔËÐп⡣
15.ʲôÊÇ×°ÏäºÍ²ðÏ䣿 &nbs
Ïà¹ØÎĵµ£º
<asp:FileUpload /> ÎļþÉÏ´«¿Ø¼þ
ʵÏÖÒ»¸ö¼òµ¥µÄͼƬÎļþÉÏ´«
//ÉÏ´«Îļþ¿Ø¼þʹÓãºÊµÏÖÉÏ´«Í¼Æ¬¹¦ÄÜ£¬ÉÏ´«Í¼Æ¬Ö»ÄÜÊÇjpg£¬gif£¬bmpÈýÖÖÀàÐÍ£¬Í¼Æ¬´óС²»³¬¹ý60kb
ºǫ́´úÂ룺
using System;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using ......
Global.asax Îļþ£¬ÓÐʱºò½Ð×ö ASP.NET Ó¦ÓóÌÐòÎļþ£¬ÌṩÁËÒ»ÖÖÔÚÒ»¸öÖÐÐÄλÖÃÏìÓ¦Ó¦ÓóÌÐò¼¶»òÄ£¿é¼¶Ê¼þµÄ·½·¨¡£Äã¿ÉÒÔʹÓÃÕâ¸öÎļþʵÏÖÓ¦ÓóÌÐò°²È«ÐÔÒÔ¼°ÆäËüһЩÈÎÎñ¡£ÏÂÃæÈÃÎÒÃÇÏêϸ¿´Ò»ÏÂÈçºÎÔÚÓ¦ÓóÌÐò¿ª·¢¹¤×÷ÖÐʹÓÃÕâ¸öÎļþ¡£
¸ÅÊö
Global.asax λÓÚÓ¦Óà ......
1
private void Focus(string sDomID)
{
RegScript("focus", "document.getElementById(\"" + sDomID + "\").focus();");
  ......
½ñÌìÔÚ¿ª·¢ÖУ¬Óöµ½ÁËÒ»¸öÎÊÌ⣺
ÔÚHeaderÖÐÓÐÒ»¸öËÑË÷ÊäÈë¿ò£¬ËÑË÷°´Å¥ÊÇButton¿Ø¼þ£¬ÔÚ“×ÊѶÎÄÕÂËÑË÷”Óû§×Ô¶¨Òå¿Ø¼þÖÐÒ²Óõ½ÁËButton¿Ø¼þ¡£
½«½¹µãÍ£ÔÚ“×ÊѶ±êÌâ»òÄÚÈÝ”ÊäÈë¿òÖУ¬»Ø³µ£¬µ«ÊÇÏàÓ¦µÄÊÇHeaderÖÐÊäÈë¿òÄÚÈÝ¡£
Ô ......
¡¡¡¡ÏÖÔںܶàµÄÕ¾µã¶¼ÊÇ»ùÓÚJQueryUI¡¢ExtJSµÈµÈ½çÃæ¿â¿ª·¢µÄ£¬¿ÉÒÔ˵ǰ̨ʹÓÃÁË´óÁ¿µÄ½Å±¾¼°¾²Ì¬Ò³Ã棬¶øºǫ́ÍùÍùÖ»×öΪÇëÇóÒ³ÃæÊý¾ÝÀ´Óã¬ÄÇôºÏÀíµÄÀûÓ÷´É䣬ͨ¹ý´«µÝÖ¸Á»ò¶¯×÷£©µÄ²ÎÊý£¬µ÷ÓÃÒ³ÃæµÄÏà¹Ø·½·¨£¬±ã¿ÉÒÔ¼õÉٺܶàµÄ´úÂëÁ¿¡£
1¡¢ËùÓеÄÒ³Ã涼¼Ì³ÐÓÚÒ»¸ö»ùÀàBasePage
2¡¢ÔÚBasePageÀàÖÐOnLoadʼþÔö¼Ó·´É ......