How can I make the following inline c# work within javascript? I have had no luck with escape characters, but I am sure I'm just doing something wrong.
var inputId = "<%= applicationForm.FindControl("myInput").ClientID %>";
How can I make the following inline c# work within javascript? I have had no luck with escape characters, but I am sure I'm just doing something wrong.
var inputId = "<%= applicationForm.FindControl("myInput").ClientID %>";
You can simply use single quotes in JavaScript to define String literals:
var inputId = '<%= applicationForm.FindControl("myInput").ClientID %>';