Timer issue on Asp.Net
<p>I have encountered a serious issue in asp.net which is stopping me going further.</p>

<p>The issue is due to server side timer control. The following is the scenario,</p>

<p>When main page loads , timer will start automatically and it should keep run throughout the application. My page contains Infragistics controls.</p>

<pre><code>&lt;body&gt;
    &lt;form id="form1" runat="server"&gt;
    &lt;div&gt;
        &lt;asp:ScriptManager ID="ScriptManager1" runat="server"&gt;
        &lt;/asp:ScriptManager&gt;
     &lt;asp:UpdatePanel ID="UpdatePanel1" runat="server" onload="UpdatePanel1_Load"&gt;
            &lt;ContentTemplate&gt;
                &lt;asp:Timer ID="Timer1" runat="server" Enabled="true" Interval="10000" /&gt;
            &lt;/ContentTemplate&gt;
        &lt;/asp:UpdatePanel&gt;
        &lt;ig:WebDataMenu ID="WebDataMenu1" runat="server" OnItemClick="wdmenu_Context_ItemClick"&gt;
            &lt;Items&gt;
                &lt;ig:DataMenuItem Key="0" Text="Add" &gt;
                &lt;/ig:DataMenuItem&gt;
                &lt;ig:DataMenuItem Key="1" Text="Edit"&gt;
                &lt;/ig:DataMenuItem&gt;
            &lt;/Items&gt;
       &lt;ClientEvents ItemClick="wdmenu_Context_ItemClick" /&gt;
        &lt;/ig:WebDataMenu&gt;
    &lt;/div&gt;
    &lt;/form&gt;
&lt;/body&gt;
</code></pre>

<p>If i open model dialog and after 2 to 3 sec , i am  closing the model dialog... the wdmenu_Context_ItemClick server side event (which is for opening model dialog ) is firing <strong>two times...</strong></p>

<p>Also on click of that button , i am opening model dialog using java script which is shown below</p>

<pre><code>&lt;head runat="server"&gt;
    &lt;title&gt;Untitled Page&lt;/title&gt;
    &lt;script language="javascript" type="text/javascript"&gt;
   function wdmenu_Context_ItemClick(sender, eventArgs)
    {

        var win = window.showModalDialog("Default2.aspx", "Dialog", 'center:yes;resizable:no;dialogHeight:500px;dialogwidth:660px');
    }
    &lt;/script&gt;

&lt;/head&gt;
</code></pre>

<p>Please help me regarding this....</p>
