Avatar of Philippe Renaud
Philippe Renaud
Flag for Canada

asked on 

Change body id of MasterPage From another ASPX page

Hi, I just bought a HTML template to do my website. As I thought, it comes with CSS stylesheet. The thing is, in the HTML pages, in each you have a different body ID to represent different section of the layout in the CSS.

Now when I turn that to .ASPX, having a Template.Master,
I will need to dynamically change the body ID of the masterpage if I want to follows the CSS stylesheet. I tryed in my other ASPX behind-code to change it with a Page.DataBind() but does not work...  

Any ideas ?
.NET ProgrammingASP.NET

Avatar of undefined
Last Comment
ChronJob

8/22/2022 - Mon