Hello. I have a problem that I think I'm just missing the bleeding obvious on. I'm not at all proficient or very familiar with javascript, but I can code in ASP.NET, VB.NET and whatnot all day long. Recently I've built a web tool which uses Microsoft Virtual Earth and such. I have some variables in javascript (as that's how you create the map and such with VE) that I need to pass to some ASP.NET variable or control... any kind as long as it works. I can't seem to find any way to properly do this. It seems that it's easy going from ASP.NET to javascript, but not the other way around. Does anyone have any good working suggestions for this? I'm using .NET 2.0. Thanks.
You can put a hidden field on your aspx page, find it in your javascript and set the value, then get the values on postback in your codebehind. If you have multiple values just comma seperate them and split them on the server. You could use AJAX to pass the values to the server.
I wish it were that simple but it's not. Everything I've tried has failed and I don't have much more time to work on this. Any help with actual code would be greatly appreciated. Thanks.