if (FileUpload1.HasFile)
{
if (FileUpload1.PostedFile.ContentType == "txt")
{
Directory.CreateDirectory(Server.MapPath("/Resumes/" + jid + "/"));
//string path = Server.MapPath("/Resumes/" + jid + "/");
FileUpload1.SaveAs(Server.MapPath("/Resumes/" + jid + "/" + FileUpload1.FileName));
query.Resume = "/Resumes/" + jid + "/" + FileUpload1.FileName;
cd.SubmitChanges();
}
else
{
lblmsg.Visible = true;
}
}
n make that lblmsg.text as Attach a txt file like tat...