컨트롤 테이블 데이터 할당

3098 단어 데이터
 <p>
            <label>
                  ID :
            </label>
            <span>
                <asp:Label ID="LbInstitutionID" runat="server" Text="Label"></asp:Label></span></p>
        <p>

  
       

public void BindDataLb(string where) { DataSet ds = new DataSet(); StringBuilder strWhere = new StringBuilder(); strWhere = new StringBuilder(where); ds = bll.GetList(strWhere.ToString()); foreach (DataRow dr in ds.Tables[0].Rows) { HR.Model.Admin.P_LoanProduct model = new Model.Admin.P_LoanProduct(); model.InstitutionID = Convert.ToInt32(dr["InstitutionID"]); // ID : LbInstitutionID Turn(model); } } public void Turn(HR.Model.Admin.P_LoanProduct model) { HR.BLL.Admin.I_Institution bllInstitution = new HR.BLL.Admin.I_Institution(); DataSet ds = bllInstitution.GetList("InstitutionID=" + model.InstitutionID); LbInstitutionID.Text = ds.Tables[0].Rows[0]["InstitutionName"].ToString();// ID : LbInstitutionID ds = null; }

좋은 웹페이지 즐겨찾기