Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: C# ASP.NET
I have a problem , when I upload a file (image,.doc,.pdf) ,I want to see that file in div or any control from a folder that I save image and pfd,doc.but I am using asp:image I can see only images that I upload . Can anyone suggest any controls that hold both images and pdf,doc file.. here is my code and source code..

<div id="dashboard1">
  <asp:Image ID="imgByeLaw" runat="server" CssClass="ImageForByelaw" />
if (dsGetProjectById.Tables[0].Rows[0]["ByeLawFile"] != "")
                 imgByeLaw.Visible = true;
                 imgByeLaw.ImageUrl = "~/ByeLawFiles/" + dsGetProjectById.Tables[0].Rows[0]["ByeLawFile"].ToString();
Posted 24-Nov-12 18:58pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

You can add another Rich text box control after the image control, and after uploading the doc file, Read all it's text and show in the textbox .
Hope it helps
aravindnass at 25-Nov-12 1:56am
hey... is any example ? plz..
Pro Idiot at 25-Nov-12 2:03am
To extract text from a doc file
aravindnass at 27-Nov-12 5:32am
hai..Pro Idiot ..I am a beginner ...So I can't understand ..plz give another solution..
for display images,pdf,docx in one control

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

  Print Answers RSS
0 OriginalGriff 605
1 Maciej Los 225
2 Abhinav S 171
3 Richard Deeming 160
4 Suvendu Shekhar Giri 159
0 Sergey Alexandrovich Kryukov 9,623
1 OriginalGriff 9,095
2 Peter Leow 5,044
3 Kornfeld Eliyahu Peter 3,373
4 Maciej Los 2,581

Advertise | Privacy | Mobile
Web03 | 2.8.150327.1 | Last Updated 25 Nov 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100