Use this code to install the search form with the results displayed in iFrame as follows:
- Replace YOUR_ACCOUNT_ID in this code with your actual account ID in two locations.
- Paste into your .aspx page where you would like the form to be displayed.
<!--Begin Xtreme Locator asp.net Search Box--> <table width="100%"> <tr><td align="center"> <table> <tr> <td colspan="3" bgcolor="#C0C0C0" align="center"> <strong><font color="#000000" face="Verdana" size="2"> Find Nearest Location </font></strong></td> </tr> <tr> <td><font face="Verdana" size="2">Zip</font></td> <td><font face="Verdana" size="2"><input id="zip" name="zip" type="text" value="" size="10"></font></td> <td> <input type="Image" src="http://app.xtremelocator.com/images/go.gif" width="26" height="26" border="0" onclick="var zip=document.getElementById('zip');var ifrm=document.getElementById('xlocator2');if(zip!=null && ifrm!=null){ifrm.src='http://app.xtremelocator.com/visitor/findLocations.php?sid=YOUR_ACCOUNT_ID&zip='+zip.value;}return false;"> </td> </tr> <tr> <td colspan="3" align="center"><a target="xlocator2" href="http://app.xtremelocator.com/visitor/advanced.php?sid=YOUR_ACCOUNT_ID"><font face="Verdana" size="1">Advanced Search</font></a></td> </tr> <tr> <td colspan="3" align="center"><!--Do not remove this link unless you have the proper license to do so!--> <a href="http://www.xtremelocator.com" target="_blank"><font face="Verdana" size="1">Powered By XtremeLocator</font></a> </td> </tr> </table> </td></tr> <tr><td><IFRAME frameborder="0" id="xlocator2" name="xlocator2" height="550" width="100%">Your browser does not support IFRAME</IFRAME></td></tr> </table> <!--End Xtreme Locator Search Box-->
KB » Asp.NET Customization Tips

iFrame Search Form for .NET
Email This Article