PC Review


Reply
Thread Tools Rate Thread

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

 
 
Luc
Guest
Posts: n/a
 
      15th Nov 2009
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
 
Reply With Quote
 
 
 
 
Andrew Morton
Guest
Posts: n/a
 
      15th Nov 2009
"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

 
Reply With Quote
 
Luc
Guest
Posts: n/a
 
      15th Nov 2009
thanks

"Andrew Morton" <(E-Mail Removed)> schreef in bericht
news:(E-Mail Removed)...
> "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



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Add a StyleSheet to the body dynamically _Who Microsoft ASP .NET 6 18th Sep 2008 08:43 PM
Dynamically setting a MasterPage's <body> tag style Mark Rae Microsoft ASP .NET 12 12th Jul 2006 04:40 PM
Change ImageButton visible property in code dynamically Andy G Microsoft ASP .NET 4 20th Apr 2005 11:59 PM
Finding types inside a method body dynamically =?Utf-8?B?QmlkeWFkaGFyIFBhdHJh?= Microsoft Dot NET Framework 2 18th Apr 2005 10:12 AM
Change name property of control dynamically J. Shrimp, Jr. Microsoft Access Form Coding 2 24th Dec 2004 03:45 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:21 PM.