利用AJAX asp.net2.0做无刷新上传文件!怎么做?
我在页面上加了一个UPDATEPANEL指定到button1的click事件上   
 在updatepanel外   添加一个uploadfile   
 作了个上传类   
    public   static   string   doupload(FileUpload   con,   string   thepa,   string   theweburl,   string   filesize) 
             { 
                         string   back   =    " "; 
                         if   (con.HasFile) 
                         { 
                                     if   (con.PostedFile.ContentLength   >    102400) 
                                     { 
                                                 return   back   =    "文件大于指定大小 "; 
                                     } 
                                     if   (con.PostedFile.ContentType   !=    "image/bmp    "   &&   con.PostedFile.ContentType   !=    "image/pjpeg    "   &&   con.PostedFile.ContentType   !=    "image/gif "   &&   con.PostedFile.ContentType   !=    "image/x-png    ") 
                                     { 
                                                 return   back   =    "文件类型不正确!请选择JPEG|GIF|PNG|BMP格式图片! "; 
                                     } 
                                     con.SaveAs(System.Web.HttpContext.Current.Server.MapPath(fileupload.path(thepa,   theweburl))); 
                         } 
                         return   back; 
             }   
 页面调用   
 protected   void   add_Click(object   sender,   EventArgs   e) 
             { 
                      fileupload.doupload(this.upimg,   this.upimg.FileName,    "upimg ",    "200 "); 
             }   
 当点button的时候   文件不能上传   只有取消   uppanel绑定才能 
 也就是说   无刷新上传就好象事件不响应一样      给个解决方法哦
------解决方案--------------------看下老赵的博客 
 他有一系列文章介绍 
 http://www.cnblogs.com/JeffreyZhao/archive/2007/04/05/Let_UpdatePanel_support_file_uploading_Server_Side_Component.html