asp.net - Can I use validators, just to show warnings -


In ASP.NET ... Is there any way to show a warning (OK / cancel) msg Can I use the assumptions?

If the user chooses the best .. should continue to submit this page.

I know that the Javascript function can work.

Just before proceeding with javascript, the thought of checking whether or not the valetors will be of any help.

Thanks

define an arbitrary JavaScript function with the CustomValidator.ClientValidationFunction property can do.

  & lt; Asp: CustomValidator ... Client validation function = "AwesomeValidator" />  

and:

  function AwesomeValidator (source, e) {var x; If (value ISBD (E. Vel)) = Confirm ('Are you sure?'); // something with X ...}  

and more.


Comments

Popular posts from this blog

c++ - QtQuick: QQmlApplicationEngine failed to load component qrc:/main.qml:23 Invalid attached object assignment -

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net - getting a value of selected radiobutton in LoadViewState -