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
Post a Comment