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

´ÓÊý¾Ý¿âÖÐÈ¡ÖµÅúÁ¿Éú³ÉhtmlÎļþ

1. web.config
<connectionStrings>
<add name ="myconn" connectionString="Data Source=who\SQLEXPRESS; Initial Catalog=dbname;Integrated Security=True;" providerName="System.Data.SqlClient"/>
</connectionStrings>
2.
string htmlPath = "D:\\htmlFiles";
string[] files = Directory.GetFiles(htmlPath,"*.html");
foreach (string filename in files)
{
File.Delete(filename);
}
3.
  string conn = ConfigurationManager.ConnectionStrings["myconn"].ToString();
SqlConnection sqlconn = new SqlConnection(conn);
SqlCommand scom = new SqlCommand("select * from table",sqlconn);
SqlDataAdapter sda = new SqlDataAdapter(scom);
DataSet ds = new DataSet();
sda.Fill(ds);
if (ds.Tables[0].Rows.Count > 0)
{
writeHtml(ds);
}
4.
foreach (DataRowView drv in dv)
{
int pid = int.Parse(drv["pid"].ToString().Trim());
string id_name = drv["ID_Name"].ToString().Trim();
string en_title = drv["en_title"].ToString().Trim();
string en_contents = drv["en_contents"].ToString();
string htmlName = String.Format("{0:D4}{1}.html",pid,id_name);
htmlName = htmlName.Replace(' ','_');
htmlName = htmlName.Replace('/','_');
htmlName = htmlName.Replace(':','_');
string htmlContents = "<html><head><title>" + en_title + "</title><meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\"><LINK href="\" mce_href="\""css.css\" type=\"text/css\" rel=\"stylesheet\"></head><body><table><tbody><tr valign=\"top\"><td valign=\"top\" height=\"467\" width=\"696\">" + en_contents + "</td></tr></tbody></


Ïà¹ØÎĵµ£º

HtmlÎļþµÄ»ù±¾¿ò¼Ü

HtmlÎļþµÄ»ù±¾¿ò¼ÜÈçÏ£º
     <html>
          <head>
               <title></title>
        &nbs ......

HTML ³õ¼¶½Ì³Ì

ʲôÊÇ HTML Îļþ£¿
HTML Ö¸³¬Îı¾±êÇ©ÓïÑÔ¡£
HTML ÎļþÊÇ°üº¬Ò»Ð©±êÇ©µÄÎı¾Îļþ¡£
ÕâЩ±êÇ©¸æËß WEB ä¯ÀÀÆ÷ÈçºÎÏÔʾҳÃæ¡£
HTML Îļþ±ØÐëʹÓà htm »òÕß html ×÷ΪÎļþÀ©Õ¹Ãû¡£
HTML Îļþ¿ÉÒÔͨ¹ý¼òµ¥µÄÎı¾±à¼­Æ÷À´´´½¨¡£
×ö¸öʵÑéÈçºÎ£¿
µÚÒ»²½£ºÈç¹ûÄúʹÓà Windows£¬ÇëÆô¶¯¼Çʱ¾¡£
Èç¹ûÄúʹÓà Mac£¬ÇëÆô ......

Adobe, ΢ÈíÂÛ½£ Flash, Silverlight Óë HTML5

´óÔ¼3ÄêÇ°£¬Î¢ÈíÍƳö Silverlight 1.0£¬ÄÇʱ£¬Adobe Я Flash Óµ±ø×ÔÖØ£¬¾¡¹Ü΢Èí¶Ô Silverlight
µÄÍƹãÁ¦¶È·Ç³£Ç¿£¬È´²¢Ã»Óк³¶¯ Adobe µÄ°ÔÖ÷µØ룬»òÐíÊг¡Îª¶þÕ߶¼±£ÁôÁ˿ռ䣬Èç½ñ HTML5
·çÉùº×ণ¬informationweek.com ÕÙ¼¯Î¢ÈíºÍ Adobe ¾Í Flash£¬Silverlight ºÍ HTML5 ×öÁËÒ»·¬±çÂÛ¡£
ÒÔÏÂÊDZçÂÛÈüµÄ¼Òô£¬ÏÖ³ ......

html¡¢asp¡¢php¡¢jsp ½ûÖ¹»º´æµÄ·½·¨

HTML:
<META HTTP-EQUIV="pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
<META HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT">
<META HTTP-EQUIV="expires" CONTENT="0">
PHP£º
header("Expires: Mon, 26 Jul 1997 ......

html ÊôÐÔ±êÇ©½áÊøµ¼Ö¡£¡£¡£¡£¡£¡£

 <input type="text" value="" maxlength="18"
       name="goods.goodsName" value="${goods.goodsName}"
       style="width: 99%;" id="goodsName">
value ÊôÐÔ Öظ´ £¬ µ¼Ö嵀 input  ǰ̨ҳÃæ Öµ Ϊ ""
ÒÔµÚÒ»¸öÊôÐÔµÄÖµÎª× ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ