How to not show single quote in id attribute
I'm using MVC3 Razor view. I have following code
@{
var count =0;
<input type="text" id="name'@count'" />
// Some more html elements
}
Now, when i view this html in browser the ID of text element is showing
id="name'0'"
How to not show the single quotes in id attribute.
Like this
id="name0"
Please help me with this..
No comments:
Post a Comment