I am building html at server side. The code sample is as below. My intention is to emit html like this
<a href="" onclick="doSomething('Test Value');">Test</a>
My Code Sample
string html="";
string param="Test Value";
html+="<a href='' onclick='"+"doSomething('"+param+"')'>Test</a>"
What am I doing wrong? The resultant html is bizzare
try this: