首页 > 解决方案 > 警报框进行验证但未在屏幕上显示按摩

问题描述

所以所有功能都可以正常工作,但我使用 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();
    } 

标签: c#mysqlwindowsmacos

解决方案


推荐阅读