FineUI 官方论坛
标题:
必填项经色圆点显示借位的问题
[打印本页]
作者:
唐铁明
时间:
2012-12-14 03:12
标题:
必填项经色圆点显示借位的问题
本帖最后由 唐铁明 于 2012-12-14 03:33 编辑
1.在pannel中用from来做的容器,当表单中所有必填字段都没有填写时,点击多次点击提交按钮会出现,红色圆点提示显示错位,不知是什么原因。
作者:
sanshi
时间:
2012-12-14 05:24
把
ASPX文件附上来....
作者:
唐铁明
时间:
2012-12-14 05:59
本帖最后由 唐铁明 于 2012-12-14 06:10 编辑
<%@ Page Language="C#" AutoEventWireup="True" CodeBehind="1.aspx.cs" Inherits="AppBox.AgentsApply" %>
<%@ Register Assembly="FineUI" Namespace="FineUI" TagPrefix="x" %>
<!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>
<link href="../res/css/main.css" type="text/css" rel="Stylesheet" />
</head>
<body>
<form id="form1" runat="server" style="width:800px;">
<div>
<x
ageManager ID="
ageManager1" runat="server" FormLabelWidth="68" />
<x
anel ID="
anel1" runat="server" BodyPadding="5px" EnableBackgroundColor="true"
ShowBorder="true" ShowHeader="true" Title="代理商申请" AutoWidth="true">
<Items>
<x
anel ID="grpBasicData" runat="server" EnableCollapse="True" Title="基本资料" BoxConfigPadding="3">
<Items>
<x:Form ID="BasicDataForm" runat="server" EnableBackgroundColor="True" ShowHeader="False"
BodyPadding="10px 0px 0px 10px" Title="Form" ShowBorder="False">
<Rows>
<x:FormRow runat="server" ColumnWidths="100%">
<Items>
<x:TextBox ID="txtCompanyName" runat="server" Label="公司名称" Required="True" ShowRedStar="True"
RequiredMessage="公司名称不能为空" FocusOnPageLoad="true" NextFocusControl="txtCompanyAddr"
TabIndex="1" MaxLength="128" MaxLengthMessage="公司名称最长不能超过128个汉字或者字符">
</x:TextBox>
</Items>
</x:FormRow>
<x:FormRow runat="server" ColumnWidths="75% 25%">
<Items>
<x:TextBox ID="txtCompanyAddr" runat="server" Label="公司地址" Required="True" ShowRedStar="True"
RequiredMessage="公司地址不能为空" MaxLength="128" MaxLengthMessage="公司地址最长不能超过128个汉字或者字符"
NextFocusControl="txtPostCode" TabIndex="2">
</x:TextBox>
<x:TextBox ID="txtPostCode" runat="server" Label="邮 编"
Regex="\d{6}" ShowRedStar="true" RegexPattern="
OSTAL_CODE" Required="True" RegexMessage="请输入合法的邮编"
NextFocusControl="drplsCompanyNature" TabIndex="3">
</x:TextBox>
</Items>
</x:FormRow>
<x:FormRow runat="server" ColumnWidths="33% 67%">
<Items>
<x
ropDownList ID="drplsCompanyNature" runat="server" Label="公司性质" ShowRedStar="true"
NextFocusControl="txtMembership" TabIndex="4">
<x
istItem Selected="True" Text="国企" Value="国企" />
<x
istItem Text="外资" Value="外资" />
<x
istItem Text="合资" Value="合资" />
<x
istItem Text="股份" Value="股份" />
<x
istItem Text="私营" Value="私营" />
<x
istItem Text="其它" Value="其它" />
</x
ropDownList>
<x:TextBox ID="txtMembership" runat="server" Label="隶属关系" NextFocusControl="txtOperateContent"
TabIndex="5">
</x:TextBox>
</Items>
</x:FormRow>
</Rows>
</x:Form>
</Items>
</x
anel>
<x
anel ID="grpOperateData" runat="server" EnableCollapse="True" Title="经营资料" BoxConfigPadding="3"
AutoWidth="True">
<Items>
<x:Form ID="OperateDataForm" runat="server" BodyPadding="10px 0px 0px 10px" EnableBackgroundColor="True"
Title="Form" ShowBorder="False" ShowHeader="False">
<Rows>
<x:FormRow runat="server" ColumnWidths="33% 6%">
<Items>
<x:TextBox ID="txtAnnualSale" runat="server" Label="年销售额" OffsetRight="1px" Regex="^[0-9]*[1-9][0-9]*$"
RegexMessage="年销售额只能为正整数值" NextFocusControl="txtCustomGroup" Required="true"
RequiredMessage="请输入年销售额" TabIndex="23" ShowRedStar="true">
</x:TextBox>
<x
abel ID="Label2" runat="server" Label="Label" Text="万元" ShowLabel="False" OffsetRight="10px"
CssStyle="margin-top:4px">
</x
abel>
</Items>
</x:FormRow>
<x:FormRow runat="server" ColumnWidths="100%">
<Items>
<x:TextBox ID="txtCustomGroup" runat="server" Label="客户关系" Required="true" RequiredMessage="请输入主要客户关系"
ShowRedStar="true" MaxLength="50" MaxLengthMessage="主要客户关系不能超过50个汉字或者字符" TabIndex="24">
</x:TextBox>
</Items>
</x:FormRow>
<x:FormRow runat="server" ColumnWidths="100%">
<Items>
<x:TextBox ID="txtMarketAdv" runat="server" Label="市场优势" Required="true" RequiredMessage="请输入公司市场优势"
ShowRedStar="true" MaxLength="50" MaxLengthMessage="市场优势不能超过50个汉字或者字符" TabIndex="25">
</x:TextBox>
</Items>
</x:FormRow>
</Rows>
</x:Form>
</Items>
</x
anel>
<x:SimpleForm ID="SimpleForm1" runat="server" BodyPadding="5px" EnableBackgroundColor="true" ShowBorder="false" ShowHeader="false"
Title="SimpleForm" Width="600" BoxConfigPosition="Center">
<Items>
<x:Button runat="server" Text="提交" ID="btnSubmit"
ValidateForms="BasicDataForm,OperateDataForm" Type="Submit" CssStyle="float:left;margin:0px 30px 0px 280px">
</x:Button>
<x:Button ID="btnReset" runat="server" Text="复位" Type="Reset"
EnablePostBack="false" ValidateForms="BasicDataForm,OperateDataForm">
</x:Button>
</Items>
</x:SimpleForm>
</Items>
</x
anel>
</div>
</form>
</body>
</html>
作者:
唐铁明
时间:
2012-12-14 06:11
<%@ Page Language="C#" AutoEventWireup="True" CodeBehind="1.aspx.cs" Inherits="AppBox.AgentsApply" %>
<%@ Register Assembly="FineUI" Namespace="FineUI" TagPrefix="x" %>
<!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>
<link href="../res/css/main.css" type="text/css" rel="Stylesheet" />
</head>
<body>
<form id="form1" runat="server" style="width:800px;">
<div>
<x:PageManager ID="PageManager1" runat="server" FormLabelWidth="68" />
<x:Panel ID="Panel1" runat="server" BodyPadding="5px" EnableBackgroundColor="true"
ShowBorder="true" ShowHeader="true" Title="代理商申请" AutoWidth="true">
<Items>
<x:Panel ID="grpBasicData" runat="server" EnableCollapse="True" Title="基本资料" BoxConfigPadding="3">
<Items>
<x:Form ID="BasicDataForm" runat="server" EnableBackgroundColor="True" ShowHeader="False"
BodyPadding="10px 0px 0px 10px" Title="Form" ShowBorder="False">
<Rows>
<x:FormRow runat="server" ColumnWidths="100%">
<Items>
<x:TextBox ID="txtCompanyName" runat="server" Label="公司名称" Required="True" ShowRedStar="True"
RequiredMessage="公司名称不能为空" FocusOnPageLoad="true" NextFocusControl="txtCompanyAddr"
TabIndex="1" MaxLength="128" MaxLengthMessage="公司名称最长不能超过128个汉字或者字符">
</x:TextBox>
</Items>
</x:FormRow>
<x:FormRow runat="server" ColumnWidths="75% 25%">
<Items>
<x:TextBox ID="txtCompanyAddr" runat="server" Label="公司地址" Required="True" ShowRedStar="True"
RequiredMessage="公司地址不能为空" MaxLength="128" MaxLengthMessage="公司地址最长不能超过128个汉字或者字符"
NextFocusControl="txtPostCode" TabIndex="2">
</x:TextBox>
<x:TextBox ID="txtPostCode" runat="server" Label="邮 编"
Regex="\d{6}" ShowRedStar="true" RegexPattern="POSTAL_CODE" Required="True" RegexMessage="请输入合法的邮编"
NextFocusControl="drplsCompanyNature" TabIndex="3">
</x:TextBox>
</Items>
</x:FormRow>
<x:FormRow runat="server" ColumnWidths="33% 67%">
<Items>
<x:DropDownList ID="drplsCompanyNature" runat="server" Label="公司性质" ShowRedStar="true"
NextFocusControl="txtMembership" TabIndex="4">
<x:ListItem Selected="True" Text="国企" Value="国企" />
<x:ListItem Text="外资" Value="外资" />
<x:ListItem Text="合资" Value="合资" />
<x:ListItem Text="股份" Value="股份" />
<x:ListItem Text="私营" Value="私营" />
<x:ListItem Text="其它" Value="其它" />
</x:DropDownList>
<x:TextBox ID="txtMembership" runat="server" Label="隶属关系" NextFocusControl="txtOperateContent"
TabIndex="5">
</x:TextBox>
</Items>
</x:FormRow>
</Rows>
</x:Form>
</Items>
</x:Panel>
<x:Panel ID="grpOperateData" runat="server" EnableCollapse="True" Title="经营资料" BoxConfigPadding="3"
AutoWidth="True">
<Items>
<x:Form ID="OperateDataForm" runat="server" BodyPadding="10px 0px 0px 10px" EnableBackgroundColor="True"
Title="Form" ShowBorder="False" ShowHeader="False">
<Rows>
<x:FormRow runat="server" ColumnWidths="33% 6%">
<Items>
<x:TextBox ID="txtAnnualSale" runat="server" Label="年销售额" OffsetRight="1px" Regex="^[0-9]*[1-9][0-9]*$"
RegexMessage="年销售额只能为正整数值" NextFocusControl="txtCustomGroup" Required="true"
RequiredMessage="请输入年销售额" TabIndex="23" ShowRedStar="true">
</x:TextBox>
<x:Label ID="Label2" runat="server" Label="Label" Text="万元" ShowLabel="False" OffsetRight="10px"
CssStyle="margin-top:4px">
</x:Label>
</Items>
</x:FormRow>
<x:FormRow runat="server" ColumnWidths="100%">
<Items>
<x:TextBox ID="txtCustomGroup" runat="server" Label="客户关系" Required="true" RequiredMessage="请输入主要客户关系"
ShowRedStar="true" MaxLength="50" MaxLengthMessage="主要客户关系不能超过50个汉字或者字符" TabIndex="24">
</x:TextBox>
</Items>
</x:FormRow>
<x:FormRow runat="server" ColumnWidths="100%">
<Items>
<x:TextBox ID="txtMarketAdv" runat="server" Label="市场优势" Required="true" RequiredMessage="请输入公司市场优势"
ShowRedStar="true" MaxLength="50" MaxLengthMessage="市场优势不能超过50个汉字或者字符" TabIndex="25">
</x:TextBox>
</Items>
</x:FormRow>
</Rows>
</x:Form>
</Items>
</x:Panel>
<x:SimpleForm ID="SimpleForm1" runat="server" BodyPadding="5px" EnableBackgroundColor="true" ShowBorder="false" ShowHeader="false"
Title="SimpleForm" Width="600" BoxConfigPosition="Center">
<Items>
<x:Button runat="server" Text="提交" ID="btnSubmit"
ValidateForms="BasicDataForm,OperateDataForm" Type="Submit" CssStyle="float:left;margin:0px 30px 0px 280px">
</x:Button>
<x:Button ID="btnReset" runat="server" Text="复位" Type="Reset"
EnablePostBack="false" ValidateForms="BasicDataForm,OperateDataForm">
</x:Button>
</Items>
</x:SimpleForm>
</Items>
</x:Panel>
</div>
</form>
</body>
</html>
欢迎光临 FineUI 官方论坛 (https://fineui.com/BBS/)
Powered by Discuz! X3.4