c# - Get current domain in ASMX -


How do I get the current domain in C # in an asmx web service that was called on the webservice? HttpContext.Current.Request.Url.Host what I want is kindof return but instead I just need to. I know that I can just cut that string, but it looks really elegant. Thanks

Here helps:

  Request.Url.GetLeftPart (UriPartial.uthorization)  

Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -