Or, you can employ the RequiredFieldValidator and RegularExpressionValidator
Assuming this is ASP.NET webform and the valid letter are a-z,A-Z and 0-9, then on the UI
<asp:TextBox ID="TextBox2" runat="server" CausesValidation="True"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" Display="Dynamic" ErrorMessage="*" ControlToValidate="TextBox2"></asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TextBox2" Display="Dynamic"
ErrorMessage="letter and number only" ValidationExpression="^[a-zA-Z0-9]+$"></asp:RegularExpressionValidator></div>
and in the code behind/server side
if (Page.IsValid)
{
}