forum

Home / DeveloperSection / Forums / Passing arguments to Url.Action

Passing arguments to Url.Action

Anonymous User 1801 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 !

Can you answer this question?


Answer

1 Answers

Liked By