---
title: "How to use RangeValidator in asp.net"  
description: "How to use RangeValidator in asp.net"  
author: "Anonymous User"  
published: 2015-11-12  
updated: 2015-11-12  
canonical: https://www.mindstick.com/forum/33587/how-to-use-rangevalidator-in-asp-dot-net  
category: ".net"  
tags: ["asp.net"]  
reading_time: 1 minute  

---

# How to use RangeValidator in asp.net

i want to use [RangeValidator](https://www.mindstick.com/forum/33885/how-to-use-rangevalidator-in-asp-dot-net) in [asp.net](https://www.mindstick.com/articles/934/default-folders-available-inside-the-asp-dot-net-application-folder) how to use please help me.

## Replies

### Reply by Anonymous User

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, Currency, strings and dates, which can make it useful in a bunch of cases. Since we validated numbers the last time, we will try with a Currency now.

```
RangeValidator :<br /><asp:TextBox runat="server" id="txtamnt" /><asp:RangeValidator runat="server" id="rngamt" controltovalidate="txtamnt" type="Currency" minimumvalue="1" maximumvalue="100000" errormessage="Please enter a valid Amount!" />
```

![How to use RangeValidator in asp.net](https://www.mindstick.com/mindstickforums/ead9fed6-36c8-4ec9-aa4d-5c3faf1345e6/images/b3ea4fd4-74d7-4029-bc7c-2f30f7c66036.png)


---

Original Source: https://www.mindstick.com/forum/33587/how-to-use-rangevalidator-in-asp-dot-net

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
