Eval in an OnClick?

D

David Thielen

Hi;

How can I do the following (inside a GridView)?

<asp:LinkButton ID="DeleteButton" runat="server" CausesValidation="False"
CommandName="Delete"
OnClientClick='return confirm("Delete the datasource <%# Eval("Title")
%>?");'
Text="delete" />

The above does not evaluate the Eval.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,135
Messages
2,570,783
Members
47,341
Latest member
hanifree

Latest Threads

Top