Simple Marker Based on Address using the Google API

If you need to show a marker on a map based on an user inputted address, the Google API provides you a way. You can use the code below to create your own map you just need to get a Google Maps API key from Google Maps and insert it in line 6. In line 30 you can add html markup to modify how the call out box appears and what it contains. Just expand the code box below to check it out.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
<html xmlns="" xmlns:v="urn:schemas-microsoft-com:vml">
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<script type="text/javascript">

var map;
var geocoder;

function initialize() {
map = new GMap2(document.getElementById("map_canvas"));
map.setCenter(new GLatLng(27.174858, 78.042383), 12);
map.addControl(new GLargeMapControl());
geocoder = new GClientGeocoder();

function addAddressToMap(response) {
if (!response || response.Status.code != 200) {
alert("Sorry, we were unable to geocode that address");
} else {
place = response.Placemark[0];
point = new GLatLng(place.Point.coordinates[1],
marker = new GMarker(point);
marker.openInfoWindowHtml('The Place you entered: '+place.address + '<br>');

function showLocation() {
var address = document.forms[0].q.value;
geocoder.getLocations(address, addAddressToMap);



<body onload="initialize()">
<span class="style1">
<form action="#" onsubmit="showLocation(); return false;">
<b>Search for an address:</b>
<input type="text" name="q" value="" class="address_input" size="40" />
<input type="submit" name="find" value="Search" />
<div id="map_canvas" style="width: 500px; height: 500px"></div>

Using CDOSYS to Send Email with GoDaddy

CDOSYS is part of the System.Web.Mail namespace and is installed by default on Windows 2000 and Windows XP platforms. It replaces CDONTS for sending SMTP email messages and can be used with GoDaddy IIS 6 and IIS 7 Windows hosting accounts. The following code sample demonstrates how to create, format, and send email with GoDaddy.

The server “” is used to send email from your GoDaddy hosted domain. You must populate the SmtpMail object’s SmtpServer property with this value. GoDaddy’s hosting servers allow for email attachments up to 30 MB.

// language -- C#

// import namespace

using System.Web.Mail;

private void SendEmail()


const string SERVER = "";

MailMessage oMail = new System.Web.Mail.MailMessage();

oMail.From = "emailaddress@domainname";

oMail.To = "emailaddress@domainname";

oMail.Subject = "Test email subject";

oMail.BodyFormat = MailFormat.Html; // enumeration

oMail.Priority = MailPriority.High; // enumeration

oMail.Body = "Sent at: " + DateTime.Now;

SmtpMail.SmtpServer = SERVER;


oMail = null; // free up resources


GoDaddy SQL Server Database Setup – Connection String

Before you upload your ASP.NET 3.5 application onto your GoDaddy hosting server, you need to modify the connection strings section of your web.config file.


<add name=”Personal” connectionString=”; Database=DB_675; User ID=user_id; Password=password; Trusted_Connection=False” providerName=”System.Data.SqlClient” /> <remove name=”LocalSqlServer”/> <add name=”LocalSqlServer” connectionString=”; Database=DB_675; User ID=user_id; Password=password; Trusted_Connection=False” providerName=”System.Data.SqlClient” />


NOTE: You may want to back up the web.config file on your local computer or simply comment out your current connection strings before you make any changes. This way, you can easily return to developing your application on you local computer.

This is an example of the connection strings section that will connect an ASP.NET 3.5 application to one of the GoDaddy SQL Servers:
NOTE: You can find your server name, database name, user ID, and password in the SQL Server section of your GoDaddy Hosting Control Center. These connection string values map to host name, database name, user name, and password, respectively. The user name and password values are those specified during SQL database (not hosting account) creation.