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

asp.net ½«HTMLÎļþµ±ASPXÎļþ½âÎö

Ê×ÏÈÔÚÓ¦ÓóÌÐòµÄWEB.CONFIGÐÞ¸ÄÈçϽڵ㡣
<httpHandlers>
    <add verb="*" path="*.html" type="System.Web.UI.PageHandlerFactory"/>
</httpHandlers>
<assemblies>
    <buildProviders>
        <add extension=".html" type="System.Web.Compilation.PageBuildProvider" />
    </buildProviders>
</compilation>
ÐÞ¸ÄIISµÄMINEÀàÐÍ£¬½«.HTMLÀàÐÍÐ޸ĻòÔö¼Ó,²ÎÕÕASPXµÄÀàÐ͸´ÖÆ¡£


Ïà¹ØÎĵµ£º

HTMLÒ³ÃæÌøתЧ¹û

ʹÓøñʽ£ºÔÚÒ³ÃæÖвåÈë
<meta HTTP-EQUIV="Page-Enter" CONTENT="revealtrans(duration=1.0, transition=12)">
<meta HTTP-EQUIV="Page-Exit" CONTENT="revealtrans(duration=1.0, transition=12)">
duration=ʱ¼ä
Transitionv=·½Ê½
˵Ã÷£ºdurationΪҳÃæÇл»µÄʱ¼ä³¤¶È£¬3.000±íʾ3ÃëÖÓ£¬Ò»°ã¿ÉÒÔÖ±½ÓÊ ......

ASP.NETÖзÀÖ¹Ò³Ãæ¶à´ÎÌá½»µÄ´úÂëʵÏÖ

´Ë´¦ÌṩµÄ´úÂëÓÃÀ´ÊµÏÖµ±asp.netÒ³ÃæÖеÄij¸öButton±»µã»÷ºódisableµô¸ÃÒ³ÃæÖÐËùÓеÄButton£¬´Ó¶ø·ÀÖ¹Ìá½»ÑÓʱµ¼ÖµĶà´ÎÌá½»¡£»ùÓÚ֮ǰµÄonceclickbutton½Å±¾.
//ASP.NETÖзÀÖ¹Ò³Ãæ¶à´ÎÌá½»µÄ´úÂë:javascript< script language="javascript"> < !-- function disableOtherSubmit() {
var obj = event.srcElem ......

HTML»ù±¾¹¦:FRAME±êÇ©µÄʹÓÃ

    ¹¤×÷ºÜ¶àÄêÁË,¿ÉÊÇ»ù±¾ÉÏûÓÐÖ±½Óд¹ýHTMLÒ³Ãæ.×î¶à¾ÍÊÇά»¤Ð޸ĹýһϱðÈËдÁË.
    ×î½üÔÚ×öÒ»¸öÏîÄ¿µÄ»ù±¾Éè¼ÆµÄʱºò,ÒªÌá°¸¸ø¿Í»§µÄ»­ÃæÑùÀý.Òò´Ë¿ªÊ¼×Ô¼ºÐ´¼ÙµÄHTML»­Ãæ.ΪÁ˽Úʡʱ¼ä,ÆäËûÈ˶¼Ö»Ð´»­ÃæµÄÖ÷ÒªÄÚÈݲ¿·Ö.¶ø»­ÃæµÄÍ·²¿,µ×²¿ÒÔ¼°Ö÷²Ëµ¥,×Ӳ˵¥¶¼ÓÃframeÀ´ÌåÏÖ.
  ......

HTMLÖÐSelect²»ÓÃDisabledʵÏÖReadOnlyµÄÁíÀàʵÏÖ

HTMLÖÐSelect²»ÓÃDisabledʵÏÖReadOnlyµÄÁíÀàʵÏÖ.
<select onbeforeactivate="return false" onfocus="this.blur()" onmouseover="this.setCapture()" onmouseout="this.releaseCapture()">
<option>1</option>
</select>   ......

40ÌõASP.NET¿ª·¢Tip

»¶Ó­ÅÄש£¬¹²Í¬½ø²½£¡£¡£¡
1¡¢ÔÚcompilation Ï£¬ÇëÉèÖÃdebug=false £¬ÈçÏ£º
 
default Language="c#" debug="false">
2¡¢ÇëʹÓÃServer.Transfer´úÌæResponse.Redirect¡£
3¡¢Ê¹ÓÃValidator¿Ø¼þ£¬ÇëÒª¾­³£¼ì²éPage.IsValid¡£
4¡¢ÇëʹÓÃforeachÑ­»·£¬¶ø²»ÊÇΪ×Ö·û´®µü´úÑ­»·¡£
5¡¢ÇëʹÓÿͻ§¶ËÑéÖ¤ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ