forked from siteserver/SS.Form
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodalFieldValidate.aspx
86 lines (73 loc) · 3.58 KB
/
modalFieldValidate.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<%@ Page Language="C#" Inherits="SS.Form.Pages.ModalFieldValidate" %>
<!DOCTYPE html>
<html style="background:#fff">
<head>
<meta charset="utf-8">
<link href="assets/plugin-utils/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<link href="assets/plugin-utils/css/plugin-utils.css" rel="stylesheet" type="text/css" />
<link href="assets/plugin-utils/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
<link href="assets/plugin-utils/css/ionicons.min.css" rel="stylesheet" type="text/css" />
</head>
<body style="padding: 0;background:#fff">
<div style="padding: 20px 0;">
<div class="container">
<form id="form" runat="server" class="form-horizontal">
<asp:Literal id="LtlMessage" runat="server"></asp:Literal>
<div class="form-group">
<label class="col-md-3 control-label">是否为必填项</label>
<div class="col-md-6">
<asp:DropDownList id="DdlIsRequired" class="form-control" runat="server">
<asp:ListItem Value="True" Text="是" />
<asp:ListItem Value="False" Text="否" Selected="True" />
</asp:DropDownList>
</div>
<div class="col-md-3">
</div>
</div>
<asp:PlaceHolder ID="PhNum" runat="server">
<div class="form-group">
<label class="col-md-3 control-label">最小字符数</label>
<div class="col-md-6">
<asp:TextBox class="form-control" MaxLength="50" Text="0" id="TbMinNum" runat="server" />
</div>
<div class="col-md-3">
个字符
<asp:RegularExpressionValidator ControlToValidate="TbMinNum" ValidationExpression="\d+" Display="Dynamic" errorMessage=" *"
foreColor="red" runat="server" /> (0代表不限制)
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label">最大字符数</label>
<div class="col-md-6">
<asp:TextBox class="form-control" MaxLength="50" Text="0" id="TbMaxNum" runat="server" />
</div>
<div class="col-md-3">
个字符
<asp:RegularExpressionValidator ControlToValidate="TbMaxNum" ValidationExpression="\d+" Display="Dynamic" errorMessage=" *"
foreColor="red" runat="server" /> (0代表不限制)
</div>
</div>
</asp:PlaceHolder>
<asp:PlaceHolder ID="PhValidateType" runat="server">
<div class="form-group">
<label class="col-md-3 control-label">高级验证</label>
<div class="col-md-6">
<asp:DropDownList ID="DdlValidateType" class="form-control" runat="server"></asp:DropDownList>
</div>
<div class="col-md-3">
</div>
</div>
</asp:PlaceHolder>
<div class="modal-footer">
<asp:Button class="btn btn-primary" onclick="BtnValidate_OnClick" runat="server" Text="保 存"></asp:Button>
<button type="button" class="btn btn-default m-l-10" onclick="window.parent.layer.closeAll()">取 消</button>
</div>
</form>
</div>
</div>
</body>
</html>
<script src="assets/plugin-utils/js/jquery.min.js"></script>
<script src="assets/plugin-utils/js/bootstrap.min.js"></script>
<script src="assets/layer/layer.min.js" type="text/javascript"></script>
<script src="assets/sweetalert/sweetalert.min.js" type="text/javascript"></script>