Click here to Skip to main content
15,913,115 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to display Dynamic html C# on page which is under masterpage, how to set its position.

I have Binddata() class for Dynamic html and I have taken Div id="myDiv"

I tried to display with Div Id but not possible to do. Please help!
Posted

1 solution

use it in the content page
HtmlGenericControl Mydiv = (HtmlGenericControl)Page.Master.FindControl("myDiv");
 Mydiv.InnerHtml=""
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900