System.Web.UI.WebControls.RequiredFieldValidator Class
Information   Base Types   Related Resources

Makes the associated input control a required field.

  • Namespace: System.Web.UI.WebControls
  • First seen in: .NET v1.0.3705
  • Last seen in: .NET v1.1.4322
  • Last changed in: .NET v1.0.3705
  • Assembly: System.Web.dll

  • System.Web.UI.WebControls.BaseValidator
  • View this type on MSDN
  • View this type on WinFX 247
    Articles (45)Discussions (313)MembersRotorChanges
    Articles

    Page: 12
    Add Confirmation After Controls Validation on Client
    http://aspalliance.com/
    Add a confirmation dialog to a web form after performing server control validation.
    Adding a Default ListItem in a Databound Listbox in ASP.NET
    4Guys from Rolla
    In a previous article I showed how to use databinding to automagically populate an ASP.NET's listbox Web control with just a few lines of code. (If you've not already read the past article, be sure to do so now.) I've received a couple of feedback emails from folks since publishing the article asking how to add a default option to the listbox. That is, they want to add a listitem to the listbox, like: -- Please Choose an Option Below--. In this brief article we'll tackle this topic and more!
    Ask the DotNetJunkies: String Parsing For Fun
    DotNetJunkies
    The Question: How do I split a string that contains string values and numeric values into separate string and numeric? The Answer: Code in C# and Visual Basic .NET.
    ASP.NET Control Validation in Groups
    The Code Project
    The validation controls of ASP.NET offer a great deal of flexibility and comfort when you need to write data entry pages in your web application. They provide the ability to ensure valid data in the input fields in a rather declarative than procedural way. So far so good. Imagine a form that handles different payment methods. Depending on the selected method different fields should be mandatory while others remain empty.
    ASP.NET Table Searching
    The Code Project
    Searching database with showing results in datagrid control
    ASP.NET Validation Controls
    DotNetJunkies
    Input validation can be a tricky thing. Ideally we should validate the data on the client side to prevent unnecessary round trips to the server. That requires JavaScript. But not every browser out there processes JavaScript (hard to believe, isn't it). And even still, changing the display characteristics to show errors in the input is not always supported. Not to mention, a slightly unethical person could recreate your page, and bypass the validation all together. Ugh! This leaves us with server-side valida
    ASP.NET Validation Controls Samples For Beginners
    .netBips
    Most of the times while submitting forms we need to validate the user input for certain criteria. In ASP there was no other way but to write our own server or client side validation routines. ASP.NET frees the programmer from performing common validation tasks through the use of special web controls called validation controls. These 10 code samples will show you how to use all of the available validation controls.
    BUG: The first enabled Button control receives the RaisePostBack event when the ENTER key is pressed
    http://www.kbalertz.com/
    (813822) - Describes a problem where the first enabled Button control receives the RaisePostBack event unexpectedly on the server side when the ENTER key is pressed on the client side.
    Building a CheckBoxList Validator Control - Part 2
    DotNetJunkies
    As promised, this week we will be going over how to add client-side JavaScript to a custom validator control. <b>But</b> last week I was asked a very interesting question. What validator control should I use to validate that a CheckBox was checked within a CheckBoxList? The anwser was simple, NONE. None of the validator controls in the .NET valiator control suite does this type of validation. So, in this article not only are we going to discuss how to add JavaScript validation control for client-side valida
    Building a CheckBoxList Validator Control - Part 2
    DotNetJunkies
    As promised, this week we will be going over how to add client-side JavaScript to a custom validator control. But last week I was asked a very interesting question. What validator control should I use to validate that a CheckBox was checked within a CheckBoxList? The anwser was simple, NONE. None of the validator controls in the .NET valiator control suite does this type of validation. So, in this article not only are we going to discuss how to add JavaScript validation control for client-side validation, but how to create a CheckBoxListRequiredFieldValidator control.
    Building a Custom Validator Control - Part 1
    DotNetJunkies
    Well, the DotNetJunkies are at it again. We are starting our next book on building custom .NET server controls. So to follow with this category I'll be writing server control articles now and again. We'll be starting off slow with this article which illustrates how to derive your custom control from a base class and add your own features. In this article we'll demonstrate how to derive a class from the BaseValidtor class to create your own validator control. Why would you do this? Well, in short the validat
    Building a Custom Validator Control - Part 1
    DotNetJunkies
    In this article we'll demonstrate how to derive a class from the BaseValidtor class to create your own validator control. Why would you do this? Well, in short the validator controls collection is very good, but as you will find they don't cover every type of validation you will need to do.
    Building a custom web control: a textbox and validator in one!
    Wimdows.net
    In this article we will have a look at implementing a custom web control. This web control will inherit from the TextBox web control, and will automatically add a required field validator at run-time. This way, when we need a required field text box, we don't need to mess about with the required field validator, but instead we just define an instance of our custom web control.
    Building a DataGrid with Add and Edit Features
    DotNetJunkies
    The DataGrid server control is one of the most widely used controls in ASP.NET-based projects to display data in a table form. When using a mixture of database- and manually-driven DropDownLists, placing them in a DataGrid can be confusing. In this tutorial, I'll focus on resolving this issue using an example of an expense entry and reporting system.
    Changes to the Validation Controls in ASP.NET 2.0
    MSDN
    While ASP.NET 1.x supported validating user input, ASP.NET 2.0 increases the flexibility of the validation through the addition of validation groups. This article looks at this new feature, and shows you how you can use it in a number of common scenarios.
    Consuming Amazon WebServices
    http://www.code101.com/
    Consuming Amazon WebServices
    Create and maintain a links page using XML as the datasource
    http://www.swartzentruber.net/
    I wanted to play around with the idea of using an XML document to store a group of links. This XML document is read into an ADO.NET dataset table for the purpose of rendering in a datagrid or other databound control.
    Creating A Designer Enabled Custom Validator Control Pt. I
    http://aspalliance.com/
    This is a two-part article. The first part of this article will discuss how to create server-side validation for your custom control and the second part will conclude with a discussion on how to complete your control by adding client-side validation to your control.
    Creating a Weblog using JScript .NET and ASP.NET
    http://webdeveloper.earthweb.com/
    A Web Log is a Web page that represents a personal journal - a web log is informally referred to as a "blog". Blogs have frequent updates and individual updates are usually short. Some web blogs, like Slashdot, have a number of people working on them and provide a degree of interactivity by allowing readers to post comments about blog entries. Blogs have become so popular that services, like Blogger.com, make it easy to create and update your own web log. Developers like to do things their own way and have the ability to create their own blog - this article discusses how to create your own blog using JScript .NET and using ASP.NET.
    Defining .NET and how to build a Client Application for a distributed Web Service Architecture
    DotNetJunkies
    This article, the third in a series of three, demonstrates the assembly of a Client Application, or User Interface for a Web service application that was created in the previous articles. In this case, the Web service being called upon by the Client Application is itself another Web service.
    Discussion Forum Board
    Master C#
    This example updates the previous forum example that I had written for beta1. A lot has changed since then, even though from outside the forum has the same looks internally a lot has changed! Due to this I have taken the trouble to elaborate this example into easy to understand pieces.
    Enhacing ASP.NET Validators
    The Code Project
    ASP.NET has impressive improvements in Web development. Data validation, deployment, user controls and lots more. And best of all: you can extend the basic controls usingthe class hierarchy. In this article I'll show how to change the validator controls to givebetter visual feedback to the user. It will change the label color of an invalid field.
    FIX: ValidationSummary (Validator) Controls No Longer Appear After You Upgrade to the .NET Framework 1.1
    http://www.kbalertz.com/
    (822734) - After you upgrade from the Microsoft .NET Framework 1.0 to the .NET Framework 1.1, the ValidationSummary control may no longer appear in existing ASPX pages that contain that control. Also, the Page.Validators.Count property has a value of 0 ,...
    How to Disable a Button From Causes Client-Side Validation
    DotNetJunkies
    This article explains how to disable a .NET Button control from causeing client-side validation.
    HOW TO: Use ASP.NET Validation Controls from Visual Studio .NET (Q316662)
    http://www.kbalertz.com/
    The .NET Framework contains a variety of validation controls that, when placed on an ASP.NET Web Forms page, validate user input entered into the control fields and display associated error messages for each control. This article explains h
    Ad
    MBR BootFX
    Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
     
     Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
    Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com