What is an Equivalent Comment in C# for alert in JavaScript.<BR>I want to display an Alert message if the textfield is empty.<BR><BR>Kennedya better approach would be to use a requiredFieldValidator Control, set the display to "none". Then the validationSummary class, something like this:<BR><asp:ValidationSummary <BR> id="valSum" <BR> DisplayMode="BulletList"<BR> ShowMessageBox="true"<BR> ShowSummary="false" <BR> HeaderText="You must enter a value in the following fields:"<BR> Font-Name="verdana" <BR> Font-Size="12"<BR> runat="server"/><BR><BR>ChrisN is right, requiredfieldvalidator would be better but if you want a popup alert, you will still need to use javascript. <BR>Heres a sample:<BR>http://www.codecube.net/item.asp?cc_ItemID=87