//保存文件的路径,包括文件名
private string GetSavePath(string FileName)
{
string path=Request.PhysicalApplicationPath +"\\Link_Icon";
return path+"\\"+FileName;
} private bool UpLoad()//上传图片
{
bool flag=false;
string FileName=GetFileName(fileIcon.Value );
string db=Request.PhysicalApplicationPath+"\\#CommCcope.mdb";
string constr="Provider=Microsoft.Jet.OLEDB.4.0;Data Source="+db;
OleDbConnection con=new OleDbConnection (constr);
www. book52.com