Confirmation message box in webapplication

后端 未结 8 1648
刺人心
刺人心 2020-12-19 19:16

Am using the below message box in asp.net web application. Now i want to convert this message box as a confirmation message box and do something when it is true else means r

8条回答
  •  失恋的感觉
    2020-12-19 19:22

    ScriptManager.RegisterStartupScript(page,this.GetType(), "temp","javascript:calopen();
    ",true);
    
    function calopen()    
    {    
        if (confirm("Are you sure?"+'\n'+"Are you want to delete"))    
        {   
            enter code here    
        }
        else   
        {   
            return false;
        }    
    }
    

提交回复
热议问题