I have a label in a repeater. The label has an onclick event, which requires it use an apostrophe rather than a double quote. But I also use a datacolumn in the onclick event as a parameter and it requires a single quote.
I've tried escaping the single quote inside the onclick event. No.
I've tried leaving out the quote when I pass the parameter. No.
Here is what I have:
Text='<%# Eval("dcViewMore").ToString()%>' CssClass="stylViewMoreBtn"
OnClick='loadOverview("<%# Eval("dcEmployeeId").ToString()%>;return false;")' runat="server"></asp:Label>
How do folks use a datacolumn in an onclick event where a single quote is required? thanks!