Implementation of various business logic for the same markup
<p>Good day!
I'm working on a ASP.NET project refatoringom and faced such a problem, because the project is international, there are several of its locations and in many places on the business logic, specific actions are solved with the help of a not so sly inspection:</p>

<pre class="lang-cs prettyprint-override"><code>    if (IsChina) 
    {
        ...
    }
    else if (IsFrance)
    {
        ...
    }
</code></pre>

<p>Naturally such code quickly grows, it becomes unbearable and you can not support the re-use. As a result, when the problem appeared to change the layout for a particular location, it had to make to the code behind, what is even more terrible.
It turns out we have two problems:
A. Requires different markup to the same (similar) business logic
Two. Need the same layout with different business logic</p>

<p>If the first paragraph all just decided literate class hierarchy and inheritance, then the second problems, the most important of which is to duplicate the layout. So what is my question, can we somehow inherit the layout (without adding it to the code behind) or something with the help of a trick one ASCX file to bind several implementations of business logic, which in turn would be dynamically connected at the right time. Maybe someone with something similar has already experienced?</p>

<p>Thank you!</p>
