怎么读取某个表中的变量字段的值

如何读取某个表中的变量字段的值。
前台显示:
<asp:Repeater ID="propertyList" runat="server">
                <ItemTemplate>
                    <tr>
                        <td style="width: 30%; height: 25px; background-color: #ffffff;text-align:left">
                           &nbsp;&nbsp;&nbsp;&nbsp; <%# Eval("propertyName")  %>
                         </td>
                        <td style="text-align: left; background-color: #ffffff;">
                        <asp:TextBox ID="txtName" runat="server" Text='<%#Eval("fieldName")%>'></asp:TextBox>
                        </td>
                    </tr>
                </ItemTemplate>
</asp:Repeater>

后台代码:
          DataSet ds = GetList("topType='1' and ifShown=1");//GetList为自定义方法,从productField表中取出符合条件的记录。
        this.propertyList.DataSource = ds;
        this.propertyList.DataBind();

productField表的主要结构:
字段名:propertyName fieldName
取值:   编号           Pro_no
        品牌           Pro_brand
             。。。。。。。
另有productDetail表:
里面有pro_no,pro_brand等字段。
我希望在前台显示,当前取出的propertyName的值,及在productDetail中对应的fieldName(pro_no,pro_brand等字段)的值。请问各位,该如何实现?先谢过。
不知道这样子,说明白了吗?

------解决方案--------------------

select * from productField pf
join productDetail pd1 on pf.Pro_no=pd1.pro_no
join productDetail pd2 on pf.pro_brand=pd2.pro_brand


------解决方案--------------------
刚才想了下 好像没对。 
 

select * from productField pf
join productDetail pd on pf.fieldName=pd.fieldName

------解决方案--------------------
select pf.propertyName,pf.fieldName from productField pf 
join (select name from syscolumns where id=object_id('productDetail')) pd 
on pd.name=pf.fieldName