Source
ActionLink(HtmlHelper, String, String, Object)
ActionLink(HtmlHelper, String, String, String)
Isn't string an Object? How do I call the first overload with a string as the third parameter?
You will need to cast your string into object (object)"my string".
I know this is really ugly, but this is the only way. And I agree with you that many method overloads from the HtmlHelper are really ambiguous.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With