c# - 警报框进行验证但未在屏幕上显示按摩
问题描述
所以所有功能都可以正常工作,但我使用 alert 进行验证警报和错误消息,它在 Windows 系统上完美运行,但在 mac 上不工作。有人有什么主意吗?注意:它正在进行验证,但未在屏幕上显示消息
protected void BtnBtnInsert_Click(object sender, System.EventArgs e)
{
MySqlCommand cmd;
string str;
MySqlConnection con = new MySqlConnection(ConString);
int Status = 0;
con.Open();
String UpdateQuery;
String SSN;
SSN = TxtBxSSSN.Text.ToString().Trim();
if (CheckValidSSNBeforeUpdate(SSN) == "1")
{
ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('SSN already exists, record is updated.!')", true);
}
else
{
InsertNewEmployee();
}
con.Close();
}
解决方案
推荐阅读
- node.js - 使用 npm 在 linux (yocto) 上更新 nodejs
- mongodb - 需要在 Mongoose 中获取按外键分组的记录列表
- ios - iOS 在 TestFlight 版本中崩溃
- javascript - 扩大 div 的宽度以缩小另一个
- datastage - 通过非结构化数据阶段连接到 XLSX 文件时处理 Null 值
- wordpress - 在图像 url 末尾添加斜杠显示 WP+Nginx-fpm 上的主页内容
- excel - Excel VBA检查多个复选框
- c# - 为什么 LINQ 中的 LastOrDefault(predicate) 比 FirstOrDefault(predicate) 快
- java - 如何在同一个嵌入式 activemq 代理上运行 Spring 和 spring-boot 应用程序
- python - pytest 在 pyspark 2.3.2 中失败,但在 2.4.2 中通过