当前位置: 代码迷 >> ASP.NET >> 一个稀奇的有关问题!
  详细解决方案

一个稀奇的有关问题!

热度:9317   发布时间:2013-02-26 00:00:00.0
一个稀奇的问题!!
private     void     Page_Load(object     sender,     System.EventArgs     e)    
                                              {    
                                                                      //     在此处放置用户代码以初始化页面    
                                                                      if(     !     this.IsPostBack)    
                                                                      {    
                                                                      System.IO.DirectoryInfo     info=new     DirectoryInfo(@ "E:\c#示例 ");    
                                                                      foreach(System.IO.FileInfo     f     in     info.GetFiles( "*.cs "))    
                                                                      {    
                                                                                              String     name=f.FullName;    
                                                                                              long     size=f.Length;    
                                                                         
                                              string     s= "     <font     size=2     color=red> "+ " <input     type= 'button '             id= 'd '     onclick= 'alert( 'hello     world '); '         value= ' "+size.ToString()+ " '     </input> ";    
  相关解决方案