Download Code Introduction If your website targets users from different parts of the world, these users might like to see your website content in their own language. Creating a multilingual website is not an easy task, but it will certainly allow your site to reach more audience. Fortunately, the .NET Framework already has components that support different languages and cultures. We will build an
Free. Cross-platform. Open source. A framework for building web apps and services with .NET and C#. Get started Supported on Windows, Linux, and macOS Interactive web UI with C# Blazor is a feature of ASP.NET for building interactive web UIs using C# instead of JavaScript. Blazor gives you real .NET running in the browser on WebAssembly. Learn about Blazor
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.
Free. Cross-platform. Open source. A framework for building web apps and services with .NET and C#. Get started Supported on Windows, Linux, and macOS Interactive web UI with C# Blazor is a feature of ASP.NET for building interactive web UIs using C# instead of JavaScript. Blazor gives you real .NET running in the browser on WebAssembly. Learn about Blazor
ASP.NET MVCはリクエストの内容(JSONデータも)をActionメソッドの引数にマッピングしてくれるので便利です。
It's a step by step tutorial to implement custom role provider and authorization in ASP.NET MVC 4.0 with EF 4.x DB First approach. Step 1: Create new ASP.NET MVC 4 Web Application > Template: Internet Application, View Engine: Razor. Add Models:Step 2: Right Click on Models folder > Add > New Item > Select "ADO.NET Entity Data Model" > Enter Name "SampleModel.edmx" > Add Select "Generate From Data
.NET開発者中心 厳選ブログ記事 開発者が知っておくべき、6つのUIアーキテクチャ・パターン ―― 「matarillo.com」より ―― 猪股 健太郎 2011/12/15 「.NET開発者中心 厳選ブログ記事」シリーズでは、世界中にある膨大なブログ・コンテンツの中から、特にInsider.NET/.NET開発者中心の読者に有用だと考えられるブログ記事を編集部が発掘・厳選し、そのブログ記事を執筆したブロガーの許可の下、その全文を転載・翻訳しています。この活動により、.NET開発者のブログ文化の価値と質を高め、より一層の盛り上げに貢献することを目指しています。 Martin Fowler氏の『GUI Architectures』を訳して公開しようと思ったのだが、FAQページに「PofEAAの続編などは商業出版する予定なので翻訳はしないでほしい」と書いてある。なので翻訳の公開はやめて、「
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
昔、JavaのフレームワークであるStrutsも出てくる前、MVCモデルにおけるControllerの役割というのは、 「ロジックもデータも見ない現場監督のような役割」 と学んだ。だから昔、ServletではMVCアーキテクチャを学んだ時に、こんなControllerを書いていた。 [とりあえずRequestオブジェクトを受け取る] | [validationロジックに引き渡す。データの中身は見ない] | [例外が発生したらエラーView処理クラスに引き渡す。何のエラーかは細かく知らない] | [次にロジック処理クラスに渡す。最終的にDBのテーブルとマッピングしたデータはJavaBeansというデータクラスが保持する] | [例外が発生したらエラーView処理クラスに引き渡す。何のエラーかは細かく知らない] | [Viewの生成オブジェクトにJavaBeansを渡す] | [Viewオブジ
ちょっとASP.NET MVCのController単位でIPアドレス制限してみるテスト(・∀・) とりあえずIPアドレスチェックするクラスをこんなカンジで。 // IPアドレスヘルパー public static class IPAddressHelper { // addressがsubnet/mask内か判定 public static bool IsAddressInSubnet(IPAddress address, IPAddress subnet, IPAddress mask) { byte[] addressBytes = address.GetAddressBytes(); byte[] maskBytes = mask.GetAddressBytes(); byte[] maskedAddressBytes = new byte[ addressBytes.Length
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く