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
Define the core components of an ASP.NET MVC application?
What is entitycontainer? : Entity framework
What is the greatest advantage of using asp.net mvc over asp.net webforms?
differences between poco, model first and data first approach?
How we can multiple submit buttons in ASP.Net MVC
Can you explain model, controller and view in mvc?
What is the use of action filters in an mvc application?
What is the difference between entity framework and mvc?
What is html.renderpartial?
What is entity framework firstordefault?
What is the version number for the next version of the .net framework, codenamed �orcas�?
Can I add mvc testcases in visual studio express?
what is use of entity container?
What is main objective of asp.net mvc 4 or what is new in mvc4 ?
What is the meaning of unobtrusive javascript?