我在新闻添加页面里面图片保存代码为:String filepath = Server.MapPath("..\\upload\\" + Path.GetFileName(File1.PostedFile.FileName));
插入数据库代码:cmd.Parameters.Add("@Img", SqlDbType.VarChar).Value = "../upload/" + Path.GetFileName(File1.PostedFile.FileName);
添加成功以后数据库里面的地址存为了:../upload/20081230_0a0686e8effdb211a32czJaihLfYhbzB-6651.jpg
我前台读取地址的代码为:<img alt="" src="<%#DataBinder.Eval(Container.DataItem, "Img")%>" style ="width :150px"/>用了datagrid绑定显示的,我运行之后图片没办法读取出来,独到的地址为:http://localhost:2973/upload/20081230_0a0686e8effdb211a32czJaihLfYhbzB-6651.jpg
我去数据库里面把../删除就能读取图片,我在后台代码里面把../山村就提示我找不到Path,我要怎么修改才正确?