3
Answers

how to pass a variable from js to asp image tag

Ramon Ortega

Ramon Ortega

3y
927
1

hi guys i have a variable declare in js form and has a value , the only problem is I want that variable to be used in image tag source in the asp mvc view. how can I pass that variable to asp?

  <span id="imageProfileMale" style="display: none;">
                        <img src="~/image/default_male.png" style="width:40px" />
  </span>

Answers (3)