Users Pricing

forum

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

Passing arguments to Url.Action

Anonymous User 2060 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"});


I am a content writter !


1 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md