我在一行内用两个控件为什么,第二个控件会自动移到第一个控件的下面,不明白,忘高手解答。
附原码:
<igtxt:webmaskedit id="WebMaskEdit1" runat="server" InputMask="####-##-##" PromptChar="0" SelectionOnFocus="CaretToBeginning" RealText="&#19;&#19;&#19;&#19;-&#19;&#19;-&#19;&#19;"></igtxt:webmaskedit>至
<igtxt:webmaskedit id="WebMaskEdit2" runat="server" InputMask="####-##-##" PromptChar="0" SelectionOnFocus="CaretToBeginning" RealText="&#19;&#19;&#19;&#19;-&#19;&#19;-&#19;&#19;"></igtxt:webmaskedit>对了,我用的是Infragistics2004VOL2版本

解决方案 »

  1.   

    是这样,因为它的控件呈现时是用了table,如果要一行就要在其前加一个table。<table>
    <tr>
    <td>
    <igtxt:webmaskedit id="WebMaskEdit1" runat="server" InputMask="####-##-##" PromptChar="0" SelectionOnFocus="CaretToBeginning" RealText="&#19;&#19;&#19;&#19;-&#19;&#19;-&#19;&#19;"></igtxt:webmaskedit>
    </td>
    <td>

    </td>
    <td> <igtxt:webmaskedit id="WebMaskEdit2" runat="server" InputMask="####-##-##" PromptChar="0" SelectionOnFocus="CaretToBeginning" RealText="&#19;&#19;&#19;&#19;-&#19;&#19;-&#19;&#19;"></igtxt:webmaskedit>
    </td>
    </tr>
    </table>
      

  2.   

    原来得把每一个控件都放到一个<td>里面,谢谢指点