Here init() function calling from page load.My problem is when I am trying to add some graphics it is giving me error "map is undefined".
How can I solve that?Please note If I will call addgraphics function from input button click then it is not showing any error
1.Is it possible to add graphic from code behind using vb.net?If S how can I access map variable from code behind
Protected Sub Page_LoadComplete(sender As Object, e As EventArgs) Handles Me.LoadComplete
ScriptManager.RegisterStartupScript(Me, Me.GetType(), "init", "init();", True)