How should I convert a string to an enum in C#?

How should I convert a string to an enum in C#?

What's the best way to convert a string to an enumeration value in C#?I have an HTML select tag containing the values of an enumeration. When the page is posted, I want to pick up the value (which will be in the form of a string) and conver

How to get the caret position in a textarea, in characters, from the start?

How to get the caret position in a textarea, in characters, from the start?

How do you get the caret position in a