Server tag in OnClientClick

前端 未结 4 1626
孤独总比滥情好
孤独总比滥情好 2021-01-05 02:03

The following gives me an error of \"The server tag is not well formed\"



        
4条回答
  •  悲&欢浪女
    2021-01-05 02:57

    You can add the onclick event at run time, like this:

    DeleteButton.Attributes.Add("onclick", "'return confirm('Are you sure you want to delete '" + Username);
    


提交回复
热议问题