I am adding an ImageButton control to my ASPX page dynamically in code (VB.NET) by adding it to the controls collection of a PlaceHolder control. However, "OnCommand" is not listed in the properties of that control. I need to set this to specify the name of the procedure which will act as the event handler when this control is clicked on.
Does anyone know how I set it?
Here is my code so far:
There is no "OnCommand" property...VB Code:
ibPOD = New ImageButton ibPOD.ImageUrl = "View.ico" ibPOD.CommandName = "ViewJob" ibPOD.CommandArgument = e.Item.DataItem("pk_Job_in") ibPOD.ToolTip = "View Job"![]()





Reply With Quote