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

¹ØÓÚAsp.netÍøÒ³¾Ö²¿Ë¢ÐÂ

½ñÌìÒª¼Ç¼µÄÊÇһƪ¹ØÓÚ¾Ö²¿Ë¢Ðµģ¬¸Õ×öÍøÒ³µÄʱºò£¬Ã¿ÊµÏÖÍøÒ³ÖеÄÒ»¸ö¹¦ÄÜ£¬¶¼ÒªË¢ÐÂÕû¸öÒ³Ã棬¸Ð¾õºÜ·³ÈË£¬ÑÏÖØÓ°ÏìÁËÍøվЧÂÊ£¬¶øÇÒÕû¸öÍøҳˢл¹»áÔì³ÉºÜ¶àÆäËûÎÊÌ⣬ËùÒԾ͵½ÍøÉϲéÁËЩ¾Ö²¿Ë¢ÐµĶ«Î÷£¬²¢ÔÚ×öÏîÄ¿ÖÐʹÓÃÁË£¬Í¦ºÃÓõģ¬Ò²ºÜ¼òµ¥£¬ÏÂÃæÎҾͼòµ¥Ð´Á½ÖÖÓ÷¨£º
1.Õâ¸ö×öÆðÀ´±È½Ï¼òµ¥£¬Ö÷ÒªÒÀ¿¿Ò»¸öupdatepanel¿Ø¼þ¾Í¿ÉÒÔÁË£¬ÏÈÌí¼ÓÒ»¸öSriptManager£¬È»ºóÌí¼ÓÒ»¸öUpdatePanel£¬È»ºóÔÚ<ContentTemplate>±êÇ©Öмä·ÅÈëÒª¾Ö²¿Ë¢ÐµÄÒ³ÃæÄÚÈÝ£¬ÒÔÏÂÊǸöÀý×Ó£º
<asp:ScriptManager ID="sm1" runat="server" />
        <asp:UpdatePanel ID="up1" runat="server" UpdateMode="Always">
        <ContentTemplate>
       
</ContentTemplate>
</asp:UpdatePanel>
Èç¹ûÓÐÌØÊâÐèÒª£¬±ÈÈçÔÚ¾Ö²¿Ë¢ÐµÄÒ³ÃæÀïÃæÓÐÐèҪˢÐÂÕû¸öÒ³ÃæµÄ°´Å¥Ê²Ã´µÄ£¬¾ÍÓõ½ÏÂÃæµÄ¶«Î÷ÁË£¬±ÈÈçButton1ÔÚ¾Ö²¿Ë¢ÐµÄÒ³ÃæÀïÃ棬¶ø°´ÏÂËüºóÐèҪˢÐÂÕû¸öÒ³Ã棬ÔòÔÚ</asp:UpdatePanel>֮ǰ¼ÓÈëÈçÏ´úÂë¼´¿É£º
<Triggers>
        <asp:PostBackTrigger ControlID="Button1" />
</Triggers>
ÕâÑù°´ÏÂButton1¾Í»áË¢ÐÂÕû¸öÒ³Ã棬Ҳ¿ÉÒÔÊǾֲ¿Ë¢ÐÂÒ³ÃæÍâµÄ¿Ø¼þÖ´Ðоֲ¿Ë¢ÐÂÒ³ÃæµÄ¹¦ÄÜ£¬ÔÚ<Triggers>Ö®¼ä»»³ÉÈçÏ´úÂë¾ÍÐÐÁË£º
<asp:AsyncPostBackTrigger ControlID="Button1" />
µ«ÓÃ<Triggers>µÄÇ°ÌáÊÇupdatemodelµÄUpdateMode="Always"
 
2.»¹ÓоÍÊÇÓÃiframe£¬ÔÚÒ»¸öÍøÒ³Öж¨ÒåÒ»¸öiframe£¬ÔÚiframeÖдò¿ªÆäËûÍøÒ³µÄÁ´½Ó¡£±ÈÈçÓÃiframeµÄsrcÊôÐÔÖ¸¶¨±ðµÄÒ³Ãæ»òÕßÓÃÒ»¸öÁ´½ÓµÄtargetÊôÐÔÖ¸¶¨ÎªiframeµÄid¡£
ÔÚÓÃiframeµÄʱºò£¬iframeÖÐÒªÏÔʾµÄÆäËûÍøÒ³¿ÉÄÜ»áÓкܶà¸ö£¬¶øÕâЩÍøÒ³µÄ¸ß¶È²»Ò»¶¨¶¼ÊÇÏàͬµÄ£¬Õâʱºò¾ÍÐèÒªÓõ½×ÔÊÊÓ¦¸ß¶ÈÁË£¬Ö»ÐèÒªÔÚÕâЩÐèÒªÏÔʾµÄÍøÒ³ÖмÓÈëÈçÏ´úÂë¾Í¿ÉÒÔÁË£¬ÕâÑùÒ³ÃæÏÔʾ¾Í²»»áÒòΪ¸ß¶ÈÎÊÌâ¶øÏÔʾ²»È«£º
<script language="javascript" type="text/javascript">
            parent.document.all("MainList").style.height = document.body.scrollHeight;
</script>
¹ØÓÚ¾Ö²¿Ë¢Ðµķ½·¨ÍøÉÏ»¹Óкܶ࣬´ó¼Ò¿ÉÒÔµ½BaiduÉÏGo


Ïà¹ØÎĵµ£º

ASP.NETÖÐʵÏÖÄ£°æµÄ¶¯Ì¬¼ÓÔØ


ASP.NETÖУ¬¾­³£»áʹÓõ½templates(Ä£°æ)¹¦ÄÜ£¬±ÈÈçÔÚdatagrid£¬datalist£¬repeaterµÈ¿Ø¼þÖУ¬Ê¹ÓÃtemplates£¬½«»á´ó´óÔöÇ¿Æ书ÄÜ¡£ÒÔÍù£¬ÎÒÃÇÒ»°ãÊÇÔÚÉè¼Æ³ÌÐòʱ£¬¾ÍÒѾ­ÉèÖúÿؼþÖеÄÄ£°æÊÇÔõÑùµÄÁË¡£µ«ÊÇ£¬ÓеÄʱºò£¬¿ÉÄÜÎÒÃÇÐèÒª¶¯Ì¬¼ÓÔØÄ£°æ£¬±ÈÈ磬µ±ÄãÒªÇóÄãµÄÓ¦ÓóÌÐòµÄ½çÃæ·ç¸ñËæ×ÅÓû§µÄÐèÇó¶ø±ä»¯Ê±£¬Äã¾ÍÐèÒ ......

Asp.netÖзÀÖ¹Óû§¶à´ÎµÇ¼µÄ·½·¨


ÔÚweb¿ª·¢Ê±£¬ÓеÄϵͳҪÇóͬһ¸öÓû§ÔÚͬһʱ¼äÖ»ÄܵǼһ´Î£¬Ò²¾ÍÊÇÈç¹ûÒ»¸öÓû§ÒѾ­µÇ¼ÁË£¬ÔÚÍ˳ö֮ǰÈç¹ûÔٴεǼµÄ»°ÐèÒª±¨´í¡£
³£¼ûµÄ´¦Àí·½·¨ÊÇ£¬ÔÚÓû§µÇ¼ʱ£¬ÅжϴËÓû§ÊÇ·ñÒѾ­ÔÚApplicationÖдæÔÚ£¬Èç¹û´æÔھͱ¨´í£¬²»´æÔڵĻ°¾Í¼Óµ½ApplicationÖÐ(ApplicationÊÇËùÓÐSession¹²Óеģ¬Õû¸öwebÓ¦ÓóÌÐòΨһµÄÒ ......

asp.netµÄMVC±à³Ì¡¢MV±à³ÌÒÔ¼°URLÖØд

Ç°Ò»¶Îʱ¼ä×öÒ»¸öÍøÕ¾ÏîÄ¿£¬Ê¹ÓÃwin2003+.net2.0¿ª·¢£»ÔÚѧϰÁËһЩ.netµÄÏà¹Ø֪ʶºó£¬²¢¿¼Âǵ½´ËÏîÄ¿ÐèÒª¶àÈ˺Ï×÷£¬ÒÔ¼°¼Ü¹¹ÇåÎú¡¢ URLÖØдµÈÓŵ㣬¾ö¶¨ÓÃMVC·½Ê½¿ª·¢¡£µ«Î¢ÈíµÄasp.net MVC¿ò¼Ü¾Ý˵ҪÏ°ëÄê²Å³öÕýʽ°æ£¬¶øÇÒ»¹ÐèÒª.net3.5£¬ÆäËûµÄMVC¿ò¼ÜÓÖ²»ÊìϤ£¬¹À¼ÆÒ²ÐèÒªÒ»¶Îʱ¼äѧϰ¡£ÓÉÓÚ¿ª·¢Ê±¼ä±È½Ï½ô£ ......

21¸öAsp.Net¾­³£»áÓõ½µÄº¯Êý¼¯


1¡¢DateTime Êý×ÖÐÍ
System.DateTime currentTime=new System.DateTime();
1.1 È¡µ±Ç°ÄêÔÂÈÕʱ·ÖÃë
currentTime=System.DateTime.Now;
1.2 È¡µ±Ç°Äê
int Äê=currentTime.Year;
1.3 È¡µ±Ç°ÔÂ
int ÔÂ=currentTime.Month;
1.4 È¡µ±Ç°ÈÕ
int ÈÕ=currentTime.Day;
1.5 È¡µ±Ç°Ê±
int ʱ=currentTime.Hour ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ