c# - Passing Double Quotes in asp.net -


my web app requires double quotes passed within dropdownlist listitem value property because few of database names begin numbers. possible?

i tried "\"123db\"" , getting error "this attribute name must followed equal..."

<asp:listitem value="123db">123db</asp:listitem> 

thanks

try this:

<asp:listitem value="&quot;123db&quot;">123db</asp:listitem> 

since't it's html get's rendered in end of day.

however, i advise not include quotes in value - value should programmatic string, , " not valid character in it.


Comments

Popular posts from this blog

ios - Memory not freeing up after popping viewcontroller using ARC -

Django REST Framework perform_create: You cannot call `.save()` after accessing `serializer.data` -

Why does Go error when trying to marshal this JSON? -