here i'm using div
function initialize() {
var markers = JSON.parse('<%=ConvertDataTabletoString() %>');
var mapOptions = {
center: new google.maps.LatLng(markers[0].lat, markers[0].lng),
zoom: 15,
mapTypeId: google.maps.MapTypeId.ROADMAP
// marker:true
};
var infoWindow = new google.maps.InfoWindow();
var map = new google.maps.Map(document.getElementById("map_canvas"), mapOptions);
for (i = 0; i < markers.length; i++) {
var data = markers[i]
var myLatlng = new google.maps.LatLng(data.lat, data.lng);
var marker = new google.maps.Marker({
position: myLatlng,
map: map,
title: data.title
});
(function(marker, data) {
// Attaching a click event to the current marker
google.maps.event.addListener(marker, "click", function(e) {
infoWindow.setContent(data.description);
infoWindow.open(map, marker);
});
})(marker, data);
}
}
how to hide that div tag when i click on that button
please help me
it's important to me

Sanjeeb LenkaRank #301 · 8.3K reputationPosted Jul 23, 2013, 11:48 PM EDT
test.Visible = false;//to hide
test.Visible = true;//to show
Riyaz AkhtarRank #2,275 · 619 reputationPosted Jul 24, 2013, 1:51 AM EDT
prathyusha173 reputationPosted Jul 24, 2013, 9:34 PM EDT
when i'm using this test.Attributes.Add("style", "display:none");
here i'm attaching rar file please check it once and help me
please help me
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Jul 24, 2013, 9:42 PM EDT
which div you want to hide;
you can do like this in button click event
test.Visible = false;//to hide
prathyusha173 reputationPosted Jul 24, 2013, 9:43 PM EDT
this div
(map_canvas) function will be not working when i click on button.
and for this div no need to write runat="server"
please help me
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Jul 24, 2013, 9:53 PM EDT
you can do it using jquery.
refer to this link. if any doubt reply
http://simon-holman.net/2010/03/show-and-hide-a-div-using-jquery/
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 24, 2013, 10:02 PM EDT
try like this
Regards,
Iftikar
Riyaz AkhtarRank #2,275 · 619 reputationPosted Jul 24, 2013, 10:50 PM EDT
add OnClientClick="javascript:return HideMap();" in ur button: