开发者

Dispatching on the host header asp.net mvc

I开发者_如何学Go'd like to implement Dispatching on the host header like stackexchange team did. Any ideas?


This technique is simply taking in HttpContext.Current.Request.Url or another request value and dynamically setting a connection string.

So a user requests horsesaresweet.com and connects to the horsesaresweet database.

Nothing fancy.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜