Reputation: 2642
I am trying to concatenate the block of asp.net with jquery in block of jquery code :
var srcImg = "<%:HelperClass.CheckImageUrlExist(HelperClass.Project.PathBrandImages+ "+
proValByDep.brNam + ")%>";
proValByDep.brNam is the variable in my jquery.
Could anyone help me, how could I can concatenate this string?
Upvotes: 1
Views: 108
Reputation: 54618
The question in its current state will not work. You cannot have the ASP.NET runtime try to resolve the client-side javascript variable before your html is recieved by the client.
Upvotes: 1