现在的位置: 首页 > 综合 > 正文

Table的小样式,和Fileupload的小用法

2014年03月28日 ⁄ 综合 ⁄ 共 479字 ⁄ 字号 评论关闭

 关于web控件Fileupload的用法

string  filename=this.FileUpload1.FileName;

this.FileUpload1.SaveAs(Server.MapPath("~/")+filename);

 

给table一个样式

Table ta=new  Tabel();

TableRow    row=new   TableRow();

TableCell     cell=new     TableCell();

cell.text="OK";

row.Cells.Add(cell);

ta.Rows.Add(row);

ta.Style.Add(HtmlTextWriterStyle.TextAlign,"center");        //添加一个样式,字体居中

ta.BorderWidth=1;

ta.Width=750;

ta.BorderStyle=BorderStyle.Dotted;

ta.BorderColor=System.Drawing.ColorTranslator.FromHtml("#4F9D9D");

 

 haha

 

【上篇】
【下篇】

抱歉!评论已关闭.