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

Asp.net¶¯Ì¬×ª¾²Ì¬Ò³ÃæµÄÁ½ÖÖ·½·¨×ܽá

///Asp.net¶¯Ì¬×ª¾²Ì¬Ò³ÃæµÄÁ½ÖÖ·½·¨×ܽá
///ÓÉÓÚËÑË÷ÒýÇæ¶ÔaspxÒ³ÃæÊÕ¼ºÍhtmlÒ³ÃæµÄÊÕ¼ÂʵIJî±ðÒÔ¼°Ò³Ãæ×ÊÔ´Õ¼ÓÃÎÊÌ⣬ÎÒÃǺܶàʱºòÐèÒª
///ʵÏÖaspxÒ³Ãæ¶¯Ì¬×ª¾²Ì¬¡£Á½ÖÖÖ÷Á÷·½·¨ÈçÏ£º
///µÚÒ»ÕÅ·½·¨:
///ʹÓÃÄ£°åת»»£¬²½ÖèÈçÏ£º
///1£¬½¨Á¢Myconvert.cs ÀàÎļþ
using System;
//¼ÇµÃÌí¼ÓÒÔÏÂÈý¸öÒýÓÃ
using System.Text;
using System.Web;
using System.IO;
namespace TesConvert
{
 ///
 ///MyConvertµÄժҪ˵Ã÷¡£
 ///
 public class MyConvert
 {
  public MyConvert()
  {
   //ÔÚ´ËÌí¼Ó¹¹Ô캯ÊýÂß¼­
  }
  public bool WriteFile(string strText,string strContent,string strAuthor)
  {
   string path=HttpContext.Current.Server.MapPath("/TesConvert/news/");//¶¨ÒåhtmlÎļþ´æ·Å·¾¶
   Encoding code=Encoding.GetEncoding("gb2312");//¶¨ÒåÎÄ×Ö±àÂë
   //¶Áȡģ°åÎļþ
   string temp=HttpContext.Current.Server.MapPath("TesConver/text.html");
   StreamReader sr=null;
   StreamWriter sw=null;
   string str="";
   try{
    sr=new StreamReader(temp,code);
    str=sr.ReadToEnd();//¶ÁÈ¡Îļþ
   }catch(Exception exp){
    HttpContext.Current.Response.Write(exp.Message);
    HttpContext.Current.Response.End();
    sr.Close();
   }
   string htmlfilename=path+DateTime.Now.ToString("yyyyMMddHHmmss")+".html";
   //Ìæ»»ÄÚÈÝ
   //Õâʱ£¬Ä£°åÎļþÒѾ­¶ÁÈëµ½Ãû³ÆÎªstrµÄ±äÁ¿ÖÐÁË
   str=str.Replace("ShowArticle",strText);//Ä£°åÒ³ÖеÄShowArticle
   str=str.Replace("title",strText);
   str=str.Replace("content",strContent);
   str=str.Replace("author",strAuthor);
   //дÎļþ
   try{
    sw=new Strea


Ïà¹ØÎĵµ£º

FCKeditor ÔÚASP.Net ÖеÄʹÓÃ˵Ã÷


FCKeditor ÔÚASP.Net ÖеÄʹÓÃ˵Ã÷
[ 2008-7-23 23:41:00 | By: »ª×Ó ]
 
2
ÍÆ¼ö
 
FCKeditor ÊÇÒ»¸öÔËÐÐÔÚä¯ÀÀÆ÷É쵀 Java Ó¦ÓóÌÐò¡£Ëû¿ÉÒÔ²»ÒÀÀµÈκηþÎñÆ÷¶ËÓïÑÔÔËÐС£²»¹ý£¬¸üºÃµÄʹÓ÷½·¨ÊÇÄãʹÓÃÒ»ÖÖ·þÎñÆ÷¶ËÓïÑÔÀ´µ÷ÓÃËû¡£
ÔÚASP.Net ÖУ¬ÓÐÒ»¸öÏֳɵŤ¾ß°ü¿ÉÒÔÈÃÄã°Ñ FCKeditor ×÷Î ......

Asp.net mvc

MVC(¼´Ä£ÐÍ-ÊÓͼ-¿ØÖÆÆ÷)
       MVC(Model-View-Controller)ÓÃÓÚ±íʾһÖÖÈí¼þ¼Ü¹¹Ä£Ê½.Ëü°ÑÈí¼þϵͳ·ÖΪÈý¸ö»ù±¾²¿·Ö:Ä£ÐÍ(Model),
ÊÓͼ(View)ºÍ¿ØÖÆÆ÷(Controller)
       MVCµÄÓŵ㣺
1¶à¸öÊÓͼ¶ÔÓ¦Ò»¸öÄ£Ð͵ÄÄÜÁ¦
......

ASP.NET ½«Êý¾Ý°ó¶¨µ½ TreeView Web ·þÎñÆ÷¿Ø¼þ


      ʹÓà ASP.NET TreeView ¿Ø¼þ¿ÉÒÔÇáËɵذ󶨵½Ö§³Ö IHierarchicalDataSource ½Ó¿ÚµÄÊý¾ÝÔ´£¬ÀýÈ磺XmlDataSource ÀàºÍ SiteMapDataSource Àà¡£´ËÍ⣬Äú»¹¿ÉÒÔÍêÈ«¿ØÖƽ«Êý¾ÝÔ´µÄÄÄЩ×Ö¶ÎÓÃÓÚ Text¡¢Value ºÍÆäËû TreeNode ÊôÐÔ¡£
 
Ò»¡¢°ó¶¨µ½ XML Îļþ
TreeView ¿Ø¼þÖ§³Öµ½ XML ......

asp.netÖÐSystem.DateTime.Now.ToString()µÄһЩÓ÷¨

//2007Äê4ÔÂ24ÈÕ
     this.TextBox6.Text = System.DateTime.Now.ToString("D");
     //2007-4-24
     this.TextBox7.Text = System.DateTime.Now.ToString("d");
     //2007Äê4ÔÂ24ÈÕ 16:30:15
     this. ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ