C# дÈëhtml ÂÒÂëÎÊÌâ - .NET¼¼Êõ / C#
string fileName = Request.PhysicalApplicationPath.ToString() + this.filepath.Replace(@"\", @"\\") + @"mm\" + this.ddlType.SelectedValue + ".htm";//·¾¶
FileInfo info = new FileInfo(fileName);
if (info.Exists)//ÐÞ¸Ä
{
StreamWriter writer = info.CreateText();
writer.WriteLine(this.txtContent.Text.Trim());
writer.Close();
}
else//²»´æÔÚʱн¨
{
StreamWriter writer2 = File.CreateText(fileName);
writer2.WriteLine(this.txtContent.Text.Trim());
writer2.Close();
}
this.Page.RegisterStartupScript("alert", "<script language=javascript>alert('²Ù×÷Íê³É£¡');</script>");
×îºó²åÈëÀïÃæÖÐÎͼÊÇÂÒÂë
ÎÒÓÖ°ÑÉÏÃæÐÞ¸ÄÁËÒ»ÏÂ
string fileName = Request.PhysicalApplicationPath.ToString() + this.filepath.Replace(@"\", @"\\") + @"mm\" + this.ddlType.SelectedValue + ".htm";
FileInfo info = new FileInfo(fileName);
if (info.Exists)
{
StreamWriter writer = info.CreateText();
writer.WriteLine(this.txt
Ïà¹ØÎÊ´ð£º
дÁ˸ö²âÊÔ³ÌÐòÈçÏÂ
struct hostent *hp;
char AlarmDevIP[20];
int x2;
hp = gethostbyname("www.google.com");
if (hp)
{
......
txt ºÍXML ¸ñʽÏàÓ¦
²»½èÖúDataSet
µ¼Èë¶ÁÈ¡TXTÎļþ
È»ºóÖ±½ÓдÈëXML(ͬһÎļþ,²»Í¬Êý¾Ý,µÝÔöÔÊý¾ÝûÓб»¸²¸ÇÇé¿öÏÂÔö¼ÓÊý¾Ý.)
½Ì¸öÒªµã»ò×îºÃÊÇÓиö´úÂëÌáʾµÄ
¹ý·ºÃºº °ï¸öæÈö^^
²»»á£¬°ïÂ¥Ö÷ ......
´ó¼ÒºÃ£¬ÕâÊÇÒ»¸öÖ÷ÒªÃæÏòc/c++/mfcµÄȺ£¬×î½ü½øÐÐÁËÒ»´Î´óÇåÀí£¬»¶Ó¸÷λ¸ßÊÖ¼ÓÈ룬ºÃѧ°®ÎʵÄÐÂÊÖ£¬Ò²¿ÉÒÔÉêÇëµÄ£¬ÉêÇë¸ñʽ Ö°Òµ£¨c/c++/mfc ÈÎѡһ»òÕ߶ࣩ ¹¤×÷ÄêÏÞ£¨Ñ§ÉúÖ±½Óд´ó¼¸£©¾ÍÐÐÁË£¬ÈëȺµÄÒªÇó¾ÍÊÇÒª» ......
ÔÚ·¢±íÆÀÂÛʱ ¹ýÂË ÈçºÎ£º<br/> <hr/> Ë«ÒýºÅ µ¥ÒýºÅ »¹ÓÐÆäËû µÈ Óкõķ½·¨¸æËßһϠлл
.replace(/<\w+[^>]*>/g,"").replace(/'/g,"''")
½«µ¥ÒýºÅ»»³É2¸ö ......
.css1 .css2 #objid {OVERFLOW: scroll;...}
.css1 .css3 {...}
°Ñ¾ßÓй²Í¬ÑùʽµÄдµ½Ò»ÆðÁË ºÃά»¤
ÖмäÎÞ¶ººÅ£¬ÊôÓÚÑùʽǶÌ×
ÑùʽµÄ¹²Í¬µÄµØ·½Ð´ÔÚÒ»Æð£¬¿ÉÒÔÊ¡µô²»±ØÒªµÄ´úÂëÐÐ~
Õâ¸ö¾ÍÊÇ´úÂë ......