How do I bind a DropDownList in MVC ViewBag?

How to validate that input string contains only alphabets, validating that textbox contains onlyalphabets (letter), so here is some of the ways for doing such task. char have a property named isLetter which is for checking if character is a letter or not, or you can check by the regularexpression or you can validate your textbox through regularexpressionvalidatorin asp.net. Following code demonstrating the various ways ofimplementation.