I have a map where the user can click on a checkbox and various shapes are display, ie; ZIPs or counties. I'm using the ASP.NET handler (.ashx) to query the database for the particular shape and then format it for the map.
Now I'd like for the user to click on that shape and display an HTML table of say, the population of that ZIP code (shape) there on the map.
I've captured the ZIP shape "ID" on the "map.AttachEvent("onclick", shape_onclick);" and pass that to the Handler for the lookup. I've even formatted the returned data from the database into the HTML table in the Handler.
So my question is: how do I pass this HTML table to the browser? Or is this even the correct approach?
In my Handler for the shapes, I do a "context.Response.ContentType = "text/JavaScript";" so the browser knows I'm sending JavaScript commands.
What do I do to tell the browser this is HTML?
Thanks in advance for your help.
Jay