天下無雙
阿龍 --质量是流程决定的。
</ItemTemplate>
</ASP:TemplateColumn>

ASP:TemplateColumn HeaderText="单价">
<ItemTemplate>
ASP:TextBox id="DanJian" runat=’server’ Text=’<%# DataBinder.Eval(Container.DataItem,"DG_DanJian")%>’
onkeyup="Javascript:DoCal()"
/>

ASP:RegularEXPressionValidator id="revS2" runat="server" ControlToValidate="DanJian" ErrorMessage="must be numeric" ValidationEXPression="^\d+(\.\d*)?$" />

</ItemTemplate>
</ASP:TemplateColumn>

ASP:TemplateColumn HeaderText="金额">
<ItemTemplate>
ASP:TextBox id="JinE" runat=’server’ Text=’<%# DataBinder.Eval(Container.DataItem,"DG_JinE")%>’ />
</ItemTemplate>
</ASP:TemplateColumn><script language="Javascript">
function DoCal()
{
 var e = event.srcElement;
 var row = e.parentNode.parentNode;
 var txts = row.all.tags("INPUT");
 if (!txts.length txts.length < 3)
  return;

 var q = txts[txts.length-3].value;
posted on 2007-07-21 11:26  阿龍  阅读(126)  评论(0编辑  收藏  举报