forum

home / developersection / forums / passing arguments to url.action

Passing arguments to Url.Action

Anonymous User 1983 27-Nov-2014

What is the difference between these two ways of passing arguments to an Action?

 

(1) @Url.Action("MyAction", "MyController")?arg1=5&arg2="hello";

(2) @Url.Action("MyAction", "MyController", new {arg1=5, arg2="hello"});


Updated on 27-Nov-2014

I am a content writter !


Message
Can you answer this question?

Answer

1 Answers

Liked By