I'm using MVC3 with Razor and I've noticed that Html helper functions generate html tags that have their names attributes like I asked them to, but have specific format for id attribute. If I try to generate a checkbox and pass "item[0]" as a name parameter, I'll get a checkbox with "item[0]" as name but "item_0_" for id.
I'm guessing there's a good reason for that, and I'm guessing that there's a function that does this string to string conversion? Do you know which function does that? I need to do this type of conversion in my code.