Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have written design code into a string variable and on design page i have taken one div tag.
so how can i assign that string to that div tag through something.aspx.vb page
Posted

You have to be able to get the div tag in code behind, read this: how+to+get+div+tags+in+code+behind+file[^]
 
Share this answer
 
Make sure that along with the id, you div must have runat="server", in order to access it from the code behind.

That's it. Now you can access that div and perform the desire operation. :)

-KR
 
Share this answer
 
Comments
Pratiik Miistry 14-Mar-14 6:33am    
@Krunal Rohit37.8K

you are right
Krunal Rohit 14-Mar-14 9:45am    
If you found the solution ,then click on "Accept Solution". That will help others who'd be facing the same problem.

-KR
Pratiik Miistry 31-Mar-14 10:46am    
sure bro
you div tag must have attribute runat="server"

then on vb.aspx you have to assign that string to div like as follows

IDofDivTag.innerHtml = StringVarible

or

IDofDivTag.innerHtml = "...design-code...."
 
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