I’d like to implement Dispatching on the host header like stackexchange team did. Any ideas?
I’d like to implement Dispatching on the host header like stackexchange team did. Any
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.