[HTML±à¼Æ÷]C#±àдµÄHTML±à¼Æ÷£ºÔÀíƪ
×÷Õߣº¹â½ÅѾ˼¿¼ ʱ¼ä£º12/23/2009 1:51:00 PM
Ò»¿ªÊ¼¾Í¾õµÃHTML±à¼Æ÷ÕâÍæÒâÓ¦¸ÃÊǺܸßÉîĪ²âµÄ¡£ËæËæ±ã±ã¾ÍÏëÕûÒ»¸öÓ¦¸Ã²»ÊÇÒ»¼þÈÝÒ×µÄÊÂÇé¡£ºóÀ´¶ÔWebBrowser¿Ø¼þÓÐÁËһЩÁ˽⣬²»¹ý¶¼ÊǺܷôdzµÄÁ˽⡣ֻ֪µÀÓÃÕâ¸ö¿Ø¼þ¾ÍÄܹ»ÔÚ×Ô¼ºµÄ³ÌÐòÖиãÒ»¸öWEBä¯ÀÀÆ÷Ö®ÀàµÄ¶«Î÷£¬´ÓÀ´Ã»ÓÐÏë¹ýHTML±à¼Æ÷Ò²¿ÉÒÔʹÓÃÕâ¸ö¿Ø¼þÀ´ÊµÏÖ¡£Ò²¾ÍÊÇ˵Õâ¸öWebBrowser¿Ø¼þ²»½ö½öÄܹ»ÓÃÀ´ÏÔʾHTMLÎĵµ£¬¶øÇÒÒ²¿ÉÒÔÓÃÀ´±à¼HTMLÎĵµ¡£µ±È»ÁË£¬ÕâЩ¹¦ÄÜ΢ÈíÒѾ¶¼Ìṩ¸øÎÒÃÇÁË¡£ËùÐèÒª×öµÄ¾ÍÊÇ°´ÕÕÄǸö¹æÔòÈ¥±àд×Ô¼ºµÄ´úÂëÁË¡£ÎÒÏëHTML±à¼Æ÷µÄʵÏÖ·½Ê½²»Ó¦¸ÃÖ»ÓÐÕâÒ»ÖÖ£¬Ö»ÊÇÔÛ²»»á¾ÍÊÇÁË£¡^_^
ÏÈÀ´¿´¿´ÎÒ×Ô¼ºÊµÏÖµÄÕâ¸öСÈí¼þ£¬½çÃæÈçÏÂͼ£º
³¬¼¶¼òµ¥µÄСÈí¼þ°É£¡
ÄǸö¡¾ÎÄ×ÖÏÂÀÁÐ±í¡¿ÊÇÓÃÀ´ÐÞ¸Ä×ÖÌåµÄ£¬¡¾¼Ó´Ö¡¿°´Å¥ÊÇÓÃÀ´½«×ÖÌå¼Ó´Ö£¬»òÕßÈÃÆä¼õ·ÊµÄ£¬¡¾Ï»®Ïß¡¿°´Å¥ÔòÊÇΪѡÖеÄÎÄ×Ö¼Ó¼õÏ»®Ïߵġ£×îºóÄǸö¡¾ÏÔʾԴÂë¡¿°´Å¥Ö÷ÒªÊÇΪÁË¿´¿´ÐÞ¸Ä֮ǰºÍÐÞ¸ÄÖ®ºóµÄHTMLÔ´Â붼×öÁËÄÇЩ¸Ä±ä¡£ÆäËû¾ÍûʲôÁË¡£
Ï·½µÄÄÇ¿é´óµÄ¿Õ°×ÇøÓò£¬¾ÍÊÇWebBrowser¿Ø¼þÁË£¬¼ÈÊÇÓÃÀ´ÏÔʾHTMLÎĵµ£¬Ò²ÊÇÓÃÀ´±à¼HTMLÎĵµµÄ£¬ÔÚÕâÀïÖ»ÓÃ×÷±à¼Æ÷¡£
½Ó×ÅÀ´¿´Ô´´úÂë°É¡¡
ĬÈÏÇé¿öÏ£¬WebBrowser²¢Ã»Óд¦ÓÚ±à¼Ä£Ê½£¬ËùÒÔ»¹²»ÄܶÔÆäÎĵµ½øÐб༴¦ÀíµÄ¡£ÎªÁËʹÆä´¦ÓÚ±à¼×´Ì¬£¬¿ÉÒÔÔÚ´°Ìå¼ÓÔØʼþµÄ·½·¨ÖÐÌí¼ÓÈçÏ´úÂ룺
private void MainForm_Load(object sender, EventArgs e)
{
this.webBrowser.DocumentText = string.Empty;
this.webBrowser.Document.ExecCommand("EditMode", false, null);
this.webBrowser.Document.ExecCommand("LiveResize", false, null); }
Ìرð×¢ÒâÄǸöÂÌ´ÖÏß»µÄ²¿·Ö(EditMode)£¬ÕâÊǹؼüµã¡£²»¹ýËƺõÒ²²»ÒªºöÂÔÁËΪDocumentText¸³Öµ£¬²»ÒªÈÃÕâ¸öֵΪnull£¬·ñÔòµÄ»°Á¬DocumentÒ²nullÁË£¬µ½Ê±ÏëÒªÖ´ÐÐExecCommandÕâ¸ö·½·¨ÄÇÊDz»³ÉµÄ¡£ÕâµãÊÇÔÚÎÒ±àд´úÂëµÄʱºòÎÞÒâ·¢Ïֵģ¬Ëü¸øÎÒÒì³£ÁË¡£
ÓÐÁËÉÏÃæÕâ¶Î´úÂ룬Ȼºó¾Í»á·¢ÏÖWebBrowser¿ÉÒÔ½øÐбà¼ÁË£¬¿ªÊ¼ÓеãÏñTextBoxÁË£¬Äܹ»ÊäÈëÎÄ×ÖÖ®ÀàµÄ¶«Î÷ÁË¡£
ÖÁÓÚÈçºÎ´ÓϵͳÖлñÈ¡ËùÓеÄ×ÖÌ壬²¢ÇÒ½«ËüÌí¼Óµ½ÏÂÀÁбíÖеȵÈÖ®ÀàµÄ´úÂë¾Í×Ô¼ºÈ¥¿´°É¡£½ÓÏÂÀ´Òª¿´µÄÊÇÈçºÎÐÞ¸ÄÎĵµ¡£ÏÈÔĶÁÏÂÃæµÄ´úÂ룺
private void BoldButton_Click(object sender, EventArgs e)
{
this.webBrowser.Document.ExecCommand("Bold", false, null);
}
Õâ¶Î´úÂëÊÇÄǸö¡¾¼Ó´Ö¡¿°´Å¥µÄClickʼþ´¦Àí´úÂë¡£ÆäÖÐ
Ïà¹ØÎĵµ£º
Visual C#Öж¯Ì¬²Ù×÷SQL ServerÊý¾Ý¿â £¨1£©
·¢²¼Ê±¼ä£º2003.01.14 10:09 À´Ô´£ºÈüµÏÍø ×÷ÕߣºÍõ¿Ã÷
ÔÚ±àдÊý¾Ý¿âÓ¦ÓóÌÐòµÄʱºò£¬ÎÒÃÇ¿ÉÒÔͨ¹ýSQLÓï¾äÀ´¶¯Ì¬´´½¨¡¢ÐÞ¸ÄÊý¾Ý¿âÒÔ¼°ÆäÖеĶÔÏó¡£±¾ÎÄÎÒ¾ÍÏò´ó¼Ò½éÉÜÈçºÎÔËÓÃVisual C#À´¶¯Ì¬²Ù×÷SQL ServerÊý¾Ý¿ ......
ת×Ôhttp://www.cnblogs.com/jujusharp/archive/2009/12/20/10-Rare-Html-Tag-You-Should-Know.html
ÀïÃæÓÐЩ±ê¼Ç,»¹ÕæÊÇûÓùý,×Ô¼ºÒ²¼ÇÒ»ÏÂÁË.
ÔÎĵØÖ·:http://net.tutsplus.com/articles/web-roundups/10-rare-html-tags-you-really-should-know/
Èç½ñ,Web¿ª·¢¹¤³ÌʦÔÚѧϰºÍ¹¤×÷ÖÐÍ ......
±¾½ÚÖеÄÖ÷ÌâÃèÊöÈçºÎʹÓà Visual Web Developer ¹¤¾ßÏäµÄ“HTML”Ñ¡ÏÉ쵀 ASP.NET Web ·þÎñÆ÷¿Ø¼þ¡£
ĬÈÏÇé¿öÏ£¬·þÎñÆ÷ÎÞ·¨Ê¹Óà ASP.NET ÍøÒ³É쵀 HTML ÔªËØ£»ÕâЩԪËر»ÊÓΪ´«µÝ¸øä¯ÀÀÆ÷µÄ²»Í¸Ã÷Îı¾¡£µ«ÊÇ£¬Í¨¹ý½« HTML ÔªËØת»»³É HTML ·þÎñÆ÷¿Ø¼þ£¬¿ÉÒÔ½«ËüÃǹ«¿ªÎª ......
HTMLÖÐʹÓÃinput type="file"ÉÏ´«Îļþʱ£¬´úÂëÖÐÖ»Äܵõ½ÎļþµÄÃû³Æ£¬¶øÓÐЩÌØÊâµÄÐèÒªÒªÇóÎÒÃDZØÐëµÃµ½ÉÏ´«ÎļþµÄ¾ø¶Ô·¾¶£¬Îª´ËÎÒÃDzÉÓÃJavascriptʵÏֵõ½ÎļþµÄ¾ø¶Ô·¾¶¡£
¾ßÌåÈçÏ¡£
Ò³Ãæ´úÂ루ֻճÌùÁ˹ؼü´úÂ룩£º
<form name="thisform" method="post"
action="<%=request.getContextPath()%>/movi ......
Ò»¡¢SQL SERVER ºÍACCESSµÄÊý¾Ýµ¼Èëµ¼³ö
³£¹æµÄÊý¾Ýµ¼Èëµ¼³ö£º
ʹÓÃDTSÏòµ¼Ç¨ÒÆÄãµÄAccessÊý¾Ýµ½SQL Server£¬Äã¿ÉÒÔʹÓÃÕâЩ²½Öè:
¡¡¡¡¡ð1ÔÚSQL SERVERÆóÒµ¹ÜÀíÆ÷ÖеÄTools£¨¹¤¾ß£©²Ëµ¥ÉÏ£¬Ñ¡ÔñData Transformation
¡¡¡¡¡ð2Services£¨Êý¾Ýת»»·þÎñ£©£¬È»ºóÑ¡Ôñ czdImport Data£¨µ¼ÈëÊý¾Ý£©¡£
¡¡¡¡¡ ......