Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Member
1 Points
7 Posts
Sep 26, 2007 10:30 AM|LINK
Hi,
I'm new to ASP so sorry in advance for what's probably a very simple question.
I've got an image button displaying a small calendar picture.
<asp:ImageButton ID="imgCal1" runat="server" Height="29px" ImageUrl="~/App_Data/calendar1.PNG" OnClick="imgCal1_Click" Style="z-index: 113; left: 356px; position: absolute; top: 331px" Width="38px" />
When I'm in the page designer I can see the image fine, but as soon as I run the page I just see the standard red cross. I tried using a jpg and a gif version as well.
What am I doing wrong???
Sorry again if this is a stupid question!
Thanks.
GlennC
Member
1 Points
7 Posts
ImageButton: Image only display in design time.
Sep 26, 2007 10:30 AM|LINK
Hi,
I'm new to ASP so sorry in advance for what's probably a very simple question.
I've got an image button displaying a small calendar picture.
<asp:ImageButton ID="imgCal1" runat="server" Height="29px" ImageUrl="~/App_Data/calendar1.PNG" OnClick="imgCal1_Click" Style="z-index: 113; left: 356px; position: absolute; top: 331px" Width="38px" />When I'm in the page designer I can see the image fine, but as soon as I run the page I just see the standard red cross. I tried using a jpg and a gif version as well.
What am I doing wrong???
Sorry again if this is a stupid question!
Thanks.