Withing a Silverlight Application, how does one get the ID from the URL when using MVC given the URL in the standard MVC Format {controller}/{action}/{id}
Is there anything MVC specific or does one need to parse this URL ‘manually’?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Well that’s simple, either look in Request.Params[“id”] or – and that’s more ellegant – add a argument with the name “id” to you Controller method (case does not matter).
Works even for more complex objects, the MVC does a good job in retrieving the information and matching it to the arguments of the controller method.
Silverlight runs on the client, therefore it cannot access the values on the server. However, the sever can pass the info to the client.