0
我有一个jQuery数据模板下面的HTML:URL定义
<a class="comment" style = "text-decoration:underline" href="ItemTitle/${Application.ApplicationId}/${Application.ApplicationName}/${DomainObjectId}/${DomainObjectPropertyNameFormatted}">${DomainObjectPropertyValue}</a>
正如上面的模板大干快上的ItemTitle视图渲染并产生附加的所有URL元素,它的URL 。如果我在“ItemTitle”之前添加“/”,它会转到根IIS网站。我不能使用像Html.ActionLink这样的html助手,因为模板只在页面加载完成后呈现。
如何获取它导航到正确的URL?
为什么不使用完整的URL而不是相对URL? – 2012-04-20 13:39:27
我将如何使用开发机器和生产机器的完整URL?在开发你可能有http:// [some ip]/[path]/ItemTitle vs使用http:// [domainname]/ItemTitle的生产。 – fr3dr1k8009 2012-04-20 13:47:35