Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Created Unassigned: When used inside the area the Remote attribute, you can not reference an external controller [1615]

$
0
0
If you specify an empty string as areaName the Remote attribute, "area" key to RouteData is not added.

However, it is possible if you specify an empty string in the "area", such as UrlHelper is, reference is made to the controller of the root namespace.

I run the following code in "Baz" area.

```
// Generated: /Foo/Bar
Url.Action("Bar", "Foo", new { area = "" });
```

But, the results are different in Remote attribute.

```
// Generated: /Baz/Foo/Bar
[Remote("Bar", "Foo", /* areaName */ "")]
public string Property { get; set; }
```

Performs the addition of the test code, push the modified code

https://aspnetwebstack.codeplex.com/SourceControl/network/forks/shibayan/aspnetwebstack/contribution/6020

Viewing all articles
Browse latest Browse all 7215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>