Hello,
I have a table which contains row data as links to .txt files. I want to display the data contained in the .txt file as output in c# MVC .
the table looks like below.
tablefile
\\Isilon\tablefileSCANS\inc\1\nct\2011\08\20110816134516.txt
\\Isilon\tablefileSCANS\inc\1\nct\2011\08\20110801113335.txt
\\Isilon\tablefileSCANS\inc\1\nct\2011\08\20110816134516.txt
\\Isilon\tablefileSCANS\inc\1\nct\2011\08\20110801113335.txt
\\Isilon\tablefileSCANS\inc\1\nct\2011\02\20110221143603.txt
.....
.....
....
Please help me with this.

Vincent Maverick DuranoRank #238 · 10.3K reputationPosted Sep 11, 2019, 2:25 PM EDT
Amit MohantyRank #112 · 20K reputationPosted Sep 11, 2019, 7:52 PM EDT
@TempData["Code"]
Amit MohantyRank #112 · 20K reputationPosted Sep 12, 2019, 9:21 PM EDT
ASP.NET
Palak Patil32 reputationPosted Sep 16, 2019, 4:37 AM EDT
Thank you Amit,
Here is what I added to the controller and View.
Amit MohantyRank #112 · 20K reputationPosted Sep 16, 2019, 8:14 PM EDT
Palak Patil32 reputationPosted Sep 17, 2019, 6:14 AM EDT
Hello Amit, thanks a lot for helping on this.
It did work but the .txt data is displayed in a small pop up wondow as below.
Sonu GuptaRank #1,261 · 1.4K reputationPosted Sep 17, 2019, 8:16 AM EDT
Palak Patil32 reputationPosted Sep 17, 2019, 9:37 AM EDT
Hello Sonu ,
Thanks for the links. I need the application to read the .txt files dynamically. When you look at the below output.
Palak Patil32 reputationPosted Sep 12, 2019, 3:13 AM EDT
Thank you for the replies. I think the answers are concerned with only one .txt file.
which contains different .txt files in each row. So when the user clicks on one link he should get the data contained in that text file.When he clicks the next link he should contain data in that .txt file and so on...