بســم الله الـرحمــن الرحيــم
السلام عليكــم ورحمـة الله وبركاتــه
هل انت مطور Asp.Net
إذا سارع بالتحميل
Download the ASP.NET MVC 1.0 Release Candidate
Download the ASP.NET MVC 1.0 Release Candidate
او
ASP.NET MVC Release Candidate 1 Refresh
Bug Fixes Since Beta
The following changes have been made since the Beta release in order to fix bugs.
• DropDownList and ListBox helpers now use ViewData.Eval (instead of the dictionary indexer) to get values, which is consistent with the other helpers.
• Html.BeginForm and Ajax.BeginForm have been fixed to not render a fully qualified URL.
• Authorization filters now run before action-method parameter binding.
• DropDownList now works with validation helpers. If you are using an override that allows a blank value to be selected but the list is associated with a required property, the model binders now report an error if no item in the drop-down list is selected.
• When you are working with a group of radio buttons (by using the RadioButton helper method) with the same form field name, form posts now retain the correctly selected radio button.
• Html.CheckBox no longer renders whitespace between the check box and the hidden input element. Also, it no longer renders HTML attributes on the hidden input element that are used to indicate the existence of the check box.
• When a form posts to an action method that has a parameter name that matches a route parameter, the form value now overrides the route parameter. This fixes an issue in which a form that attempted to post a form field named id would not work because the default route has an id parameter.
• The RenderPartial method no longer resets the content type of the response to text/html.
• The Password method no longer renders the value attribute unless explicitly specified. It no longer reads the ModelState object.
• ASP.NET MVC AJAX helpers were fixed so that the IsMvcAjaxRequest extension method now recognizes PUT and DELETE requests made from the ASP.NET MVC AJAX helpers.
• An issue was fixed with trace output and output caching in which an exception would get thrown.
• An issue was fixed with the default model binder, which would throw a StackOverflowException in some situations. This fix required changes to the model binder API, as described earlier.
• A bug was fixed in which the DropDownList and ListBox methods would not read a selected value from ModelState.
• An issue was fixed in which partial views were not correctly located in a fully compiled, non-updatable site.
• The AuthorizeCore method was updated in the AuthorizeAttribute class to accept an HttpContextBase object instead of an IPrincipal object.
• The Html.ValidationMessage method no longer throws an exception when passed an empty string. Passing in an empty string is valid. Passing in null still throws an exception.
• The ModelState.IsValidField method performs a key prefix match instead of an exact key match.
• An issue was fixed in which the Html.ValidationMessage and Html.ValidationSummary properties displayed exception messages. They now display a generic message that you can override.
• The default Visual Basic template now compiles when Option Strict is enabled.
• The HandleErrorAttribute class now shows the correct error view in IIS. This filter does not run when custom errors are off and when the application is running in localhost debug mode.
• The AddModelError class now accepts an empty string as an error message.
Upgrading from the Beta Release to the Release Candidate
There are not many changes between the Beta and the RC releases. However, you will need to make a few changes to your applications after installing the Beta release. Most of these changes are apparent when you try to compile your application by using the latest release, so we do not list every possible change.
The following list describes some of the changes that you must make.
• Update the references to the following assemblies to point to the RC versions:
• System.Web.Abstractions.dll
• System.Web.Routing.dll
• System.Web.Mvc.dll
Note If you are running ASP.NET 3.5 SP1, you need to update only the System.Web.Mvc assembly reference.
By default, these assemblies are located in the following folder:
%ProgramFiles%\Microsoft ASP.NET\ASP.NET MVC RC
• After you have made these changes, compile your application and resolve any compilation errors. Most of the errors will be the result of one of the breaking changes listed earlier.
• Update the <pages> section the Web.config file In the Views folder to match the following example. (The changed elements are in bold.)
<pages
validateRequest="false"
pageParserFilterType="System.Web.Mvc.ViewTypeParserFilter, System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
pageBaseType="System.Web.Mvc.ViewPage, System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
userControlBaseType="System.Web.Mvc.ViewUserControl, System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<controls>
<add assembly="System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" namespace="System.Web.Mvc" tagPrefix="mvc" />
</controls>
</pages>
السلام عليكــم ورحمـة الله وبركاتــه

