Динамические субдомены в asp.net mvc

используйте < pre> тег (пред отформатированный), который будет использовать моноширинный шрифт (для Вашего искусства) и сохранять весь пробел

<pre>
text goes here and here 
             and here and here            Some out here
     ▄             ▄█▄ █▄       ▄
 ▄█▀█▓ ▄▓▀▀█▀ ▀▀▀█▓▀▀ ▀▀    ▄█▀█▓▀▀▀▀▀▓▄▀██▀▀
██  ██ ▀██▄▄ ▄█  ▀ ░▒ ░▒   ██  ██ ▄█▄ █▀ ██
█▓▄▀██  ▄ ▀█▌▓█    ▒▓ ▒▓   █▓▄▀██ ▓█ ▀▄  █▓
█▒  █▓ ██▄▓▀ ▀█▄▄█▄▓█ ▓█   █▒  █▓ ▒█  ▓█▄ ▒
    ▀▒           ▀  ▀ █▀       ▀▒  ▀  █▀  ░

</pre>  

, Вам, возможно, придется преобразовать любой < к & лейтенант;

10
задан captncraig 30 November 2009 в 19:49
поделиться

2 ответа

IE имеет проблему с цветом фона для элемента TR. Более безопасный способ - установить фон для TD и TH внутри TR:

<table id="tabletest">
    <tr>
        <td>testcell</td>
    </tr>
</table>

<script>
$('#tabletest tr').bind('click', function(e) {
    $(e.currentTarget).children('td, th').css('background-color','#000');
})
</script>

Добавлено: * .yourdomain.com указывает на ваш сервер.

  • Сайт в IIS настроен с нет заголовка хоста. Любые другие сайты размещенный в этом экземпляре IIS на один и тот же IP-адрес должен иметь заголовки Host указано.
  • Ваше приложение должно будет проверить запросить заголовок хоста либо при загрузке страницы, начало сеанса или другое событие.
  • 9
    ответ дан 3 December 2019 в 23:50
    поделиться

    Mostly not a problem. I think!

    In terms of the application/routing the routing starts where the domain ends so mapping multiple domains to the same application is not a problem, that will just work.

    In terms of IIS you can map as many domains as you want (well there's bound to be a limit) to a single site - I'm not sure if you can use a wildcard - what version of IIS are you using?

    When a request arrives there are events you can hook to look at the domain and hence set up parameters you want (user for example), the root URL for the request is available from the context later in the cycle too - but you'll want to pick it up early.

    If you can do wildcards it becomes fairly trivial - pick up the request, validate the subdomain against the users in the database (if not valid redirect to the default site), set the user and carry on through the normal routing.

    If you can't do wildcards then the challenge is adding host headers to the IIS application (website) on the fly from your application as users are added to the database.

    1
    ответ дан 3 December 2019 в 23:50
    поделиться
    Другие вопросы по тегам:

    Похожие вопросы: