RequiredFieldValidator Server Control

The RequiredFieldValidator control simply checks to see whether something was entered into the HTML form element. It is a simple validation control, but it is one of the most frequently used. You must have a RequiredFieldValidator control for each form element on which you want to enforce a value-required rule.

ASPX Page Design:

<html xmlns=””>
<head runat=”server”>
<form id=”form1” runat=”server”>
<asp:TextBox ID=”TextBox1” runat=”server”></asp:TextBox>
<asp:RequiredFieldValidator ID=”RequiredFieldValidator1” runat=”server” Text=”Required!” ControlToValidate=”TextBox1”>
<br />
<asp:Button ID=”Button1” runat=”server” Text=”Submit”
OnClick=”Button1_Click” />
<br />
<br />
Click here to continue reading.

Top 10 Reasons to Use Silverlight

  • It supports playback of WMV files on both PC and Macintosh, with many options for interactivity during playback; with just a couple of lines of code, you can provide a platform-neutral way to handle all your movie files. Silverlight supports full-screen 720p video and offers seamless transitions between full-screen and windowed mode without losing your position in the video (something that media sites are crying out for today).
  • By separating markup (XAML) from code, Silverlight provides a familiar web metaphor for designers and developers. You can embed XAML directly within an HTML file if you want a simple, monolithic solution, or you … Click here to continue reading.
  • ASP.NET Validation Server Controls

    Getting the forms that are present on your Web pages to deal with validation is a common task in web development. For this reason, with the initial release of ASP.NET, the ASP.NET team introduced a series of validation server controls meant to make implementing sound validation for forms a snap.

    ASP.NET not only introduces form validations as server controls, but it also makes these controls rather smart. As stated earlier, one of the tasks of classic ASP developers was to determine where to perform form validation – either on the client or on the server. The ASP.NET validation server controls … Click here to continue reading.

    What is an interface and what is an abstract class? Please, expand by examples of using both. Explain why.

    In a interface class, all methods are abstract without implementation where as in an abstract class some methods we can define concrete. In interface, no accessibility modifiers are allowed. An abstract class may have accessibility modifiers. Interface and abstract class are basically a set of rules which u have to follow in case u r using them(inheriting them).

    Abstract classes are closely related to interfaces. They are classes that cannot be instantiated, and are frequently either partially implemented, or not at all implemented. One key difference between abstract classes and interfaces is that a class may … Click here to continue reading.