I have been reading about verbatim string literals and escape sequences. What I am curious about now is if it is possible to escape and say call a dynamic source from a database when using verbatim string literals?
For example how would one achieve something like below?
string jsFunc = @"
(function()
{
var image = 'Images/" + {sqlConn[2]} + "';
var img = document.getElementbyId('img1');
img.src = image;
}
);";
Thanks