This blog post provides a sample which extends the Jobs module sample in the Sitefinity SDK so as to allow upload of files to the job application and to display a link to the uploaded files in the list of submitted applications.
Here is the sample code with the below implementations.
- Add file upload control to the frontend widget that submits job applications JobApplicationUpload.ascx and perform the upload of the document:
Add the logic for document uploading in JobApplicationUpload.cs in UploadApplication method. I have put comments in the method and hope you will be able to make use of them.
2.Add additional column in jobs module uploaded items grid to render a link to the uploaded file
The tricky part is to render the link to the uploaded document in the grid among the other fields. The UploadApplicaiton method returns the link to the document (its a full link that allows you to download or display a document in the browser depending on the document extension ".doc, .pdf").
To render the link as <a> tag in the client template of the grid column use this in JobsDefinitions.cs
Add new DataColumnElement to display the uploaded file link. I have associated the uploaded file with the column LastName and the client template for LastName will display <a> like below:
DataColumnElement lastNameColumn =
HeaderText = Res.Get<JobsResources>().LastName,
And finally, the place to map the uploaded file to one of the Grid columns is:
sender, EventArgs e)
//the ID of the Job
var jobApplicationID = Guid.NewGuid();
var manager =
var application = manager.CreateJobApplication(jobApplicationID);
//addition of the uploaded file
application.LastName = UploadApplication(