<asp:TextBox ID="txtEmailId" runat="server" Width="30 %" /> <asp:RequiredFieldValidator ID="RequiredFieldValidator7" Display="Dynamic" ValidationGroup="addClient" runat="server" ErrorMessage="Please enter Email Id" ControlToValidate="txtEmailId" Width="30 %" SetFocusOnError="true"></asp:RequiredFieldValidator>
catch (SqlException sql) { //ScriptManager.RegisterStartupScript(this, this.GetType(), "alert", "alert('Email ID already exist !!!');window.location.href='ClientRegistraion.aspx';", true); Response.Write("<script language=javascript>alert('Email ID already exist !!!')</script>"); txtEmailId.Focus(); RequiredFieldValidator7.Enabled = true; }
SetFocusOnError="true"
RequiredFieldValidator
SetFocusOnError="false"
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)