Timer Problem Using Marker

Jan 31, 2011 at 9:48 AM

 

<asp:UpdatePanel  runat="server" ID="upnl1" UpdateMode="Conditional" ViewStateMode="Enabled" RenderMode="Inline">
<ContentTemplate>
    <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
    <asp:GoogleMap ID="GoogleMap1" runat="server" RenderMode="Web">
    </asp:GoogleMap>
    </ContentTemplate>
    <Triggers>
        <asp:AsyncPostBackTrigger ControlID="timer1" EventName="Tick" />
    </Triggers>
    </asp:UpdatePanel>
  <asp:Timer runat="server" ID="timer1" Interval="1000" ontick="timer1_Tick" />

Code :

   protected void timer1_Tick(object sender, EventArgs e)
    {
        Label1.Text = DateTime.Now.TimeOfDay.ToString();
    }

 

   protected override void OnLoad(EventArgs e)
    {
      
    }

above Code Working Properly

but am ploted some markers on the map using setmarker function

 protected void setmarker()
    {
        try
        {
                GoogleSize objsize = new GoogleSize(30, 30);
                GoogleMap1.Markers.Clear();
                dt.Rows.Clear();
                dt = bl_obj.getMarker("select * from mmarkers");
                foreach (DataRow dr in dt.Rows)
                {
                    this.GoogleMap1.Markers.Add(new GoogleMarker { Address = dr["0"].ToString(), Title = dr["1"].ToString(), Latitude = Convert.ToDouble(dr["2"]), Longitude = Convert.ToDouble(dr["3"]), OpenInfoBehaviour.Click, Text = HttpUtility.HtmlAttributeEncode("jdhfkjsdhjkhfjkhs") });
                }
               
        }
        catch (Exception)
        {
            throw;
        }
    }

after that the timer is not working 

pls help me to solve the issue