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

job syspolicy_purge_history job fail in sqlserver 2008

Trying to register with public marketplace error with 'Get-AzureStackStampInformation'