Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
アプリケーション全体で ASP.NET DetailsView を使用しました。DetailsView に保存されていない変更があることを検出し、ページから移動する前にユーザーに通知する方法を知りたいです。
ユーザーがいつページを離れるかを検出する「完全な」方法はありません。ページがいつアンロードされるかを検出するには、なんらかの形式の Ajax/Javascript ソリューションが必要です。その後、データベースに保存されている同じレコードに対して、現在 DetailsView にある詳細を取得できます。