How do I use a wildcard in the URL of my comparison for Request.URL.Host? I have a site that's been running for years with the test site showing as blue. The comparison used to use the entire URL.
@if (Request.Url.Host == "URLtest.site.com") //
{
bodyclass = "test";
}
We are adding a second test site and I'd like to set this one time. So I would like to use a wildcard. Something like this, but it doesn't seem to work. I'm sure I'm missing something simple.
@if (Request.Url.Host == "*test.*") //
{
bodyclass = "test";
}