日期:2014-05-18 浏览次数:20461 次
<asp:DataList ID="DataList1" runat="server" DataSourceID="ObjectDataSource1" Width="100%" DataKeyField="AUTHOR"> <ItemTemplate> <table> <tr> <td> <%#Eval("AUTHOR") %> </td> </tr> <tr> <td> <asp:DataList ID="DataList2" runat="server" DataSourceID="ObjectDataSource2"> <ItemTemplate> <table> <tr> <td> 查询得到用户密码:<%#Eval("PASSWORD") %> </td> </tr> </table> </ItemTemplate> </asp:DataList> </td> </tr> </table> </ItemTemplate> </asp:DataList> <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetReplaysById" TypeName="MyBBSBLL.TitleManager"> <SelectParameters> <asp:QueryStringParameter Name="_titleid" QueryStringField="titleid" Type="Int32" /> <asp:QueryStringParameter DefaultValue="1" Name="_page" QueryStringField="page" Type="Int32" /> </SelectParameters> </asp:ObjectDataSource> <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" SelectMethod="GetUserInfoByUserName" TypeName="MyBBSBLL.UserManager"> <SelectParameters> <asp:ControlParameter ControlID="DataList1" Name="_username" PropertyName="SelectedValue" Type="String" /> </SelectParameters> </asp:ObjectDataSource>
<asp:DataList id="DataList2" runat="server" DataSourceID="SqlDataSource2">
<ItemTemplate>
<tr>
<td class="news_title_td" style="width:500;">
<a style="font-weight: bold; font-size: 13px;color:White;" href=' <%# "newstypeshow.aspx?newstypeid=" + Eval("newstypeid") %>' target="_blank"> <%# Eval("newstype")%> </a> </td>
</tr>
<tr> <td>
<asp:DataList