Using Address Locator in ASP.NET Web Form

617
0
06-01-2012 07:42 AM
chuckfrank
Occasional Contributor
Is it possible to get an address locator to work inside of an asp.net web form?  I took this sample http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/locator_addres... and put it into an aspx page.  It doesn't show anything, but when I take out the form tags it works fine.  What do I need to do to get it to work inside the form tags?

Here is the body with the form tags uncommented:


<body class="claro">
    <%--<form id="form1" runat="server">--%>
    <div id="mainWindow" dojotype="dijit.layout.BorderContainer" design="sidebar" gutters="false"
        style="width: 100%; height: 100%;">
        <div id="leftPane" class="roundedCorners" dojotype="dijit.layout.ContentPane" region="left">
            Enter an input address and the application will use the sample address locator to
            return the location for street addresses in the United States.
            <br />
            <textarea type="text" id="address" />380 New York St, Redlands</textArea>
            <br />
            <button dojotype="dijit.form.Button" onclick="locate()">
                Locate</button>
        </div>
        <div id="map" class="roundedCorners shadow" dojotype="dijit.layout.ContentPane" region="center">
        </div>
    </div>
    <%--</form>--%>
</body>


Thanks,
Chuck
0 Kudos
0 Replies