- - PR -
リピーターコントロール内のImageButtonの値の取得方法
1
投稿者 | 投稿内容 |
---|---|
|
投稿日時: 2007-01-06 20:12
リピーターコントロール内のImageButtonをクリックした時にImageButtonのImageUrlの値をTextBox1.Text に取得したいのですが、うまく進めません。お教えください。
----------------------------------------------------------------------- 以下vb.net の記述です。 ----------------------------------------------------------------------- Private Sub Repeater2_ItemCommand(ByVal source As System.Object, ByVal e As System.Web.UI.WebControls.RepeaterCommandEventArgs) Handles epeater2.ItemCommand If e.CommandName = "Edit1" Then TextBox1.Text= ' ここあたりに何を記述するのでしょうか......... End If End Sub ---------------------------------------------------------------- 以下、html の記述です。 <asp:ImageButton id=ImageButton1" runat="server" Height="96px" CommandName="Edit1" ImageUrl='<%# DataBinder.Eval(Container.DataItem, "写真1") %>'></asp:ImageButton> ---------------------------------------------------------------- 宜しくお願い申しあげます。 |
|
投稿日時: 2007-01-06 21:20
質問者です。
トライしていたら TextBox1.Text = (e.CommandSource).imageurl で、取得できました。ありがとう、ございます。 |
1