upload cv


hi ev1

i want upload cv in doc format , show in datagirdview

plz ev1 me how can that

there control in vs 2008,vs2010 known file upload.use in datagridview

you might need use method, findcontrol in datagridview find fileupload control.

  if (fileupload1.hasfile)
            {
                string fileext = system.io.path.getextension(fileupload1.filename);

                if (fileext == ".doc")
                {
                    s = mappath("img");
                    s = s + "/" + fileupload1.filename;
                    fileupload1.saveas(s);
                }
                else
                {
                    response.write("invalid upload file format");
                }




Visual Studio Languages  ,  .NET Framework  >  Visual C#



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

RFC_ERROR_SYSTEM_FAILURE with SAP ECC 6 Unicode

C# System.Data.Common DbCommand and getting Datasets from Oracle