2005年7月18日

摘要: //C#public User PopulateUser(IDataRecord dr) {User user = new User();user.UserId = Convert.ToInt32(dr["UserId"]);//检查 NULL 的示例if (dr["UserName"] != DBNull.Value){user.UserName = Convert.ToString(dr["U... 阅读全文
posted @ 2005-07-18 21:24 .net技術 阅读(227) 评论(0) 推荐(0)
 
摘要: 加引用using System.IO;string dr=Server.MapPath(".\\Files"); if(!Directory.Exists(dr)) Directory.CreateDirectory(dr); string fname=Path.GetFileName(File1.PostedFile.FileName); string fullname=dr+"... 阅读全文
posted @ 2005-07-18 00:23 .net技術 阅读(273) 评论(0) 推荐(0)