Save the resume in local folder and calendar display problem

Posted by Bhanubysani under ASP.NET on 9/8/2011 | Points: 10 | Views : 889 | Status : [Member] | Replies : 1
i have carreer form in my that to enter date of birth i have displayed a calendar.

but the problem is if i used single text box its working fine.but iam using 3 boxes for date,month, can i assign it 3 text boxes.

i have another issue in that page user post his resume also..for that i placed file upload control.

plz help me in saving the form with word requirement is i want to display the word document also for recruiters..plz help me in doing this.. how to save the word document.which is the right way either saving the form in localfolder or saving the entire documnet in databse..and how to dispaly to the recruiters

Bhanu Prakash Bysani


Posted by: Prabhakar on: 9/8/2011 [Member] [MVP] Starter | Points: 25

Hi Bhanubysani

if u want to save Resume so use this code . .

 string strFileName = null;

HttpPostedFile attFile = FileUpload1.PostedFile;
strFileName = Path.GetFileName(FileUpload1.PostedFile.FileName);
FileUpload1.SaveAs(Server.MapPath("download/" + FileUpload1.FileName));
r = "download/" + strFileName;
Label18.Text = strFileName;

and u want to retirve Resume file on Textbox... so u try this code . .

        FilePath = "C:\Prabhu.doc";

if (File.Exists(FilePath))
textBoxContents.Text = File.ReadAllText(FilePath);
Response.Write("<script language='javascript'>window.alert('File not found');</script>");

try it . . .

Best Regard's

Bhanubysani, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response