简体   繁体   中英

JavaScript in ASP.NET validation controls

我可以在ASP.net的验证控件中使用像“ alter ”这样的JavaScript吗?

If you meant "alert" then yes you can use ValidationSummary control to show error messages in a popup. Check the links below:

MSDN

W3School

Example

您可以使用custome验证程序并编写js代码

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM