I have an anchor and I am assigning the the id to this anchor dynamically
<li>
<a href="#"
name="offset" onclick="return so(this);"
data-val="@Math.Round(Convert.ToDouble(ViewBag.lst[0].ca/2))"
id='javascript:"[email protected](Convert.ToDouble(ViewBag.lst[0].ca / 2))"'>Last</a>
</li>
I supposed to get a3 or a4 or a5 because this @Math.Round(Convert.ToDouble(ViewBag.lst[0].ca / 2)) returns numeric value.
But I am getting "a+3" or "a+4". Apparently it is concatenating the plus sign too.
What I am trying to do above is simple string concatenation. This above code is from asp.net mvc view.