Click here to Skip to main content
15,907,326 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi I am Developing Portal application in asp.net,c#.I am facing one problem.
Now Im copy and paste from Word data to Asp.net Textbox then I click submit button created Text File using Filestream object.
while I click View Resume(<asp:Hyperlink id=txtView runat="server">View Resume) Then open Text file in URL. Now I could See all data in single Line.While paste in textbox area ,I checked 5000 Charecters only allowed in Textbox.

In my Question How to copy word data format in text file?

Thanks,
Santhosh
Posted

You cannot. Text is text, nothing else. It does not carry formatting information.

—SA
 
Share this answer
 
Comments
24983 12-Nov-12 1:53am    
Thanks...Sergey
In Candidate REsume upload 2 options 1.Fileupload 2.Copy paste Resume.
How to handle copy paste REsume in asp.net .Please Let me know.
Sergey Alexandrovich Kryukov 12-Nov-12 2:30am    
Can you use HTML instead? Every user can save Word file as HTML... Word format is proprietary (even though it's published, so you can develop software which understand the format), so a Web browser won't "understand" it, and text input controls accept only the plain text...
--SA
24983 17-Nov-12 8:44am    
yes its correct...
Use Rich text box control

RichTextBox user control for ASP.NET 1.1[^]

Text box only support Normal text(normal string).
Word data is in Rich Text Format(rtf)so use Rich text box control.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900