Hi,
I am trying to add a panel control onto which I want to insert an image button.
For some reason the image button is not becoming visible.
<%
Dim pnlMyAccount As New Panel
pnlMyAccount.ID = "pnlMyAccount"
pnlMyAccount.Height = 100
pnlMyAccount.Width = 143
Dim imgButtonAccount As New ImageButton
imgButtonAccount.ID = "imgButtonAccount1"
imgButtonAccount.ImageUrl = "Images/Open_Tomato.gif"
imgButtonAccount.OnClientClick = "imgButtonAccount_Click()"
pnlMyAccount.Controls.Add(imgButtonAccount)
%>
Many thanks in advance
I am trying to add a panel control onto which I want to insert an image button.
For some reason the image button is not becoming visible.
<%
Dim pnlMyAccount As New Panel
pnlMyAccount.ID = "pnlMyAccount"
pnlMyAccount.Height = 100
pnlMyAccount.Width = 143
Dim imgButtonAccount As New ImageButton
imgButtonAccount.ID = "imgButtonAccount1"
imgButtonAccount.ImageUrl = "Images/Open_Tomato.gif"
imgButtonAccount.OnClientClick = "imgButtonAccount_Click()"
pnlMyAccount.Controls.Add(imgButtonAccount)
%>
Many thanks in advance