本帖最后由 zhang1struts1yun 于 2013-05-27 16:19:34 编辑

解决方案 »

  1.   

    用js重新赋值可以,但是比较麻烦。
    用updatepanel吧,通过trigger
      

  2.   

    上面一个问题不管, 
       下一个问题: 上传附件的时候如何上传到服务器( 还没有发布到IIS上), 数据库连接的都是 IP地址
       这个怎么弄
    贴出部分代码,            HttpPostedFile file = context.Request.Files["Filedata"];
                string uploadPath =
                    HttpContext.Current.Server.MapPath(@context.Request["folder"]) + "\\";
    .......
                if (file != null)
                {
                    if (!Directory.Exists(uploadPath))
                    {
                        Directory.CreateDirectory(uploadPath);
                    }
                    //这句是上传到客户端 也就是本机(我要上传到服务器  该怎么写...)
                    file.SaveAs(uploadPath + "\\" + temp + "\\" + file.FileName);
      

  3.   

    发布到IIS上的项目,客户端等于服务器端 ,但是现在没发布,在局域网里面上传 这个不会...