Select OK to create the project. Set up the site style A few simple changes will set up the site menu, layout, and home page. Open Views\Shared\_Layout.cshtml, and make the following changes: Change each occurrence of "My ASP.NET Application" and "Application name" to "Contoso University". Add menu entries for Students, Courses, Instructors, and Departments, and delete the Contact entry. The chang
Model View Controller (MVC) MVC is a design pattern used to decouple user-interface (view), data (model), and application logic (controller). This pattern helps to achieve separation of concerns. Using the MVC pattern for websites, requests are routed to a Controller that is responsible for working with the Model to perform actions and/or retrieve data. The Controller chooses the View to display a
Note An updated version of this tutorial is available here using the latest version of Visual Studio. The new tutorial uses ASP.NET Core MVC, which provides many improvements over this tutorial. This tutorial teaches ASP.NET Core MVC with controllers and views. Razor Pages is a new alternative in ASP.NET Core, a page-based programming model that makes building web UI easier and more productive. We
This browser is no longer supported. Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support. ASP.NET documentation Learn to use ASP.NET Core to create web apps and services that are fast, secure, cross-platform, and cloud-based. Browse tutorials, sample code, fundamentals, API reference and more.
ASP.NET MVCはリクエストの内容(JSONデータも)をActionメソッドの引数にマッピングしてくれるので便利です。
ASP.NET MVC で OpenID、OAuth とバリバリ連携 (DotNetOpenAuth) DotNetOpenAuth があまりに使いやすいので、ASP.NET MVC と組み合わせたプログラミングについて書こうと思う。 やりたいこと ASP.NET MVC のプロジェクト テンプレートが作成するフォーム認証では、下図のような「Log On」リンクが表示され、 ここをクリックすると独自のログイン画面を使ったフォーム認証がおこなわれる。 これを Google などの OpenID や OAuth (Live ID など) でログインするようにアプリケーションを改造したいことがあるが、面倒なのは、OpenID や OAuth の処理だ。 そこで、あの DotNetOpenAuth を使って、この面倒な処理を簡単に作ってみようと思う。 知らない人は「怪しいライブラリーを使うのは心配
このようなケースに対応するのが、Razorのセクション機能だ。セクションは、レイアウトに埋め込めるサブのコンテンツ領域と考えればよいだろう。 例えば、以下はデフォルトのレイアウトに対して、ScriptCssセクションを追加した例だ。上の図3における(3)のようなケースを想定している。 <!DOCTYPE html> <html> <head> ……中略…… <script src="@Url.Content("~/Scripts/modernizr-1.7.min.js")" type="text/javascript"></script> @RenderSection("ScriptCss", false) </head> <!DOCTYPE html> <html> <head> ……中略…… <script src="@Url.Content("~/Scripts/modernizr
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く