日期:2014-05-17  浏览次数:20519 次

能不能用后台的变量,用在前台来用作asp.net控件的ID,怎么做????
 <%  if(checkflow!=null)
                {  for(int i=1;i<= checkflow.FLOW_STEP_COUNT;i++)
                   { %>
                   <tr>
                <td>
                     审批流程步骤<% i.ToString(); %>
                </td>
                <td align="left">
                    <asp:DepartmentSelect ID="DepartmentSelect<% i.ToString(); %>" runat="server" Rows="10" Width="250px"
                        Height="200px" SelectionMode="Multiple">
                        <FirstListBox>
                            <StyleSheet Width="100px" />
                        </FirstListBox>
                        <SecondListBox>
                            <StyleSheet Width="100px" />
                        </SecondListBox>
                    </asp:DepartmentSelect>
                </td>
               </tr>
               <% }}%>