hi every body i have a question
example if i have url : http://localhost:8512/bookuser/Create
how to get "http://localhost:8512" by code behind in mvc2 ??
thanks regard
The following will give you the protocol, host and port part of the request
Request.Url.GetLeftPart(UriPartial.Authority)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With