From: Luc on
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
From: Andrew Morton on
"Luc" wrote
> 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

From: Luc on
thanks

"Andrew Morton" <akm(a)in-press.co.uk.invalid> schreef in bericht
news:7mahr8F3ee30kU1(a)mid.individual.net...
> "Luc" wrote
>> 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


 | 
Pages: 1
Prev: Linq\MSAccess
Next: How to update the web site