自分が毎回新規で ASP.NET MVC アプリケーションの開発を始めるときに忘れるので、今までブログに書いた分をまとめてみました。 ASP.NET MVC 5 と限定してあるのは、5 より前のバージョンではバグ持ちの設定を紹介しているからです。 Razor のみを使う ViewEngines.Engines.Clear(); ViewEngines.Engines.Add(new RazorViewEngine()); モバイルビューを無効にする DisplayModeProvider.Instance.Modes.Clear(); DisplayModeProvider.Instance.Modes.Add(new DefaultDisplayMode()); 生成される URL を小文字にする public static void RegisterRoutes(RouteCollec
このブラウザーはサポートされなくなりました。 Microsoft Edge にアップグレードすると、最新の機能、セキュリティ更新プログラム、およびテクニカル サポートを利用できます。 10 年前の ASP.NET Web フォーム アプリケーションに新しい命を吹き込む Julie Lerman コード サンプルのダウンロード レガシ コードとは、あれば邪魔であり、なければ不便なものです。また、アプリケーションの機能が優れているほど、レガシ コードが存在し続ける期間も長くなります。私が初めて開発した ASP.NET Web フォーム アプリケーションは、10 年余りもの間現役を続けています。ようやくこのアプリケーションは、だれかが開発中のタブレット アプリケーションに置き換わろうとしています。しかしその前に、顧客から、新バージョンで収集する予定のデータを顧客企業が今すぐ収集できるようにする新
Contents Scripting with ScriptManager AJAX and ScriptManager Web Services and ScriptManager Authentication and Personalization How It All Works Registering Objects with ScriptManager Putting the AJAX in ASP.NET AJAX Follow the Script Today the consumer of a Web site can be as responsible for its content, direction, and success as the publisher. Social networking sites, blogs, online photo journals
分類:[VB.NET/VB2005 以降] FrameWork 2.0での質問です。よろしくお願いします UpdatePanelが更新される時に動的に追加されるJavaScriptを実行したいのですが何か方法はないでしょうか? UpdatePanelなしの場合は動作しました <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional"> <ContentTemplate> <asp:Button ID="Button1" runat="server" Text="Button" /> <asp:Literal ID="Literal1" runat="s
UpdatePanel内に配置したコントロール(ボタン等)の処理(サーバサイド)でクライアントスクリプトを出力する方法を記述します。 UpdatePanelを利用しない場合は、コントロールのAttributeを利用したり、Page.RegisterClientScriptBlockを利用しますが、UpdatePanel内ではこれらは動作しません。 UpdatePanelと併用する場合には、ScriptManager.RegisterClientScriptBlock( )メソッドを利用します。 サーバサイド処理後にalertスクリプトを出力する例は以下となります。(以下の処理はPage内の処理です。thisはPageを示します) string clientScript = "<script language='JavaScript'> alert('アラート!') </script>";
ASP.NET 3.5から採用されたListViewコントロールにページング機能を付ける場合、DataPagerというコントロールを使う。 これは便利なのだが、一つ困ったことに、データ表示する条件を変えて再表示させると前回のページ位置を保持して先頭ページから表示しないというバグ(?)がある。 具体的に言えば、条件無しで全30件のデータを1ページ10件で表示したとする。 2ページ目に移動した後、条件を変えて検索し結果が13件あったとすると、2ページ目の3件を表示してしまう。先頭から表示するのが普通だと思うがそうならない。 そこで、検索時にDataPagerをリセットさせて先頭ページから表示させようと思うのだが、 これが結構難題だった。プロパティで簡単にできるかと思ったのだが、そのようなプロパティは無く、結局内部でイベントを発生させて先頭に移動させる方法が必要だった。 参考にした海外のサイト:
すべて Microsoft 製品 Microsoft 365 Office Windows Surface Xbox セール サポート ソフトウェア Windows アプリ OneDrive Outlook Skype OneNote Microsoft Teams PC とデバイス Xbox を購入する アクセサリ VR & 複合現実 エンタメ Xbox Game Pass Ultimate Xbox Live Gold Xbox とゲーム PC ゲーム Windows ゲーム 映画とテレビ番組 法人向け Microsoft Azure Microsoft Dynamics 365 Microsoft 365 Microsoft Industry データ プラットフォーム Power Platform 法人向けを購入する Developer & IT .NET Visual Studio
ASP.NET provides many options for storing, retrieving, and displaying data. For developers who are new to ASP.NET, the appropriate options are not always obvious. This topic provides recommendations and guidelines for choosing the options that best fit your scenario. This topic focuses on relational databases. For many scenarios, a NoSQL solution might be a better choice. For more information, see
Table 1. Common Web attacks What are the key facts that emerge from the list? At least the following three, I'd say: Whenever you insert any sort of user input into the browser's markup, you potentially expose yourself to a code injection attack (any variations of SQL injection and XSS). Database access must be accomplished securely, that is, using the least set of permissions ever possible for ac
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く