Well, yes it answers my question - thank you very much! - but I think
FormHelper is part of Monorail and not Brail as such. At least, as far
as I can see it is not available in the asp.net/mvc brail view engine
I am using (the one from mvccontrib).
Instead of using a Formhelper i decided to do it like this:
<form action="${url.Action('Logout', 'Users')}" method="POST">
<div>
<input type="submit" value="Log ud!" />
</div>
</form>
I am not impressed by the Microsoft HTML helpers anyway, so as long as
I don't need the automatic ViewData / valueassociation I think I
prefer not to use them :-)
-- Anders
On 12 Maj, 13:01, Roelof Blom <[email protected]> wrote:
> Hi,
>
> From the top of my head this would be the equivalent Brail
>
> ${ Form.FormTag({ @controller:'Users', @action:'Logout' }) }
> <div>
> ${ Form.Submit('Log ud!') }
> </div>
> ${ Form.EndFormTag() }
>
> The FormHelper documentation can be found
> herehttp://www.castleproject.org/monorail/documentation/trunk/helpers/for...
> The Brail docs are
> here:http://castleproject.org/monorail/documentation/trunk/viewengines/bra...
>
> Does this answer your question?
>
> -- Roelof.
>
> On Tue, May 12, 2009 at 11:24 AM, AHM <[email protected]>wrote:
>
>
>
> > Hey!
>
> > I am using Brail as a view engine for my asp.net/mvc project, so
> > perhaps this forum is the wrong place to ask, but I'm giving it a try
> > anyway, perhaps someone knows something.
>
> > I am trying to convert this piece of C# / webform code to Boo & Brail:
>
> > <% using (Html.BeginForm("Logout", "Users"))
> > {%>
> > <div>
> > <input type="submit" value="Log ud!" />
> > </div>
> > <%} %>
>
> > I have no idea how to use the "using" statement in brail - can anyone
> > point me in the right direction?
>
> > This translated page from some czech guy hints at the existance of a
> > using-keyword in brail, but I can't get it to work, and it doesn't
> > seem to be documented anywhere:
>
> >http://translate.google.dk/translate?hl=en&sl=cs&u=http://rarous.net/...
>
> > Can anyone help me with this? Or perhaps direct me to a forum where
> > some people might be more knowledgeable about Brail & asp.net mvc?
>
> > regards, Anders
>
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---