i m working in job poratl ,i want to show jobseeker resume content in jobseeker profile .how shall i find out this problem please someone solve my problem give me any solution

Dani AI

Generated

asked how to show a jobseeker's resume in a profile; correctly noted there is no code to work from, and raised the key question about file formats. The correct approach depends on whether resumes are stored as plain text/HTML, or as binary files (DOC, DOCX, PDF). The simplest, safest path is to extract and store readable text for display, and keep the original upload for download/viewing.

Practical workflow that fits most ASP.NET apps:

  • Accept upload and validate MIME type, extension and size.
  • Store the original file (filesystem or varbinary) and also extract plain text/HTML for quick display.
  • For display use an ASP.NET multiline TextBox for editable text, or a sanitized HTML container for formatted content.
  • For DOCX prefer the Open XML SDK for server-side text extraction; avoid Office Interop on a web server. For PDF, use a server library to extract text or serve the PDF to a client viewer (PDF.js) to preserve layout.

Example snippets (do not use Interop on the server):

/* bind stored plain-text to a multi-line TextBox (WebForms) */
TextBoxResume.Text = resumePlainText;
/* extract simple text from DOCX using Open XML SDK */
using DocumentFormat.OpenXml.Packaging;

string ExtractDocxText(string path)
{
  using (var doc = WordprocessingDocument.Open(path, false))
  {
    return doc.MainDocumentPart.Document.Body.InnerText;
  }
}

Key cautions and tips: sanitize any HTML to avoid XSS, enforce upload limits (maxRequestLength/httpRuntime), check MIME type rather than trusting extension, and scan uploads if possible. Storing both the original file and an extracted-text field gives the best UX: quick inline viewing in a TextBox plus an option to download the exact original file. When asking for targeted help, include the upload handler, storage model (DB/file system), and a sample file type.

Recommended Answers

All 2 Replies

What exactly do you need help with? Do you have any code that isn't working? You haven't provided enough info.

In which format are resumes, PDF or .doc(x) or something else?

If you want to show it embeded in web page, check this link: http://www.aspsnippets.com/Articles/Display-Word-document-on-web-page-in-ASP.Net.aspx

If you want to open it in Word on clients machine, then you should include in the response that you are sending Word content, so it would be something like this:

Response.Clear();
Response.AddHeader("content-disposition", "attachment; filename=Yourfile.doc);
Response.Charset = "";
Response.ContentType = "application/ms-word";
Response.WriteFile(Server.MapPath("file path")); 
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.