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

½«aspxÒ³Ãæת»»ÎªhtmlÒ³Ãæ

        StringBuilder sb = new StringBuilder();
        Server.Execute("~/Default2.aspx", new StringWriter(sb));
        File.WriteAllText(Server.MapPath("index.htm"), sb.ToString());


Ïà¹ØÎĵµ£º

htmlÓëjspǶÌ×Ò»¸öÎÊÌ⣨±¸Íü£©


  <%
     int a =1;
     out.println("<input type='checkbox' value='"+a+"'>");
   
     %>
     
     <%int b =1 ;%>
     <i ......

HTML¼òµ¥Í¼Ïñä¯ÀÀ´¦ÀíÆ÷

ÀÏʦÁô×÷Òµ×ö¸ö¼òµ¥Í¼Ïñä¯ÀÀ¼Ó¸÷ÖÖ·­×ª+͸Ã÷+ºÚ°×Á¬Ðø´¦ÀíµÄhtml,±¾ÒÔΪºÜÈÝÒ×,
Ë­ÖªµÀһŪ²Å·¢ÏÖ»ðºü¸ß°æ±¾µÄinput file ºÍIeÖеIJ»Ò»Ñù
JSÖÐfileObj.value Ö»Äܵõ½ÎļþÃû...
¸ãµÃÄÔ´üÖ±´ó
»ðºü3ÒÔÉÏ°æ±¾ÓÐbug ÒòΪinput file ²»Ö§³Ö»ñÈ¡ÎļþÍêÕû·¾¶,±È½ÏÍ´¿à,½â¾ö²»ÁË,ËùÒÔ²»ÄÜ·¢urlµ½servletÖÐ,ÒÔÖÁÓÚÖ»ÄÜä¯ÀÀ
² ......

C#.netÖÐÓÃWinForm½ÓÊÕhtmlÒ³ÃæÏûÏ¢µÄ³ÌÐò

Ê×ÏÈдһ¸öÒ³Ã棬ÉÏÃæÒª·ÅÒ»¸öButton
<html>
 <head>
  <title></title>
 </head>
 <body>
        <input id="Button1" type="button" value="button" />
 
 </body>
</html>
½«Æä±£´ ......

htmlÎı¾¿ò¿Ø¼þµÄ³£ÓÃÊôÐÔ¡¢Ê¼þºÍ·½·¨


´°¿Úʼþ (Window Events)
½öÔÚ body ºÍ frameset ÔªËØÖÐÓÐЧ¡£
ÊôÐÔ Öµ ÃèÊö
onload ½Å±¾ µ±ÎĵµÔØÈëʱִÐнű¾
onunload ½Å±¾ µ±ÎĵµÐ¶ÔØʱִÐнű¾
±íµ¥ÔªËØʼþ (Form Element Events)
½öÔÚ±íµ¥ÔªËØÖÐÓÐЧ¡£
ÊôÐÔ Öµ ÃèÊö
onpropertychange   ½Å±¾ µ±Îı¾ÄÚÈݸıäʱִÐнű¾
onchange ½Å± ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ