Try this,
Add your message on "onclientclick" in your button,it will provide a message box with your text.
<asp:Button ID="DiscardId" runat="server"
Text="Discard" onclick="DiscardId_Click" onclientclick="return confirm('Selected Items will be discarded. Would you like to continue?')" />