This one has been giving me trouble all morning and I hope someone with more ASP knowledge can help me! I didn't build this app, I inherited it and it was built in .NET 2.0.
I'm upgrading an app that generated a list of href=mailto. Now it needs to run some C# code so I started recreating these as linkButtons. I was following this article How to launching email client on LinkButton click event? but I have one more step.
<asp:Repeater DataSourceID="sdsUserList" runat="server">
<ItemTemplate>
<li>
<asp:LinkButton ID="lbEmail" runat="server" Text='<%# Eval("UserName") %>' OnClientClick="window.open('mailto:<%# Eval("UserEmail") %>', 'email')" OnClick="lblEmail_Click" />
</li>
</ItemTemplate>
</asp:Repeater>
I need the OnClientClick to simply open up a new email to send to the User. I've monkeyed around with the quotes but the error I am getting is "The server tag is not well formed".