こんにちは私はImageButtonに問題があります私はそれを修正できる方法を知るためにはダブルクリックする必要があります。応答?PostBackUrlのImageButtonが2回目のクリックの問題の後に応答します
ありがとうございます!
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:smokeshopConnectionString %>"
ProviderName="<%$ ConnectionStrings:smokeshopConnectionString.ProviderName %>"
SelectCommand="SELECT ProductID, Name, Description, Price, ImageUrl FROM products"></asp:SqlDataSource>
<asp:DataList ID="DataList1" runat="server" DataSourceID="SqlDataSource1"
RepeatDirection="Horizontal"
DataKeyField="ProductID" >
<ItemTemplate>
<div style="border-style:dotted; border-color:WhiteSmoke;">
<a onclick="popup('popUpDiv')" href="#" ><asp:ImageButton ID="ImageButton1" runat="server" ImageUrl='<%# Eval("ImageUrl", "Images\\{0}") %>' PostBackUrl='<%# Eval("ProductID", "Default5.aspx?ProductID={0}") %>' /></a><br />
<asp:Label ID="NameLabel" runat="server" Text='<%# Eval("Name") %>'></asp:Label><br />
</div>
</ItemTemplate>
</asp:DataList>
クロスページポストバックが本当に必要ですか?クリックすると詳細ページに移動しますか? –