protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
    {        int movid = Convert.ToInt32(this.GridView1.Rows[e.RowIndex].Cells[0].Text);
        string strsql = "delete from Movies where MovID='" + movid + "'";//这个只是删除数据库里面的数据,但物理文件还在
        //通过movieid获取电影名
        System.IO.File.Delete(Server.MapPath("~/Movies/")+);//这个后面怎么写,怎么获取物理路劲文件名,我是上传电影到Movies文件夹的,怎么通过GRIDVIEW删除删除Movies里的电影呢?
        SqlCommand cmd = new SqlCommand(strsql, con);
        con.Open();
        cmd.ExecuteNonQuery();
        con.Close();  
        this.GridView1.EditIndex = -1;
        this.BindGrid();    }System.IO.File.Delete(Server.MapPath("~/Movies/")+); 后面应该加什么??我是大1新生,刚刚接触,别取笑啊~
 if (FileUpload2.HasFile)
            {
                string fileExtension = System.IO.Path.GetExtension(FileUpload2.FileName).ToLower();
                string[] allowedExtensions = { ".swf",  ".wmv", ".rm", ".rmvb", ".mpeg", ".avi", ".mp4", ".3gp" };
                for (int i = 0; i < allowedExtensions.Length; i++)
                {
                    
                        if (fileExtension == allowedExtensions[i])
                        {
                            fileok2 = true;
                        }
                        if (fileExtension != allowedExtensions[i])
                        {
                            Response.Write("<script>alert('影片格式错误')</script>");
                        }
                    
                    
                    
 
                    
                }
            }
            if (fileok1 && fileok2)
            {                FileUpload1.PostedFile.SaveAs(path + FileUpload1.FileName);
                FileUpload2.PostedFile.SaveAs(path1 + FileUpload2.FileName);
                string picpath = "UploadImages/" + FileUpload1.FileName;
                string moviepath = "Movies/" + FileUpload2.FileName;
                SqlConnection con =DB.getcon();
                string sqlstr = "insert into Movies(CatID,MovName,Movdirector,MovActor,MovDec,MovStartData,MovTime,HitNum,AddDate,MovCountry,MovLanguage,MoveImage,Mov)values('" + mclass + "','" + mname + "','" + director + "','" + actor + "','" + dec + "','" + dt + "','" + length + "',0,'" + dtt + "','" + country + "','" + laguage + "','" + picpath + "','" + moviepath + "')";
                SqlCommand cmd = new SqlCommand(sqlstr, con);
                con.Open();
                try
                {
                    cmd.ExecuteNonQuery();
                    Response.Write("<script laguage='javascript'>alter('上传成功!')</script>");
                }这是上传的部分代码~求大侠们照顾小弟,刚刚接触不太懂。。