Site Search
sitemap • search tips • faqs 
LOG-IN
SUBSCRIBE
PACKAGES
FEATURES
CUSTOMERS
ABOUT US
SUPPORT
Frequently Asked Question #118
How do I create a FusionBot search form (box) on my ASP.NET (aspx) pages?
If you wish to add your search box to an ASPX (ASP.NET) page, you can do so by inserting the following HTML:

<input type="text" name="keys" size="20">
<input type="button" value="Search" onClick="window.location='http://ssXXX.fusionbot.com/b/q?sn=SITENBR&k=' + this.form.keys.value;">

You will need to replace the XXX in the above HTML (in green) with the actual FusionBot server ID (3-digit numeric value) assigned to your account and found in the original search box HTML code provided by FusionBot. You can retrieve a copy of your default HTML code by logging into your account, and selecting the 'get html code' link in the left-hand navigation menu.

You will need to replace the SITENBR in the above HTML (in red) with your actual FusionBot Account ID assigned when your subscription was made. You can retrieve your FusionBot Account ID by logging in, and looking for the field labeled 'FusionBot Account Number:' from the default page (Account Info) tab after logging in.

Note that this method is different to the one described for non-ASPX pages because ASPX pages usually have an all encompassing <form runat="server"> tag, and it is NOT valid HTML syntax to embed <form> tags within one another.

Note also that the HTML provided in the above section does not accept the Enter key on your keyboard. This is to avoid conflict with any other form elements on your page that might require/expect the Enter key. However, if you wish to make it so that the Enter key will submit the query in the search box, then you should replace this line in the above referenced HTML:

<input type="text" name="keys" size="20">

With the following:

<input type="text" name="keys" size="20" onKeyPress="if (event.keyCode==13) { window.location='http://ssXXX.fusionbot.com/b/q?sn=SITENBR&k=' + this.form.keys.value; return false; }">

Please note, if your default search box includes any other options, or hidden values, not shown in the sample, basic HTML, provided above, you will have to modify the supplied code accordingly.

Another alternative, if you are using CSS throughout your site, is to include the FusionBot search box HTML code, as-is, outside of the existing ASPX open and close form tags (<FORM>...</FORM>), in its own <DIV>, and then use CSS to absolutely position the search box <DIV> where you want it to appear on your page(s). This is a much simpler solution to the JavaScript alternative supplied above, provided you are familiar with CSS.


If you did not find an answer to your question, please return to the Support Page and fill out the form provided.


 Featured Customers:
  • Coca-Cola Enterprises
  • Rezidor Hotel Group
  • Covenant Health Products
  • American Electric Power
  • Everywherechair
  • Fleet Safety Equipment, Inc.
  • HandsOnTools
  • Chemglass Life Sciences
  • MerckSerono
  • R-JetTek Inkjet Technology Solutions
  • Madison Gas and Electric
  • TwitterGadget
  • True Beer
  • Galaxy.com
  • Capital Tractor
  • adamanta
  • BBQ Island Outdoor Products
  • Battery Clerk
  • DCU - Digital Federal Credit Union
  • BJJ Sports
  • National Center for Missing and Exploited Children

[Subscribe to FusionBot - Site Search & Sitemap Solutions]
Copyright 1998 - 2016 LOGIKA Corporation. All rights reserved.
[about site search] [advertising] [build vertical search engine] [reseller program] [popular searches] [top clicks] [terms of use] [uptime]