日期:2014-05-16 浏览次数:20452 次
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title> New Document </title> <meta name="Generator" content="EditPlus"> <meta name="Author" content=""> <meta name="Keywords" content=""> <meta name="Description" content=""> </head> <script type="text/javascript"> function start(){ var firstInput=document.getElementsByTagName("input")[0]; firstInput.select(); } </script> <body onload="start();"> <label>text1:</label> <input type="text" /><br/> <label>text2:</label> <input type="text" /><br/> <label>text3:</label> <input type="text" /><br/> <label>text4:</label> <input type="text" /><br/> </body> </html>
------解决方案--------------------
<input id="txtJE" name="txtJE" maxlength="15" pp="tt" type="text" t_value="" o_value=""
svalue="<%# DataBinder.Eval(Container.DataItem, "ptdtmx_je") %>" ivalue="<%# DataBinder.Eval(Container.DataItem, "ptdtmx_srje") %>" isright="<%# DataBinder.Eval(Container.DataItem, "ptdtmx_df") %>" te=""
style="width:150px; font-size:12px; padding-top:3px;border:0px none white;height:15px; line-height:15px; text-align:right; background-color:#CCE8CF;"
value='<%# ((double)(DataBinder.Eval(Container.DataItem, "ptdtmx_srje"))==0)?"":string.Format("{0:N"+iXXW+"}", ((Double)(DataBinder.Eval(Container.DataItem, "ptdtmx_srje"))))%>'
onKeyPress="fkeyPress(this);" onkeyup="fkeyUp(this);" onfocus="fonFocus(this);" onblur="fonBlur(this);" />