Even though some people disagree, there are certain occasions where popups are the way to go, at least that is my opinion. On that note I need help with the following problem.
If there is a different solution that will give me the same results I will accept that. Please, if posible provide the solution in vb.net.
Thank you for your help.
var jsVar ='';
var jsVar2 = document.form1.hiddenURL.value;
/*also tried jsVar2 = '<%=mapcoordinate%>'; by placing the info on a public variable */
/*in both cases only after hitting the button for a second time does jsVar2 fillup*/
var jsVar1 = 'http:\/\/www.bing.com/maps/?v=';
<asp:HiddenField ID="hiddenURL" runat="server" />
<asp checkbox> many of them
<input id="getmapbutton" type="button" onclick="myPopup()" value="POP!"/>
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If IsPostBack Then
Dim eventTarget As String = Me.Request("__EVENTTARGET")
Dim eventArgument As String = Me.Request("__EVENTARGUMENT")
If eventTarget <> String.Empty AndAlso eventTarget = "GetMapURL" Then
'continues the processing
'in the same file
Public Sub GetMapFunction()
hiddenURL.Value = .....