參考網址:https://stackoverflow.com/questions/17702203/mvc-html-actionlink-removes-empty-querystring-parameter-from-url
@Html.ActionLink("Action", "Controller", new { item1 = new EmptyParameter(), item2 = "value" });
public class EmptyParameter { public override string ToString() { return String.Empty; } }
沒有留言:
張貼留言