Answer Posted / tiger skumar
We can use the files concept to load the doc file content
into the textbox using the Multiline property.
we have many ways.This is one of the way.
using System.IO;
FileStream fstream = new
FileStream("Sample.doc",FileMode.Open,FileAccess.Read);
StreamReader sreader = new StreamReader(fstream);
txtFileContent.Text = sreader.ReadToEnd();
->change your Text Box Property into tghe multilien txtbox.
Is This Answer Correct ? | 5 Yes | 16 No |
Post New Answer View All Answers
What are the difference between asynchronous controller implementation between asp.net mvc 3 & asp.net mvc 4?
What is the .net framework and how does it work?
How the ‘page lifecycle’ of ASP.Net MVC does works?
i have done enough testing in life but now stated developing intereset in development work,Can i think of entering into development work that too in >Net after more then 4 years of testing experiece?
Explain entity lifecycle? : Entity framework
Explain the tools used for unit testing in ASP.Net MVC
Is .net framework 4.8 the last version?
What are the advantages of mvc over asp.net?
what is model first approach?
What is the advantage of using asp.net routing?
will there be any issues adding a table without primary keys to a data model?
What are scaffold templates in mvc?
What is mapping in entity framework? : Entity framework
what is msl?
Difference between ASP.NET MVC and ASP.NET WebForms?