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
Pramod Kumar Nandagiri
NA
484
0
How to assign HTML content to iframe control from asp.net codebehind ?
Mar 16 2012 10:36 AM
Hi,
<iframe id="
myIframe
" runat="server" ></iframe>
I want to assign the html content to iframe control from asp.net code behind page;
this is working fine
myIframe.Attributes.Add("src", "pathtofilewith.html");
but, i don't want to give the path of html file to display i just want to assign some html content which comes from database to iframe control.
i want some thing like this(<html>pramod</html>) to be displayed in iframe control
i tried the bellow ways but nothing is succesful
1) myIframe.Attributes["innerHTML"] = "<h1>Thank You..</h1>";
2) myIframe.Attributes.Add("innerHTML", "<h1>Pramod Nandagiri</h1>");
Reply
Answers (
1
)
Issue in DataSet(.xsd) File
web deployment