Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Answer
How to Get InnerHTML of Div
Soft Corner
11y
13.5k
1
Reply
Hi,
I have to get an InnerHTML of Div which contains user controls. I am trying to get directly but its not working
Error: cannot get inner content of MainPanel because the contents are not literal
Dim litHtml As New Literal
litHtml.Text = MainPanel.InnerHtml
<div id="MainPanel" runat="server" enableviewstate="true">
<table width="100%">
<tr>
<td>
<uc1:ucStatistics ID="ucStatistics1" runat="server" />
</td>
</tr>
</table>
</div>
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
Asp.net quiz
How to Use Trree view in asp .net