sorry for being so dumb about this but I'm still confused. I don't
see how this would be any different. You are saying that I need to
pass the variable from my HTML input to my hidden HTML input with a
runas=server??
I'm heading home soon and I'll give it a try and see what happens. My
head is in the clouds today.
First of all, you cannot call a server code from client script like
this. From what I see in code, v is executed on the server inside a
client js-script. Regarding your first question, why submit() worked
inside <% %> and not onClick event. It works in the former case
because you call it correctly on a <% server %> while in the latter
you tried to execute it as a client script. I am sorry that I didn't
realize this before.
The code should be following
<input id="Submit1" type='submit' value='Find' onserverclick="submit"
runat='server'/>
http://msdn2.microsoft.com/en-us/library/system.web.ui.htmlcontrols.htmlbutton.onserverclick.aspx
In case you want to use ASP.NET control you might have
<asp:Button id="Submit1" onclick="submit" text="Find" runat="server" /
Note, that submit() method should be modified too (the signature):
Sub submit(sender As Object, e As System.EventArgs)
In case you will need a client script from an ASP.NET control, you
should use OnClientClick event, e.g.
<asp:Button runat="server" OnClientClick="ClientJS();"....
Hope it helps to get your code working
Regarding Google Maps. There are very good examples of code in SDK,
did you check it?