Hi all,
I have a single page with a datagrid (on the left hand side) and an iframe (on the right hand side). The datagrid is filled with all vehicles' data from database, while the iframe is filled with a Google map to plot these vehicles.
The iframe actually loads another page to do the plotting.
Issue: I am refreshing the datagrid on timer tick. But, the iframe is not getting refreshed at the same time. So, the map is not getting plotted again with new data. How do I change the iframe src from code behind page on timer tick event?
I have tried the following code on timer tick (code behind) with no effect:
Protected Sub Timer1_Tick(ByVal sender As Object, ByVal e As System.EventArgs)
FillGrid()
createXMLFile()
iframe1.Attributes("src") = "GmapAll.aspx" ( not working )
iframe1.Attributes.Add("src", "GmapAll.aspx") ( not working )
End Sub
FillGrid() method fills the datagrid. createXMLFile() method creates XML file, and it's path is passed to GmapAll.aspx page (which does the plotting).
Pl help me refresh the iframe on timer tick.
Thanks in advance.