How to call javascript method in asp.net web application

前端 未结 4 1409
无人及你
无人及你 2021-01-21 01:26

I want to use a javascript function inside a c# function

protected void button1_Click(object sender,EventArgs e){
    //javascript function call ex.
    /*
    b         


        
4条回答
  •  半阙折子戏
    2021-01-21 01:44

    If you're putting this message on an with postback just add the confirm dialog to the OnClientClick attribute like so:

    
    

提交回复
热议问题