configuration settings in asp.net
<p>We have a static html/webform site, the site lacks search functionality, I was able to get yahoo BOSS (Build your Own Search Service) after a few hours yesterday, i got it working (still working on adding missing features like pagination) , I was wondering about the configuration options of the class, as I have a BossSearch.cs in App_Code, with some fields that are set at the top:</p>

<pre><code>public class BossSearch
{
    String sResultsPage = "~/searchResults.aspx";
    String sSearchString="";

    String sApiKey = ConfigurationSettings.AppSettings["BossApiKey"];
    String sSite = "www.oursite.com"; //without http://
    String sQuery = "http://boss.yahooapis.com/ysearch/web/v1/{0}%20+site:{1}?appid={2}&amp;format=xml&amp;start={3}&amp;count={4}";
    String sStart = "0";
    Uri address;

    WebProxy webproxy = new WebProxy("http://192.168.4.8:8080");
    bool bUseProxy = true;

    int nResultsPerPage = 10;

    int nTotalResults = 0;
    ...
</code></pre>

<p>As you can see, i get the BossApiKey from the web.config file, but all others I have them in the declared in the class, should I put all of them in the web.config file? if I'm thinking of reusing the class (should i say class library?) in other websites as well? can I turn it into a dll and what would the advantages be? i read somewhere that a dll has its own config file, is this the way to store those settings? </p>

<p>Apologies for my ignorance, since I'm not that familiar with developing applications (still studying)</p>
