Ive got my <body> tag setup in my site.master file, and I want to be able to set an attribute of the body in a WebForm.
I thought I could just try and set the page in site.master like '<body id="divBody" runat="server">', and then in my PageLoad on the webform I want to set it on do:-
Public Class _Default
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
divBody.Attributes.Add("oncontextmenu", "return false"))
But this doesnt work.
Any ideas how I can set the Body attributes in a different form?