dougbu
37b2bf4997
Fix #522 , [MusicStore]: Html.BeginForm() while generating the action url
...
should consider the application base path
- `request.BasePath` was indeed ignored
- also simplify `formAction` calculation using the higher-level
`PathString.Add()` overloads
2014-05-11 22:31:28 -07:00
Yishai Galatzer
db3cdfb97a
Remove content (and versions from AssemblyInfo)
2014-05-11 08:42:32 -07:00
Yishai Galatzer
ece20cacce
Fix #339 , optional parameter detection was broken
2014-05-10 23:41:58 -07:00
Ryan Nowak
b9dbb6fe57
Fixing action selection with complex types - MVC scenarios with more than one parameter are broken right now
2014-05-09 18:08:54 -07:00
Ryan Nowak
88be38a506
Fix for issue #339
2014-05-09 16:54:10 -07:00
harshgMSFT
00c30791ea
Fixing LinkController in the sample
2014-05-09 16:09:51 -07:00
N. Taylor Mullen
9eaa62125f
Trim Razor.Host dependencies.
...
Several dependencies were added to the Razor.Host project that weren't needed. Removed them in order to reduce the dependency chain for tooling.
2014-05-09 11:36:09 -07:00
dougbu
0b327ba7b4
Use `BeginForm()` in MVC sample
2014-05-09 10:40:56 -07:00
dougbu
dd4fa762d5
Change `BeginForm()` to add query string when called without parameters
...
- use the request's Path and QueryString rather than default Action() return
value
- actual special case detects all parameter values match the defaults
- this slightly expands the scenarios where the query string is added but
removes an odd inconsistency between `html.BeginForm()` and (say)
`html.BeginForm(FormMethod.Post)`
Fixes #278
2014-05-09 10:35:36 -07:00
David Fowler
ade41533f1
Updated the Startup
2014-05-09 00:48:26 -07:00
Andrew Peters
f13865dedc
Updating copyright headers
2014-05-08 23:01:20 -07:00
Eilon Lipton
11083cea32
Create LICENSE.txt
2014-05-08 16:33:03 -07:00
Yishai Galatzer
55f4dc4f53
Remove the area routes
...
Add id? to the routes
2014-05-08 15:45:10 -07:00
Wei Wang
dc8b5010a0
Merge branch 'sort-dependencies' into dev
...
Conflicts:
src/Microsoft.AspNet.Mvc.Core/project.json
src/Microsoft.AspNet.Mvc.Razor.Host/project.json
src/Microsoft.AspNet.Mvc.Razor/project.json
2014-05-08 11:16:25 -07:00
Wei Wang
bc9cc68bf0
Fix position of brace
2014-05-08 10:50:10 -07:00
Pranav K
eb55375fc7
Renaming WebFx.sln to Mvc.sln as part of rename
2014-05-08 09:48:53 -07:00
David Fowler
3b31df3d29
React to renames
2014-05-08 03:24:18 -07:00
David Fowler
6fb34c6ab7
React to renames
2014-05-08 03:06:18 -07:00
David Fowler
c94cfc5b0e
Updated to use the new Roslyn.
2014-05-07 22:53:45 -07:00
Wei Wang
7b2feab670
Sort dependencies and remove duplicates in dependencies
2014-05-07 18:24:04 -07:00
Pranav K
4566947e33
Change ModelState.IsValid back to bool
2014-05-07 17:41:47 -07:00
Ryan Nowak
b2c9b3b5d3
Unblocking the CI
...
DataAnnotations used to reference System.Reflection.Compatibility, which
was giving us a reference to some methods "for free". Really we should
have been pulling in this package all along.
2014-05-07 15:58:24 -07:00
lajones
235707ec8a
Microsoft.ComponentModel.DataAnnotations is being renamed to Microsoft.DataAnnotations
2014-05-07 13:35:36 -07:00
sornaks
3b7983181d
WebFX 98 - Adding GetValidationAttributes support
2014-05-07 12:52:48 -07:00
harshgMSFT
bbafa0a29a
Tests for AntiForgery System.
2014-05-07 10:27:01 -07:00
harshgMSFT
b444f66689
Adding ValidateAntiForgeryTokenAttribute also fixing a bug in token deserialization.
2014-05-07 10:01:06 -07:00
Pranav K
904c91d2b9
CompositeModelBinder should only validate the object graph at the top
...
level.
DataAnnotationsModelValidator should prefer the container to Metadata.Model
Fixes #247
2014-05-06 17:39:50 -07:00
Chris Ross
18d3395a5e
Rename ServiceCollectionExtension class.
2014-05-06 16:21:17 -07:00
Wei Wang
e800fcd44f
Eliminate duplicated dependencies
2014-05-06 15:27:10 -07:00
Pranav K
076dedcca5
Reacting to package and namespace changes
2014-05-06 14:06:29 -07:00
harshgMSFT
9b79664e2f
Fixing Build break due to namespace move.
2014-05-06 10:04:58 -07:00
Wei Wang
4210211c79
Update dependency namespace
2014-05-05 20:01:04 -07:00
Ryan Nowak
abbaa11212
Incorporate name changes: HttpAbstractions
2014-05-05 17:14:08 -07:00
Ryan Nowak
4ece9969bf
HttpAbstractions
2014-05-05 16:29:14 -07:00
Sebastien Ros
6f16dabf08
Renaming Microsoft.AspNet.Security namespace
2014-05-05 16:13:54 -07:00
Ryan Nowak
28fee3470f
Controller base class now implements IActionFilter
2014-05-05 15:47:16 -07:00
Ryan Nowak
ae4e3bc61d
Adding controller-as-filter support
...
If the controller implements IFilter, it will be added to the filters
collection.
It's hardcoded to be 'first' as it was in MVC.
2014-05-05 15:43:29 -07:00
dougbu
67b33868a3
Add `ListBox()` and `ListBoxFor()` helper methods
...
- copy from legacy MVC
- get `ListBox[For]()` methods in correct places and working
- also usual stuff: `var`, `[NotNull]`, remove `IDictionary<,>` overloads
- `ListBoxHelper()` -> `GenerateListBox`
- already had all the bits needed in `GenerateSelect()`
- special-case `null` or empty `name` in GenerateSelect()
- ensure `ArgumentException` has correct parameter name
- lower-level problem affected `CheckBox()` as well
- use `ListBox()` and `ListBoxFor()` in MVC sample
- use `ListBox()` in an editor template
2014-05-05 14:26:06 -07:00
Ryan Nowak
7a8dc36553
Adding controller-as-filter support
...
If the controller implements IFilter, it will be added to the filters
collection.
It's hardcoded to be 'first' as it was in MVC, but can be overridden by
implementing IOrderedFilter.
2014-05-05 14:03:01 -07:00
Ryan Nowak
a9a7663cbd
Update MVC for reflection package changes
2014-05-05 10:38:07 -07:00
Louis DeJardin
bbcac43aaa
Updating DataAnnotations version reference
2014-05-02 20:53:12 -07:00
Ryan Nowak
490b6d1434
IServiceContainer changes should have added this
2014-05-02 19:03:32 -07:00
Ryan Nowak
9c75813c9a
Add reference to claims
...
(cherry picked from commit e1154c7dbfcf6bc91ff266da08b67cbb32b270a8)
2014-05-02 18:46:02 -07:00
N. Taylor Mullen
2ce4c56915
Fixed sample to not override User property.
...
#277
2014-05-02 15:24:45 -07:00
Louis DeJardin
849d8db8e6
Updating build scripts
2014-05-02 15:07:38 -07:00
Louis DeJardin
4206c9f398
Updating build scripts
2014-05-02 14:54:34 -07:00
N. Taylor Mullen
6dc6ba6d37
Add User helper to controllers and views.
...
#277
2014-05-02 14:48:21 -07:00
dougbu
31cdc09647
Move Microsoft.AspNet.RequestContainer dependency from MVC sample to MVC
...
- 🐛 fix; fixes #346
2014-05-02 14:29:19 -07:00
Hao Kung
9bf42374b0
Fix for moving extension methods to IServiceCollection
2014-05-02 12:37:05 -07:00
Hao Kung
1faa6f018b
Switch to use IServiceCollection
2014-05-02 12:22:49 -07:00