Use the UrlHelper.For().

You can also use the routing-engine directly, to generate a url for a
specific controll + method. Look at RoutingModuleEx.Engine

Kcube wrote:
> Sorry actually the issue was something else.... i interpreted the
> issue wrongly...
>
> I just want to get the url for that controller + method.
>
>
> For example:
>
> MyProject.Admin.User.cs - GetUser() methods
>
> I want to get the url
>
> ie /admin/user/GetUser.castle
>
> Kind Regards
>
>
> On May 11, 1:02 pm, Roelof Blom <[email protected]> wrote:
>   
>> Not quite sure what you mean, can you provide an example of how the calling
>> code should look like?
>>
>>
>>
>> On Mon, May 11, 2009 at 8:49 AM, Kcube <[email protected]> wrote:
>>
>>     
>>> How to call method of component from other project with out adding
>>> reference. I feel is method in routing class, which help us to call
>>> methods by passing compoment url and methods name.. Can anyone help me
>>> to identify it.
>>>       
>>> Thanks- Hide quoted text -
>>>       
>> - Show quoted text -
>>     
> >
>   

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to