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

asp.netÃæÊÔÌâ(7)

101.ÔÚ.net£¨c# or vb.net£©ÖÐÈçºÎÈ¡ÏûÒ»¸ö´°ÌåµÄ¹Ø±Õ¡£   
 
´ð£ºprivate void form1_closing(object sender, system.componentmodel.canceleventargs e)   
 
{   
 
e.cancel=true;   
 
}    
 
 
 
102.ÔÚ.net£¨c# or vb.net£©ÖУ¬appplication.exit »¹ÊÇ form.closeÓÐʲô²»Í¬£¿   
 
´ð£ºÒ»¸öÊÇÍ˳öÕû¸öÓ¦ÓóÌÐò£¬Ò»¸öÊÇ¹Ø±ÕÆäÖÐÒ»¸öform¡£   
 
 
 
103.ÔÚc#ÖÐÓÐÒ»¸ödoubleÐ͵ıäÁ¿£¬±ÈÈç10321.5£¬±ÈÈç122235401.21644£¬×÷Ϊ»õ±ÒµÄÖµÈçºÎ°´¸÷¸ö²»Í¬¹ú¼ÒµÄϰ¹ßÀ´Êä³ö¡£±ÈÈçÃÀ¹úÓÃ$10,321.50ºÍ$122£¬235£¬401.22¶øÔÚÓ¢¹úÔòΪ¡ê10 321.50ºÍ¡ê122 235 401.22   
 
´ð£ºsystem.globalization.cultureinfo myculture = new system.globalization.cultureinfo("en-us");   
 
//system.globalization.cultureinfo myculture = new system.globalization.cultureinfo("en-gb");ΪӢ ¹ú »õ±ÒÀàÐÍ   
 
decimal y = 9999999999999999999999999999m;   
 
string str = string.format(myculture,"my amount = {0:c}",y);   
 
 
 
104.ijһÃÜÂë½öʹÓÃk¡¢l¡¢m¡¢n¡¢o¹²5¸ö×Öĸ£¬ÃÜÂëÖеĵ¥´Ê´Ó×óÏòÓÒÅÅÁУ¬ÃÜÂëµ¥´Ê±ØÐë×ñÑ­ÈçϹæÔò£º   
 
£¨1£© ÃÜÂëµ¥´ÊµÄ×îС³¤¶ÈÊÇÁ½¸ö×Öĸ£¬¿ÉÒÔÏàͬ£¬Ò²¿ÉÒÔ²»Í¬   
 
£¨2£© k²»¿ÉÄÜÊǵ¥´ÊµÄµÚÒ»¸ö×Öĸ   
 
£¨3£© Èç¹ûl³öÏÖ£¬Ôò³öÏÖ´ÎÊý²»Ö¹Ò»´Î   
 
£¨4£© m²»ÄÜʹ×îºóÒ»¸öÒ²²»ÄÜÊǵ¹ÊýµÚ¶þ¸ö×Öĸ   
 
£¨5£© k³öÏÖ£¬Ôòn¾ÍÒ»¶¨³öÏÖ   
 
£¨6£© oÈç¹ûÊÇ×îºóÒ»¸ö×Öĸ£¬ÔòlÒ»¶¨³öÏÖ   
 
ÎÊÌâÒ»£ºÏÂÁÐÄÄÒ»¸ö×Öĸ¿ÉÒÔ·ÅÔÚloÖеÄoºóÃæ£¬ÐγÉÒ»¸ö3¸ö×ÖĸµÄÃÜÂëµ¥´Ê£¿   
 
a) k b)l c) m d) n   
 
´ð°¸:b   
 
 
 
ÎÊÌâ¶þ£ºÈç¹ûÄܵõ½µÄ×ÖĸÊÇk¡¢l¡¢m£¬ÄÇôÄܹ»ÐγɵÄÁ½¸ö×Öĸ³¤µÄÃÜÂëµ¥´


Ïà¹ØÎĵµ£º

ASP.NET³£ÓôúÂë

 1. ´ò¿ªÐµĴ°¿Ú²¢´«ËͲÎÊý£º
´«ËͲÎÊý£º
response.write("<script>window.open('*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"')</script>")
½ÓÊÕ²ÎÊý£º
string a = Request.QueryString("id");
string b = Request.QueryString("id1");
2.Ϊ°´Å¥Ìí¼Ó¶Ô»°¿ò
Button1.Attribute ......

»ñÈ¡ÓÉASP.NETÉú³ÉµÄ·þÎñÆ÷¿Ø¼þ±êʶ·û

 1
        private void Focus(string sDomID)
        {
            RegScript("focus", "document.getElementById(\"" + sDomID + "\").focus();");
     ......

ASP.NET¿çÒ³Ãæ´«Öµ¼¼ÇÉ×ܽá

 ¡ï1.  Ê¹ÓÃQueryString±äÁ¿
¡¡¡¡¡¡QueryStringÊÇÒ»Öַdz£¼òµ¥µÄ´«Öµ·½Ê½£¬Ëû¿ÉÒÔ½«´«Ë͵ÄÖµÏÔʾÔÚä¯ÀÀÆ÷µÄµØÖ·À¸ÖС£Èç¹ûÊÇ´«µÝÒ»¸ö»ò¶à¸ö°²È«ÐÔÒªÇ󲻸߻òÊǽṹ¼òµ¥µÄÊýֵʱ£¬¿ÉÒÔʹÓÃÕâ¸ö·½·¨¡£µ«ÊǶÔÓÚ´«µÝÊý×é»ò¶ÔÏóµÄ»°£¬¾Í²»ÄÜÓÃÕâ¸ö·½·¨ÁË¡£ÏÂÃæÊÇÒ»¸öÀý×Ó£º
a.aspxµÄC#´úÂë
private vo ......

ÔÚasp.netÖлسµ´¥·¢Ö¸¶¨°´Å¥µÄʼþ

½ñÌìÔÚ¿ª·¢ÖУ¬Óöµ½ÁËÒ»¸öÎÊÌ⣺
      ÔÚHeaderÖÐÓÐÒ»¸öËÑË÷ÊäÈë¿ò£¬ËÑË÷°´Å¥ÊÇButton¿Ø¼þ£¬ÔÚ“×ÊѶÎÄÕÂËÑË÷”Óû§×Ô¶¨Òå¿Ø¼þÖÐÒ²Óõ½ÁËButton¿Ø¼þ¡£
      ½«½¹µãÍ£ÔÚ“×ÊѶ±êÌâ»òÄÚÈÝ”ÊäÈë¿òÖУ¬»Ø³µ£¬µ«ÊÇÏàÓ¦µÄÊÇHeaderÖÐÊäÈë¿òÄÚÈÝ¡£
Ô­ ......

asp.net ʵÏÖ¶¨Ê±Ö´ÐÐ Ò»¸ö·½·¨

 asp.net ʵÏÖ¶¨Ê±Ö´ÐÐ Ò»¸ö·½·¨
public class Time_Task
{
    public event System.Timers.ElapsedEventHandler ExecuteTask;
    private static readonly Time_Task _task = null;
    private System.Timers.Timer _timer = null;
    privat ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ