Is it possible to use redirectToUrl with out using the extension '.castle'

2 views
Skip to first unread message

Kcube

unread,
May 22, 2009, 4:33:40 AM5/22/09
to Castle Project Users
Is it possible to use redirectToUrl with out using the extension
'.castle'

What i have is this
RedirectToUrl("/Login/UserLogin.castle");

Can i achieve this , I just dont want to hardcode the '.castle'
extensin to code
RedirectToUrl("/Login/UserLogin");

Jimmy Shimizu

unread,
May 22, 2009, 4:35:23 AM5/22/09
to castle-pro...@googlegroups.com
Use Redirect("Login", "UserLogin")

Kcube

unread,
May 22, 2009, 4:55:16 AM5/22/09
to Castle Project Users
Thanks, So with RedirectToUrl (with out controller , action) it wont
work with out extension. right?
> > RedirectToUrl("/Login/UserLogin");- Hide quoted text -
>
> - Show quoted text -

Jimmy Shimizu

unread,
May 22, 2009, 4:58:12 AM5/22/09
to castle-pro...@googlegroups.com
It is, as the name implies, a redirect to a static url. If you want to
take advantage of dynamic routing-rules, different extensions etc you
need to use the other methods as Redirect(), RedirectToAction(),
RedirectUsingRoute()
Reply all
Reply to author
Forward
0 new messages