Web·þÎñÆ÷¿Ø¼þ¡¢Html·þÎñÆ÷¿Ø¼þºÍHtml¿Ø¼þ
Web·þÎñÆ÷¿Ø¼þ¡¢Html·þÎñÆ÷¿Ø¼þºÍHtml¿Ø¼þ
¡¡¡¡Html¿Ø¼þÎÞÐè¶à˵£¬×î³£ÓõĿؼþ£¬ASPʱ´úµÄΨһѡÔñ£¬ÊÀ½ç¿ªÊ¼µÄʱºòËü¾ÍÔÚÄÇ¡£µ±Î¢ÈíÍƳö.Netºó£¬ÎªÁËÌṩASP.Net Web Form¿ª·¢ÒÔºÍWin Form¿ª·¢ÏàËƵĿª·¢ÌåÑ飬ÍƳöÁËWeb·þÎñÆ÷¿Ø¼þ£¨Server Control£©£¬ÓÖ³ÆASP.Net·þÎñÆ÷¿Ø¼þ¡£¶øHtml·þÎñÆ÷¿Ø¼þ£¨Html Server Control£©£¬Ôò¿ÉÒÔ¿´×öÊÇΪÁËÏòϼæÈÝ£¬±ãÓÚÔ±¾»ùÓÚASPϵͳµÄÒÆÖ²¶øÍƳöµÄÒ»ÖÖ½éÓÚHtml¿Ø¼þºÍWeb ·þÎñÆ÷¿Ø¼þµÄȨÒ˲úÎï¡£
Web·þÎñÆ÷¿Ø¼þ¡¢Html·þÎñÆ÷¿Ø¼þºÍHtml¿Ø¼þµÄÇø±ð
Html¿Ø¼þµÄ±êÇ©£º<input id="Button" type="button" value="Button" />
Html·þÎñÆ÷¿Ø¼þµÄ±êÇ©£º<input id="Button" type="button" value="Button" runat="server" />
Html·þÎñÆ÷¿Ø¼þÆäʵ¾ÍÊÇHtml¿Ø¼þµÄ»ù´¡ÉϼÓÉÏrunat="server"Ëù¹¹³ÉµÄ¿Ø¼þ
Web·þÎñÆ÷¿Ø¼þµÄ±êÇ©£º<asp:Button ID="Button" runat="server" Text="Button"/>
Web·þÎñÆ÷¿Ø¼þ»á¸ù¾ÝÇé¿öÔÚä¯ÀÀÆ÷¶Ë²úÉúÒ»¸ö»ò¶à¸ö¶ÔÓ¦µÄHtml±êÇ©¡£
Html·þÎñÆ÷¿Ø¼þλÓÚSystem.Web.UI.HtmlControls
Web·þÎñÆ÷¿Ø¼þλÓÚSystem.Web.UI.WebControls
Web·þÎñÆ÷¿Ø¼þÓëCode BehindµÄClassÎļþÏà½áºÏ£¬ÌṩÁË°üº¬ÊôÐÔ¡¢·½·¨ºÍʼþµÄÍêÕû¶ÔÏóÄ£ÐÍ¡£
Html¿Ø¼þ²»ÄÜÔÚ·þÎñÆ÷¶Ë¿ØÖÆ£¬Ö»ÄÜÔÚä¯ÀÀÆ÷¶Ëͨ¹ýjavascriptµÈ½Å±¾ÓïÑÔ²Ù×÷¡£
Html·þÎñÆ÷¿Ø¼þÉ趨ÁËrunat="server" ÊôÐÔºó£¬Ò³Ãæ¶ÔÏó»á½«¸Ã¿Ø¼þÔØÈë¿ØÖÆÆ÷£¬·þÎñÆ÷¶ËµÄ´úÂë¾ÍÄܶÔÆä½øÐпØÖÆ¡£
Html·þÎñÆ÷¿Ø¼þÔÚÒ³ÃæÖ´ÐÐÍê±Ïºó»á±»×ª»»³ÉHtml±ê×¢£¬È»ºóµ±³É×Ö·û´®Á÷·¢Ë͵½ä¯ÀÀÆ÷¶Ë£¬ä¯ÀÀÆ÷¶ËµÄ½Å±¾Äܹ»½øÐвÙ×÷¡£
Web·þÎñÆ÷¿Ø¼þµÄ²Ù×÷ÔòÊÇÓÉÒ³Ãæ°ÑForm·¢»Ø·þÎñÆ÷£¬È»ºóÍêÈ«ÓÉ·þÎñÆ÷¶Ë´úÂë´¦Àí¡£
Html¿Ø¼þµÄʼþ´¦Àí·¢ÉúÔÚä¯ÀÀÆ÷¶Ë£¬³ý·ÇSubmit£¬·ñÔò²»»á·¢ÉúPostback
Html·þÎñÆ÷¿Ø¼þµÄʼþ´¦Àí·¢ÉúÔÚä¯ÀÀÆ÷¶Ë¡£
Html·þÎñÆ÷¿Ø¼þÈç¹ûÒªPostbackµ½·þÎñÆ÷¶Ë£¬µ÷Ó÷þÎñÆ÷¶ËµÄ·½·¨£¬ÐèÒªÌí¼ÓonserverclickÖ®ÀàµÄʼþ¡£
Web·þÎñÆ÷¿Ø¼þ²¿·ÖĬÈÏΪAutoPostback£¬»òÕß¿ÉÒÔÉèÖÃAutoPostback¡£
ÔÚ²úÉúPostback»òÊÇÖØÐÂÉú³ÉÒ³Ãæʱ£¬Web·þÎñÆ÷¿Ø¼þ×Ô¶¯±£´æ״̬µ½ViewState¡£
Html¿Ø¼þºÍHtml·þÎñÆ÷¿Ø¼þÐèÒª×Ô¼º±àÂëʵÏÖ¡£
Web·þÎñÆ÷¿Ø¼þ¡¢Html·þÎñÆ÷¿Ø¼þºÍHtml¿Ø¼þµÄÓÅȱµã
Html¿Ø¼þºÍHtml·þÎñÆ÷¿Ø¼þÐèÒª±àÂëÒÔ±£³Öä¯ÀÀÆ÷¼æÈÝ¡£
Web·þÎñÆ÷¿Ø¼þÄܹ»¼ì²âä¯ÀÀÆ÷µÄ¼æÈÝÐÔ£¬±£³Ö±íÏÖµÄÒ»Ö¡£
Html·þÎñÆ÷¿Ø¼þͨ¹ýΪHtml¿Ø¼þÌí¼Órunat="server"Ò
Ïà¹ØÎĵµ£º
ʾÀý£º´ËDIVΪ¹Ì¶¨¶¨Î»¶ÔÏó
ҪʹHTMLÔª¼þ¶¨Î»ÓÚä¯ÀÀÆ÷µÄij¸ö¹Ì¶¨Î»Ö㬶ø²»Ëæ¹ö¶¯Ìõ¹ö¶¯£¬ÓÃÒÔÏÂCSS´úÂë¼´¿É£¬¿ç¸÷¸öÖ÷Á÷ä¯ÀÀÆ÷£º POSITION: fixed! important; TOP: 100px; _position: absolute; _top: 40; _left: 100¡£
ʾÀý¼ûÓұ߻Ƶ׺ì×Ö¿é¡£ ......
Ò»¸ö¼òµ¥µÄÏÂÀ²Ëµ¥£¬Ö÷Ҫ˵Ã÷CSSÖÐposistionµÄ×÷Óá£
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"& ......
web¿ª·¢¹ý³ÌÖУ¬ÓÐʱºò´ÓÊý¾Ý¿â²é³öÀ´µÄÊý¾Ý¹ý³¤£¬Ç°Ì¨Ò³ÃæÈç¹ûûÓпØÖƺ㬻áÏÔʾºÜ³¤µÄÊý¾Ý£¬Ó°ÏìÃÀ¹Û£¬Õâ¸öʱºò¾ÍÐèÒªÖ»ÏÔʾ¹Ì¶¨µÄ³¤¶È£¬½«¶àÓàµÄÒÔ¡°......¡±»òÕßÖ±½Ó½ØÈ¡²»ÏÔʾ£¬¿ÉÒÔʹÓÃ
text-overflow:cl ......
1.ΪҳÃæÌí¼ÓÕýÈ·µÄ DOCTYPE
XHTML1.0 ÌṩÁËÈýÖÖ DOCTYPE ¿ÉÑ¡Ôñ£º
1.¹ý¶ÉÐÍ(Transitional)--ÆÕ±é
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2.Ñ ......
Apache SSI¼¼Êõ¿ÉÒÔ¶¯Ì¬µÄ°üº¬¾²Ì¬htmlÎļþ £¬ÓÉÓÚÕâ¸öÊÇapacheÖ±½Ó½øÐд¦Àí£¬Ð§ÂʱÈÒ»°ãµÄÈçjsp,php,aspµÈҪǿµÃ¶à£¬Òò´Ë±»ºÜ¶à´ó·ÃÎÊÁ¿ÍøվʹÓã¬ÏÂÃæ½²ÊöÈçºÎÅäÖÃSSI
1)ϵͳ»·¾³£º
Apache 2.0.58
Red Hat Enterprise Linux AS release 4 (Nahant)
2)SSIʹÓõÄÊÇmod_includeµÄ¶¯Ì¬ÏµÍ³¶ÔÏó£¬Ò»°ãĬÈϵÄÇé¿ö°²×°µÄÇé¿ö ......