how to change dynamically 'oncontextmenu' property of <body>?

  • Thread starter Thread starter Luc
  • Start date Start date
L

Luc

Hi,

in the aspx file, there is following code:
<body oncontextmenu="return false" id="bod1" runat="server">

Now i want to change it dynamically (vb.net)
I typied this: bod1.
hoping the property 'oncontextmenu' would appear behind the dot but it didn't.

Any idea how to do that?
Thanks
Luc
 
in the aspx file, there is following code:
<body oncontextmenu="return false" id="bod1" runat="server">

Now i want to change it dynamically (vb.net)
I typied this: bod1.
hoping the property 'oncontextmenu' would appear behind the dot but it
didn't.

Any idea how to do that?

bod1.Attributes("oncontextmenu")="whatever"

Andrew
 
Back
Top