I know ;) It's just that addresses come from another helper and so I would need to have something like this: <a href="$Form.HtmlEncode( "$OtherHelper.GetTheUrl()" )">linkText</a>
I now (i.e. before upgrade to Monorail 2) use $Html.Link ( $OtherHelper.GetTheUrl(), 'linkText' ), it's just a bit shorter and simpler. So I'm guessing, there is now no equivalent for HtmlHelper.Link? On 27 Sty, 23:25, John Simons <[email protected]> wrote: > Arthur, > > If all you want is a url then why use a helper? > > <a href="/sometarget.html">linkText</a> > > ________________________________ > From: Artur Dorochowicz <[email protected]> > To: Castle Project Users <[email protected]> > Sent: Thu, 28 January, 2010 9:23:41 AM > Subject: Re: HtmlHelper.Link replacement? > > But how? In HtmlHelper.Link first argument is a url, in UrlHelper I > only see that I must use action, controller/action etc. I want a URL. > > On 27 Sty, 21:50, Patrick Steele <[email protected]> wrote: > > > > > UrlHelper should work: > > >http://www.castleproject.org/monorail/documentation/trunk/helpers/url... > > > --- > > Patrick Steelehttp://weblogs.asp.net/psteele > > > On Wed, Jan 27, 2010 at 3:29 PM, Artur Dorochowicz > > > <[email protected]> wrote: > > > Hello, > > > > Recently deprecated and removed HtmlHelper had a method that I had > > > found quite useful in my app: > > > > public virtual string Link(string target, string linkText) > > > > Is there an equivalent for this available on other helpers? Or do I > > > need to write my own helper for this? > > > > Regards > > > > Artur Dorochowicz > > -- > You received this message because you are subscribed to the Google Groups > "Castle Project Users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group > athttp://groups.google.com/group/castle-project-users?hl=en. > > > __________________________________________________________________________________ > Yahoo!7: Catch-up on your favourite Channel 7 TV shows easily, legally, and > for free at PLUS7.www.tv.yahoo.com.au/plus7 -- You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en.
