-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathaddSupplier.aspx
38 lines (37 loc) · 2.3 KB
/
addSupplier.aspx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="addSupplier.aspx.cs" Inherits="electronicspos.com.addSupplier" MasterPageFile="~/pos.Master" %>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
<title>Add Supplier</title>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="Main" Runat="Server">
<asp:MultiView ID="MultiView1" runat="server">
<asp:View ID="EntreeForm" runat="server">
<div>
Supplier Entreee Form<br />
<br />
Company Name:
<asp:TextBox ID="name" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="nameRequired" runat="server" ControlToValidate="name" ErrorMessage="Company Name is Required"></asp:RequiredFieldValidator>
<br />
Company Type:
<asp:TextBox ID="compType" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="typeRequired" runat="server" ControlToValidate="compType" ErrorMessage="Company Type is Required"></asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="validType" runat="server" ControlToValidate="compType" ErrorMessage="Enter a Valid Type" ValidationExpression="^[a-zA-Z'.\s]{1,40}$"></asp:RegularExpressionValidator>
</div>
<p>
<asp:Button ID="submitSupplier" runat="server" OnClick="submitSupplier_Click" Text="Add Supplier" />
</p>
</asp:View>
<asp:View ID="Summary" runat="server">A new supplier has been successfully added!<br />
<br />
Company Name:
<asp:Label ID="labelName" runat="server"></asp:Label>
<br />
Company Type:
<asp:Label ID="labelType" runat="server"></asp:Label>
<br />
<br />
<asp:Button ID="anotherSupplier" runat="server" OnClick="anotherSupplier_Click" Text="Add Another Supplier" />
</asp:View>
</asp:MultiView>
</asp:Content>