I need to display a server-side variable in a JavaScript alert.
<asp:Button id="btnDelete" runat="server" class="deleteicon" Text='<%# Eval("iuser_id") %>' OnClick="deleteclick" onclientclick="return confirm('Are you sure you want to delete this record?'+<%# Eval("struser_name") %>);"/>
This button is used for deleting records within a gridview. When clicked, I want to show an alert with user confirmation and the name of the user being deleted. However, I am encountering a server tag formatting error.
Appreciate any assistance,