S
SimonM
I am creating an ImageButton at run time and adding it to a place holder
control's collection. I am using the AddHandler to associate a procedure with
the Command event but when I click on the ImageButton at runtime, it doesn't
fire the procedure...
Here is my code:
' Add Image Button
ibnConfirm = New ImageButton
ibnConfirm.ImageUrl = "Confirm16.ico"
ibnConfirm.CommandName = "Confirm"
ibnConfirm.CommandArgument = e.Item.DataItem("pk_Quotation_in")
ibnConfirm.ToolTip = "Confirm Quotation"
AddHandler ibnConfirm.Command, AddressOf ibnConfirm_Command
' Add to place holder collection
plhConfirm.Controls.Add(ibnConfirm)
control's collection. I am using the AddHandler to associate a procedure with
the Command event but when I click on the ImageButton at runtime, it doesn't
fire the procedure...
Here is my code:
' Add Image Button
ibnConfirm = New ImageButton
ibnConfirm.ImageUrl = "Confirm16.ico"
ibnConfirm.CommandName = "Confirm"
ibnConfirm.CommandArgument = e.Item.DataItem("pk_Quotation_in")
ibnConfirm.ToolTip = "Confirm Quotation"
AddHandler ibnConfirm.Command, AddressOf ibnConfirm_Command
' Add to place holder collection
plhConfirm.Controls.Add(ibnConfirm)