Dynamic html output using <% %>
<p>I have a page which can be in English or Swedish. The page contains a lot of phone numbers. What I want to do is show phone numbers as 0XX XXX XXX when in Swedish mode, and +46(0)XX XXX XXX when in English mode.</p>

<p>I'm not too keen on using unique asp.net-controls for each and every phone number as they are quite a few. What I'm thinking is using &lt;% Phone(); %>. Problem is nothing gets outputed. The debugger does however run the Phone method. Any ideas/recommendations? Can &lt;%%> only be used in conjunction with data controls?</p>

<p>Code:</p>

<pre><code>&lt;strong&gt;Phone:&lt;/strong&gt; &lt;%Phone(); %&gt;418 43 30 30&lt;br&gt;

public string Phone()
{
    if (Session["lang"].ToString() == "SE")
        return "0";
    return "+46(0)";
}
</code></pre>
