Kooboo Forum
»
Kooboo CMS
»
Examples and best practice
»
How to create complete page url with domain?
|
Rank: Newbie Groups: Registered
Joined: 7/28/2010(UTC) Posts: 6
|
I want to add a complete url with domain to mail to reference
<a title="Send via email" target="_blank" href="mailto:?body=Thought you might like this: <%=this.Url.PageUrl("News/Detail",new{UserKey=this.GetContent("News")["UserKey"]})%>&subject=<%=this.GetContent("News")["Title"]%>">email it!</a>
But PageUrl returns absolute path like /News/Detail/News-5
How do I get complete url or current domain name?
|
|
|
|
|
|
|
Rank: Newbie Groups: Registered
Joined: 7/28/2010(UTC) Posts: 6
|
I've found temporary solution:
<%=System.Web.HttpContext.Current.Request.Url%>
|
|
|
|
|
|
|
Rank: Newbie Groups: Registered
Joined: 3/15/2010(UTC) Posts: 3
|
String.Format("http://{0}{1}", CachedData.GetApplication("Application name here").HostName, local_url);
use routing and UrlHelper extensions - the best
|
|
|
|
|
|
Kooboo Forum
»
Kooboo CMS
»
Examples and best practice
»
How to create complete page url with domain?
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.