我想在用户点击数据库中查看更多详细信息链接按钮时在不同页面显示服务提供商的详细信息,我尝试了很多方法并没有得到想要的结果,请你帮助我< / p>
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master"
AutoEventWireup="true" CodeFile="music.aspx.cs" Inherits="Flowers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server">
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$
ConnectionStrings:PartyZoneConnectionString %>" SelectCommand="SELECT * FROM
[ServiceP] WHERE ([ServiceName] = @ServiceName)">
<SelectParameters>
<asp:Parameter DefaultValue="music" Name="ServiceName" Type="String" />
</SelectParameters>
</asp:SqlDataSource>
<asp:DataList ID="DataList1" runat="server" DataSourceID="SqlDataSource1"
OnItemCommand="SP_ItemCommand" RepeatColumns="4"
RepeatDirection="Horizontal"
OnSelectedIndexChanged="DataList1_SelectedIndexChanged">
<ItemTemplate>
<table class="auto-style1">
<tr>
<td>
<asp:Label ID="Label1" runat="server" Text='<%#
Eval("ServiceProviderName") %>'></asp:Label>
</td>
</tr>
<tr>
<td>
<asp:Image ID="Image1" runat="server" Height="86px"
ImageUrl='<%# Eval("ServiceProviderImage") %>' Width="142px" />
</td>
</tr>
<tr>
<td>
<asp:LinkButton ID="detailsButton" runat="server"
Text=<%#"more detailes about " + Eval("ServiceProviderName")%>
></asp:LinkButton>
</td>
</tr>
</table>
</ItemTemplate>
</asp:DataList>
</asp:Content>