ASP.NET, jQuery, dirty forms, and [removed]

前端 未结 5 2017
抹茶落季
抹茶落季 2020-12-16 17:07

In my ASP.NET web app, I\'m trying to create a universal way of warning users before navigating away from a form when they\'ve made changes, using jQuery. Pretty standard st

5条回答
  •  囚心锁ツ
    2020-12-16 17:25

    You could always create an inherited page class that has a custom OnLoad / OnUnload method that adds in immediate execution JavaScript.

    Then you don't have to handle it at a control specific level but rather the form / page level.

提交回复
热议问题