Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication2.WebForm1" %>
- <!DOCTYPE html>
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head runat="server">
- <title></title>
- <style type="text/css">
- .auto-style1 {
- height: 23px;
- }
- .auto-style2 {
- height: 26px;
- }
- </style>
- </head>
- <body>
- <form id="form1" runat="server">
- <div>
- <asp:MultiView ID="MultiView1" runat="server">
- <asp:View ID="View1" runat="server">
- <table>
- <tr>
- <td>Име</td>
- <td>
- <asp:TextBox ID="TextBox1" runat="server" ValidationGroup="View1_Group"></asp:TextBox>
- <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1" Display="None" ErrorMessage="Внеси име" ValidationGroup="View1_Group"></asp:RequiredFieldValidator>
- </td>
- </tr>
- <tr>
- <td class="auto-style2">Презиме</td>
- <td class="auto-style2">
- <asp:TextBox ID="TextBox2" runat="server" ValidationGroup="View1_Group"></asp:TextBox>
- <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" ControlToValidate="TextBox2" Display="None" ErrorMessage="Внеси презиме" ValidationGroup="View1_Group"></asp:RequiredFieldValidator>
- </td>
- </tr>
- <tr>
- <td class="auto-style1">ФИНКИ ID</td>
- <td class="auto-style1">
- <asp:TextBox ID="TextBox3" runat="server" ValidationGroup="View1_Group"></asp:TextBox>
- @finki.ukim.mk<asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" ControlToValidate="TextBox3" Display="None" ErrorMessage="Внеси ФИНКИ ID" ValidationGroup="View1_Group"></asp:RequiredFieldValidator>
- <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ControlToValidate="TextBox3" Display="None" ErrorMessage="Неправилен формат" ValidationExpression="^[a-z\d_]*\.?[a-z\d_]*$" ValidationGroup="View1_Group"></asp:RegularExpressionValidator>
- </td>
- </tr>
- <tr>
- <td class="auto-style1">Лозинка</td>
- <td class="auto-style1">
- <asp:TextBox ID="TextBox4" runat="server" TextMode="Password" ValidationGroup="View1_Group"></asp:TextBox>
- <asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server" ControlToValidate="TextBox4" Display="None" ErrorMessage="Внеси лозинка" ValidationGroup="View1_Group"></asp:RequiredFieldValidator>
- </td>
- </tr>
- <tr>
- <td class="auto-style1">Потврда</td>
- <td class="auto-style1">
- <asp:TextBox ID="TextBox5" runat="server" TextMode="Password" ValidationGroup="View1_Group"></asp:TextBox>
- <asp:RequiredFieldValidator ID="RequiredFieldValidator14" runat="server" ControlToValidate="TextBox5" Display="None" ErrorMessage="Внеси потврда за лозинка" ValidationGroup="View1_Group"></asp:RequiredFieldValidator>
- <asp:CompareValidator ID="CompareValidator2" runat="server" ControlToCompare="TextBox4" ControlToValidate="TextBox5" Display="None" ErrorMessage="Лозинките не се совпаѓаат" ValidationGroup="View1_Group"></asp:CompareValidator>
- </td>
- </tr>
- <tr>
- <td class="auto-style1" colspan="3">
- <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text=">>" ValidationGroup="View1_Group" />
- </td>
- </tr>
- <tr>
- <td class="auto-style1" colspan="2">
- <asp:ValidationSummary ID="ValidationSummary1" runat="server" ForeColor="Red" ValidationGroup="View1_Group" />
- </td>
- </tr>
- </table>
- </asp:View>
- <asp:View ID="View2" runat="server">
- <table>
- <tr>
- <td class="auto-style1">Адреса</td>
- <td class="auto-style1">
- <asp:TextBox ID="TextBox6" runat="server" ValidationGroup="View2_Group"></asp:TextBox>
- <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="TextBox6" ErrorMessage="Внеси адреса" ForeColor="Red" ValidationGroup="View2_Group"></asp:RequiredFieldValidator>
- </td>
- </tr>
- <tr>
- <td>Тел</td>
- <td>
- <asp:TextBox ID="TextBox7" runat="server" ValidationGroup="View2_Group"></asp:TextBox>
- <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="TextBox7" ErrorMessage="Внеси телефон" ForeColor="Red" ValidationGroup="View2_Group"></asp:RequiredFieldValidator>
- <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="TextBox7" ErrorMessage="Неправилен формат" ForeColor="Red" ValidationExpression="^07[015-7]\d{6}$" ValidationGroup="View2_Group"></asp:RegularExpressionValidator>
- </td>
- </tr>
- <tr>
- <td>Пол</td>
- <td>
- <asp:RadioButtonList ID="RadioButtonList1" runat="server" ValidationGroup="View2_Group">
- <asp:ListItem>М</asp:ListItem>
- <asp:ListItem>Ж</asp:ListItem>
- </asp:RadioButtonList>
- <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="RadioButtonList1" ErrorMessage="Избери пол" ForeColor="Red" ValidationGroup="View2_Group"></asp:RequiredFieldValidator>
- </td>
- </tr>
- <tr>
- <td>Датум на раѓање</td>
- <td>
- <asp:Calendar ID="Calendar1" runat="server" FirstDayOfWeek="Sunday" VisibleDate="1985-06-01"></asp:Calendar>
- </td>
- </tr>
- <tr>
- <td colspan="3">
- <asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="<<" />
- <asp:Button ID="Button3" runat="server" OnClick="Button3_Click" Text=">>" ValidationGroup="View2_Group" />
- </td>
- </tr>
- </table>
- </asp:View>
- <asp:View ID="View3" runat="server">
- <table>
- <tr>
- <td>Занимање</td>
- <td>
- <asp:DropDownList ID="DropDownList1" runat="server" ValidationGroup="View3_Group">
- <asp:ListItem>-занимање-</asp:ListItem>
- <asp:ListItem>Занимање 1</asp:ListItem>
- <asp:ListItem>Занимање 2</asp:ListItem>
- <asp:ListItem>Занимање 3</asp:ListItem>
- <asp:ListItem>Занимање 4</asp:ListItem>
- <asp:ListItem>Занимање 5</asp:ListItem>
- </asp:DropDownList>
- <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="DropDownList1" ErrorMessage="Избери занимање" ForeColor="Red" InitialValue="-занимање-" ValidationGroup="View3_Group"></asp:RequiredFieldValidator>
- </td>
- </tr>
- <tr>
- <td class="auto-style2">Години на вршење на избраната дејност</td>
- <td class="auto-style2">
- <asp:TextBox ID="TextBox8" runat="server" ValidationGroup="View3_Group"></asp:TextBox>
- <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="TextBox8" ErrorMessage="Внеси години" ForeColor="Red" ValidationGroup="View3_Group"></asp:RequiredFieldValidator>
- <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="TextBox8" ErrorMessage="Недозволена вредност" ForeColor="Red" ValidationExpression="^\d+$" ValidationGroup="View3_Group"></asp:RegularExpressionValidator>
- </td>
- </tr>
- <tr>
- <td colspan="3">
- <asp:Button ID="Button4" runat="server" Text="<<" OnClick="Button4_Click" />
- <asp:Button ID="Button5" runat="server" Text="Поднеси" ValidationGroup="View3_Group" OnClick="Button5_Click" />
- </td>
- </tr>
- </table>
- </asp:View>
- <asp:View ID="View4" runat="server">
- <table>
- <tr>
- <td>
- <asp:Label ID="Label1" runat="server"></asp:Label>
- </td>
- </tr>
- <tr>
- <td>
- <asp:Button ID="Button6" runat="server" Text="Врати се на почеток" OnClick="Button6_Click1" />
- </td>
- </tr>
- </table>
- </asp:View>
- </asp:MultiView>
- </div>
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement