Click here to Skip to main content
15,174,850 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi iam banu priya

i need to change element of div by using asp.net is there any possible to do that??
C#

Posted
Comments
wings_ 28-Sep-12 7:06am
   
your question is not clear

firstly,give id and runat="server"
<div id="divCenter" runat="server" class="divhead"></div>

then use innerHtml
string str="Contact Center";
divCenter.InnerHtml = str;

hope it helps you...
   
yup Freind , This is possible even you can change the content of any HTML tag. for this just asign your string to <divid>.InnerHTML ="your content"..

Thanks,
Ambesha
   

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