Nothing
Nothing

Reputation: 2642

Concate string in asp.net with jquery

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

Answers (1)

Erik Philips
Erik Philips

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

Related Questions