Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Imagebutton not showing in Panel

Status
Not open for further replies.

adalli

Programmer
Feb 8, 2005
44
MT
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
 
What event is this code running in?


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top