English 中文(简体)
bp.net 模板内有效器的网格格式
原标题:asp.net gridview formatting with validators inside of templates

当我把任何有效器添加到网格内的任何模板类型中时,看来有效器改变了电池/栅栏的高度、宽度和一致性。 我可以排除所有格式[取消风格表格和任何其他属性],如果在模板中添加格式改动——涉及有效者的话。 我对网来说是很新的——我如何防止有效人员产生任何形式影响? 我认为,它们将产生零的影响。

感谢!

以下为一栏的一个例子:

<asp:TemplateField HeaderText="Paid" SortExpression="PaidPrice" ControlStyle-Width="50px" ItemStyle-HorizontalAlign="center">
        <EditItemTemplate>
            <asp:TextBox ID="PaidPrice" runat="server" Text= <%# Eval("PaidPrice","{0:f}") %>  ></asp:TextBox>
            <asp:CompareValidator ID="CompareValidator2" Runat="server" ControlToValidate="PaidPrice" Operator="DataTypeCheck" Type="Currency"
                ErrorMessage="You must provide a valid currency value for the Paid Price." >*</asp:CompareValidator>
        </EditItemTemplate>
        <ItemTemplate>
            <asp:Label ID="lblPaidPrice" runat="server" Text= <%# Eval("PaidPrice","{0:c}") %>  ></asp:Label>
        </ItemTemplate>
    </asp:TemplateField>
最佳回答

你确实没有具体说明在形式上的变化,但根据你的法典,我有好的想法。 I一栏的宽度比你想要和显示白色空间要广。

如果情况如此,情况可能是:

• 将电压器的显示财产“Dynamic”。 然后,如果存在有效的艾伯顿错误,他们只能占用空间。

这一财产的违约价值是“统计”,因此它要占用同样数量的空间,无论信息是否明显。

问题回答

暂无回答




相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签