TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Mas
NA
478
70.5k
How can we merge the two web pages (doc and Pdf preview)
Jan 20 2020 12:47 PM
Hello Members,
Hope you are doing good,
Here am attaching the code for DOC, for preview the documents...
For Doc preview i have written one code and for PDF preview we are using Iframes..
I want to merge these two page, If it is PDF it need to go for Iframes and if it is doc or docx it need to go for particular code..
For PDF below is the code.
<!DOCTYPE html>
<html xmlns=
"http://www.w3.org/1999/xhtml"
>
<head runat=
"server"
>
<title>pdf viewer</title>
</head>
<body>
<form id=
"form1"
runat=
"server"
>
<iframe id=
"myFrame"
style=
"display:none"
width=
"600"
height=
"300"
></iframe>
<input type=
"button"
value=
"Submit"
onclick =
"openPdf()"
/>
<script type=
"text/javascript"
>
function
openPdf()
{
var
omyFrame = document.getElementById(
"myFrame"
);
omyFrame.style.display=
"block"
;
omyFrame.src =
"http://www.africau.edu/images/default/sample.pdf"
;
}
</script>
<div>
<asp:TextBox ID=
"searchTxt"
runat=
"server"
Width=
"300px"
Height=
"25px"
Font-Size=
"Medium"
></asp:TextBox>
<input type=
"button"
value=
"Search"
onclick=
"return highlight(text) /*searchPrompt('search text', 'dvWord', false, true, 'red', 'orange')*/"
/>
</div>
</form>
</body>
Can any one guide me here..
Thank you in advance!!
Attachment:
Global.asax.zip
Reply
Answers (
1
)
update multi record datalist
Try to send Image attached Email