Hi,
I've got an ASP.NET 2.0 app, and I'm trying to incorporate Google Maps.
The app uses nested master pages, so it seems the only way to add a
<scripttag to the header block is to use
ClientScript.RegisterClientScriptInclude.
The problem I'm having is the script is automatically URLencoding the
script I'm trying to pass, so the ampersands are being lost and
replaced with & which appears to stop the script from working
correctly.
Is there a way to turn off the URL encoding, or another way to do this?
The current code I'm using is:
ClientScript.RegisterClientScriptInclude(this.GetT ype(), "script",
"http://maps.google.com/maps?file=api&v=2&key=ABCDEF");
On another note, I've had to register a client script block with
"<script>onload='load();'</script>" instead of modifying the <bodytag
to include a <body onload=""function. It'd much rather use a body
onload, does anyone know the command to do this?
TIA