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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to castle-pro...@googlegroups.com
Use Redirect("Login", "UserLogin")
Kcube
unread,
May 22, 2009, 4:55:16 AM5/22/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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()