﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebDesktop - WebContextMenu problem</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/WebContextMenu-problem/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>WebContextMenu problem</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/WebContextMenu-problem/</link><pubDate>Thu, 10 Oct 2013 02:26:50 GMT</pubDate><dc:creator>hans@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;Thank you for the question.&lt;br /&gt;&lt;br /&gt;This issue occurs due to the ASP.NET Button’s ID value has changed when the Button is being rendered.&lt;br /&gt;The changing happen due to us set the ClienIDMode property to “AutoID”, in web.config file.&lt;br /&gt;The Button ID changed from: “btn” to “ctl00_content_btn”.&lt;br /&gt;If you want to link the Button, you should modify the ControlId value from “btn” to “ctl00_content_btn” as well.&lt;br /&gt;&lt;br /&gt;However, you could prevent the changing ID by set the ClienIDMode property to “Static”.&lt;br /&gt;&lt;/p&gt;&lt;pre&gt;&amp;lt;asp:Button ID="btn" runat="server" Text="Button" ClientIDMode="Static" /&amp;gt;&lt;/pre&gt;&lt;p&gt;I attached the BasicContextMenu_Modified sample so that you could see the result.&lt;br /&gt;&lt;br /&gt;Hope this helps.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Hans.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>WebContextMenu problem</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/WebContextMenu-problem/</link><pubDate>Wed, 09 Oct 2013 11:59:07 GMT</pubDate><dc:creator>John.Bonin@dot.gov</dc:creator><description>&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Came across another possible problem with the WebContextMenu.
 This can be seen in the samples with a slight modification. The issue 
is when the control that is tied to the ConextMenu is in an UpdatePanel,
 any postback causes the context menu to disppaear.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;To see the problem, open up the "BasicContextMenu.aspx" VB sample and add the following code right below the &amp;lt;form tag:&lt;/p&gt;
&lt;p&gt; &amp;lt;asp:ScriptManager ID="ScriptManager1" runat="server"&amp;gt;&amp;lt;/asp:ScriptManager&amp;gt;&lt;br /&gt; &amp;lt;div&amp;gt;&lt;br /&gt; &amp;lt;asp:UpdatePanel ID="UpdatePanel1" runat="server"&amp;gt;&lt;br /&gt; &amp;lt;ContentTemplate&amp;gt;&lt;br /&gt; &amp;lt;asp:Label ID="Label1" runat="server" /&amp;gt;&lt;br /&gt; &amp;lt;asp:Button ID="btn" runat="server" Text="Button" /&amp;gt;&lt;br /&gt; &amp;lt;/ContentTemplate&amp;gt;&lt;br /&gt; &amp;lt;/asp:UpdatePanel&amp;gt;&lt;br /&gt; &lt;/p&gt;
&lt;p&gt;Change the ControlId of the WebContextMenu to "btn":&lt;/p&gt;
&lt;p&gt;&amp;lt;ISWebDesktop:WebContextMenu ID="WebContextMenu1" runat="server" &lt;span style="text-decoration:underline;"&gt;ControlId="btn"&lt;/span&gt;&amp;gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;In the Page_Load event in code-behind add:&lt;/p&gt;
&lt;p&gt;Label1.Text = Date.Now&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Now
 view the page in the browser (I'm using IE8) and right-click on the top
 button (labeled button). Notice the Context Menu is there. Now click on
 the button to cause a partial postback and then right-click on the 
button and notice the context menu is no longer there. &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Any ideas? If I tie the context menu to the page this doesn't happen.&lt;/p&gt;</description></item></channel></rss>