google map help
visit the link for google map
http://www.codeproject.com/KB/scripting/Use_of_Google_Map.aspx#ga
visit the link for google map
http://www.codeproject.com/KB/scripting/Use_of_Google_Map.aspx#ga
Please check this link
http://forums.asp.net/p/1518054/3638886.aspx
Write this code in your cs page on page_load event
protected void Page_Load(object sender, EventArgs e)
{
btnUpload.Attributes.Add(“onclick”, “return validateFileContect(document.getElementById(‘” + fileUpload.ClientID + “‘));”);
}
and after that add the following script in ur aspx page
function validateFileContect(obj){
var fileName = new String();
var fileExtension = new String();
// store the file name into the variable
fileName = obj.value;
// extract and store the file extension into another variable
fileExtension = fileName.substr(fileName.length – 3, 3);
// array of allowed file type extensions
var validFileExtensions = new Array(“jpg”, “png”, “gif”);
var flag = false;
// loop over the valid file extensions to compare them with uploaded file
for(var index = 0; index < validFileExtensions.length; index++){
if(fileExtension.toLowerCase() == validFileExtensions[index].toString().toLowerCase()){
flag = true;
}
}
// display the alert message box according to the flag value
if(flag == false){
alert(‘Your image is not uploaded.Only JPG,GIF,PNG images are allowed.’)
return false;
}
else{
return true;
}
}
Your this problem can be solved by removing your try catch block. i had face the same problem but after removing try catch block my problem has been fixed.
http://www.dhtmlgoodies.com/scripts/form-field-tooltip/form-field-tooltip.html