|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Sample._Default" %>
<%@ Register assembly="SABBEL.Web.Controls.Ajax" namespace="SABBEL.Web.Controls.Ajax" tagprefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="scriptManager" runat="server"></asp:ScriptManager>
<div>
<asp:RequiredFieldValidator ID="rfvFirstName"
runat="server"
ErrorMessage="First Name is mandatory"
ControlToValidate="firstName">
</asp:RequiredFieldValidator>
<br />
First Name:
<asp:TextBox runat="server" ID="firstName">
</asp:TextBox><br />
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" ErrorMessage="Last Name is mandatory" runat="server" ControlToValidate="lastName"></asp:RequiredFieldValidator>
<br />
Last Name:
<asp:TextBox runat="server" ID="lastName">
</asp:TextBox><br />
<asp:CheckBox ID="showHide" runat="server" Text="I want to enter more information" />
<cc1:AjaxCollapsibleFormSection ID="AjaxCollapsibleFormSection1"
ShowHideControlName="showHide"
runat="server">
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Street address is mandatory" ControlToValidate="address"></asp:RequiredFieldValidator>
<br />
Street Address:
<asp:TextBox runat="server" ID="address">
</asp:TextBox><br />
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="City is mandatory" ControlToValidate="city"></asp:RequiredFieldValidator>
<br />
City:
<asp:TextBox runat="server" ID="city">
</asp:TextBox><br />
<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="Phone number is mandatory" ControlToValidate="phoneNumber"></asp:RequiredFieldValidator>
<br />
Phone number:
<asp:TextBox runat="server" ID="phoneNumber">
</asp:TextBox><br />
</cc1:AjaxCollapsibleFormSection>
<br />
<br />
<asp:Button ID="submitBtn" runat="server" Text="Submit the form" onclick="submitBtn_Click" />
</div>
</form>
</body>
</html>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I am a senior .NET Architect working as an independent consultant in the Montreal area (Canada). I have been programming for more than 24 years from which 14 years as a professional working mostly on online web applications.
I have an engineer degree in computer science and I am a SCRUM Master certified.
During my experience, I went through different languages; GW Basic, Pascal, Turbo Pascal, C, C++, Assembler (wrote an OS core all in assembler), Delphi, Visual Basic, ASP, ASP.NET 1.0 and 2.0 and some Java and PHP. Now, I am focusing on Microsoft technologies only. I also spend a lot of time studying and applying Agile methodologies (SCRUM) in different software development projects.
Apart from Computers, I like martial arts (brown belt in Kung Fu) and music (part time, not that good, musician ).
I am reachable on sbellouti@gmail.com.