Can you enumerate links in C# that pass attributes to a method?
<p>I am trying to create a directory for our website in C#/ASP.NET. I already have the ability to search by name and position when you type it in a textbox.  I want to add the functionality of searching by the first letter of the last name or by clicking on positions.  </p>

<p>I wanted to create my array of letters an links as such:</p>

<pre><code>protected void displayAlphabet() {
    char[] az =
        Enumerable.Range('a', 'z' - 'a' + 1).Select(i =&gt; (Char)i).ToArray();
    foreach (var c in az)
    {
        Response.Write(
            "&lt;a href=\"#\" onclick=\"domainQuery(" + c + ")\"&gt;" + c + "&lt;/a&gt;"
        );
        if (c.ToString() != "z")
        {
            Response.Write("-");
        }
    }
}
</code></pre>
