How to use RangeValidator in

Total Post:341

 908  View(s)
Rate this:
I want to use RangeValidator in how to use please help me
  1. Post:286

    Re: How to use RangeValidator in

    The RangeValidator does exactly what the name implies; it makes sure that the user input is within a specified range. You can use it to validate both numbers, strings and number, we will try with a number.

    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RangeVailidation.aspx.cs" Inherits="Forumasp.RangeVailidation" %>

    <!DOCTYPE html>

    <html xmlns="">
    <head runat="server">
          #rngsalary {

        <form id="form1" runat="server">
            <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
                Salary:<br />
                <asp:TextBox runat="server" ID="txtsalary" />
                <asp:RangeValidator runat="server" ID="rngsalary" ControlToValidate="txtsalary" Type="Integer" MinimumValue="100" MaximumValue="10000" ErrorMessage="Please Enter Vailid Salary Maximum 10000 and Minimum 100!" ClientIDMode="AutoID" />
                <br />
                <br />

      Modified On Apr-11-2018 12:25:27 AM


Please check, If you want to make this post sponsored

You are not a Sponsored Member. Click Here to Subscribe the Membership.