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

ASP.NET×Ô¶¯Éú³ÉÒ³Ãæºǫ́´úÂë

 ÉùÃ÷£º
Ö»Ìṩºǫ́.csÎļþ´úÂë
Ïêϸ½Ì³ÌµØÖ·£ºhttp://download.csdn.net/source/2289546
1.ÐèÒª ±àд¾²Ì¬Ä£°åÒ³ ÎÒʹÓõÄÊÇ template.htm
2.ÔÚÄ£°åÒ³Öж¨Òåhtmlyem±ê¼Ç£¬±ê¼Ç·Ç¹Ì¶¨ÄÚÈÝ£¬ÔÚºǫ́´úÂëÖÐΪ±ê¼Ç¸³Öµ
3.ºǫ́´úÂëÈçÏ£º
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.IO;
using System.Text;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
string strDate = DateTime.Now.ToString("yyyyMMddHHmmssms");//ÒÔ´ËΪÉú³ÉµÄ¾²Ì¬Ò³ÃæÃüÃû-²»»áÖظ´
string[] format = new string[4];//¶¨ÒåºÍhtmlyem±ê¼ÇÊýÄ¿Ò»ÖµÄÊý×é
StringBuilder htmltext = new StringBuilder();
try
{
using (StreamReader sr = new StreamReader("G:/ASP.NET/StaticPages/template.htm"))//´Ë·¾¶ Ϊ¾ø¶Ô·¾¶ Ö¸Ïò Ä£°åÒ³template.htm
{
String line;
while ((line = sr.ReadLine()) != null)
{
htmltext.Append(line);
}
sr.Close();
}
}
catch
{
Response.Write("<Script>alert('¶ÁÈ¡Îļþ´íÎó')</Script>");
}
//---------------------¸ø±ê¼ÇÊý×鸳ֵ------------ ¡¡¡¡
format[0] = "×Ô¶¯Éú³É¾²Ì¬Ò³Ãæ"; //±êÌâ<title></title>
format[1] = "background-color:#336699;";//Ò³Ãæ±³¾°ÑÕÉ«
format[2] = "<marquee>Éú³ÉµÄÄ£°åhtmlÒ³Ãæ</marquee>";//ÎÄ×Ö˵Ã÷
format[3] = ftb.Text;//Ò³Ãæ AGStaticPages.aspx ´«¹ýÀ´µÄÎı¾

//----------Ìæ»»htmÀïµÄ±ê¼ÇΪÄãÏë¼ÓµÄÄÚÈÝ
for (int i = 0; i < 4; i++)
{
htmltext.Replace("$htmlformat" + i, format[i]);


Ïà¹ØÎĵµ£º

asp.netÖÐ×öÊÓƵת»»£¬½«¸÷ÖÖÊÓƵÎļþת»»³É.flv¸ñʽ

asp.netÖÐ×öÊÓƵת»»£¬½«¸÷ÖÖÊÓƵÎļþת»»³É.flv¸ñʽ ×öÒ»¸öÊÓƵת»»µÄDemo,ÏÖÔÚ³öÏֺܵÄÍøÉÏÔÚÏßÊÓƵÆäÎļþ¸ñʽ¶¼ÊÇ.FLV¸ñʽ£¬ÄÇЩÊÓƵÍøÕ¾´ó¸ÅÒ²ÓÐÒ»¸öÊÓƵת»»Èí¼þ£¬ËùÎÒÔÚÒ²ÊÔ×ÅÈ¥×öÁËÒ»¸ödemoÄóöÀ´ºÍ´ó¼Ò¹²Ïíһϣ¬ÓÉÓÚ×Ô¼ºµÄ¼¼ÊõÓÐÏÞ£¬×öµÄ²»ÔõôÑù£¬Ô¸ÓиßÈË¿´Íê¸ø
ÔÚÏÂÖ¸µãÒ»¶þ. ºÇ....¡¡·Ñ»°²»¶à˵ÁË£¬ÏÂÃæÀ´·Ö½ ......

ASP.NET·¾¶ÎÊÌâС½á

1.·ûºÅ“/”Ö¸³ÌÐòÔËÐÐËùÔÚ¸ùĿ¼£¬¼´IIsËùÔÚĿ¼¡£
Èç¹ûiisËùÔÚĿ¼Ϊ£ºd:\programs
½â¾ö·½°¸Îªd:\programs\d
Íøվ·¾¶Îª£ºd:\programs\d\web\
·ûºÅ“/”´ú±íµÄÊÇ£ºd:\programs£¬²»¹ÜÄãµÄÍøվǰÃæÓжàÉÙ¼¶£¬¶¼Ó¦¸Ã×÷Ϊһ¸öÕûÌå¡£
2.·ûºÅ“~/”£¬ÔòÊÇÖ¸ÍøÕ¾ËùÔÚ¸ùĿ¼¡£¼´d:\programs\ ......

asp.netµ÷ÓÃbatÎļþ

ÒýÓÃÃüÃû¿Õ¼ä
using System.Diagnostics;
                string sPath = "d:\\test\\test.bat";
string sDict = "d:\\test\\";
ProcessStartInfo psi = new ProcessStartInfo("cmd.exe ......

asp.net¿Ø¼þ¿ª·¢(Èý)£º´¦Àí±êÇ©¼äÄÚÈÝ

asp.net½Ì³Ì:asp.net¿Ø¼þ¿ª·¢(Èý)£º´¦Àí±êÇ©¼äÄÚÈÝ
asp.net¿Ø¼þ±êÇ©¼äµÄÄÚÈÝÓеÄʱºò´¦Àí³É½ÚµãÓеÄʱºò´¦Àí³É×ӿؼþ¡£È磺¼äµÄ½Úµã¾Í»á´¦Àí³ÉÊôÐÔTextµÄÖµ£¬¶øÈçPanelÕâÑùµÄ¿Ø¼þÔò¾ÍÊǽ«Æä´¦Àí³É×ӿؼþ¡£Ê×ÏÈ¿´ÈçºÎ´¦Àí³ÉÊôÐԵġ£
¡¡¡¡Ò»¡¢´¦Àí³ÉΪÊôÐÔ
¡¡¡¡¶ÔÓڿؼþ±êÇ©¼äµÄÄÚÈÝÎÒÃÇ¿ÉÒÔͨ¹ýÀàSystem.Web.UI.ParseChil ......

asp.net ĸ°æ³ö´íÎÊÌâ

vs2008½¨ÍøÕ¾ÊÇǧÍò±ðÔÚ±£´æ·¾¶Öк¬ÓБ#’£¬±ÈÈçÔÚ‘C#’µÄÎļþ¼ÐÀïÃæÔÙ½¨ÍøÕ¾£¬Èç¹û·¾¶Öк¬ÓБ#’£¬½«Ê¹Ä¸°æ½¨Á¢ÊÇÓдíÎ󣬶øÇÒ×ÓÒ³½¨Á¢ºóÒ²ÎÞ·¨Ê¹ÓÃÉè¼ÆÒ³Ã棬»¹»áÓÐÆäËû·¾¶ÎÊÌ⣨±ÈÈçCSSÎļþÎÞ·¨¼ÓÔØ£©¡£Õâ¸öÎÒ½ñÍí¸Õ¸Õ½â¾ö£¬À§ÈÅÎÒÁËÒ»ÏÂÎ磬¶àлÍøÉÏÖÚÈ˵ÄÖ¸µã£¬ÌØ´Ëд³ö£¬ÌáÐÑ×Ô¼ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ