473,387 Members | 1,483 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

ImageButton and Firefox problem. What is wrong?

Hello,

I have an ASP:Image and an ASP:ImageButton where I set Width=100.

Asp:ImageButton is resized in Internet Explorer but not in Firefox.

Asp:Image is resized both in Internet Explorer and Firefox.

What is wrong here?

Basically I need to have an image with width=100 which when pressed runs
a function Change_Photo in my aspx.vb page:

Public Sub Change_Photo()
....
End Sub

How can I solve this?

Thank You,
Miguel

Nov 19 '05 #1
2 1810
Shapper wrote:
Hello,

I have an ASP:Image and an ASP:ImageButton where I set Width=100.

Asp:ImageButton is resized in Internet Explorer but not in Firefox.

Asp:Image is resized both in Internet Explorer and Firefox.

What is wrong here?

Basically I need to have an image with width=100 which when pressed runs
a function Change_Photo in my aspx.vb page:

Public Sub Change_Photo()
...
End Sub

How can I solve this?

Thank You,
Miguel


Seems to work for me; both resize properly:

<asp:ImageButton id="ib" runat="server" CssClass="ib"
OnCommand="Change_Photo" ImageUrl="images/test.jpg"
commandname="image01_url" Width="100"></asp:ImageButton>

--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET
Nov 19 '05 #2
Hi,

Thanks Craig. It works fine now.

Miguel

"Craig Deelsnyder" <cdeelsny@NO_SPAM_4_MEyahoo.com> wrote in message
news:cdeelsny@NO_SPAM_4_MEyahoo.com:
Shapper wrote:
Hello,

I have an ASP:Image and an ASP:ImageButton where I set Width=100.

Asp:ImageButton is resized in Internet Explorer but not in Firefox.

Asp:Image is resized both in Internet Explorer and Firefox.

What is wrong here?

Basically I need to have an image with width=100 which when pressed runs
a function Change_Photo in my aspx.vb page:

Public Sub Change_Photo()
...
End Sub

How can I solve this?

Thank You,
Miguel

Seems to work for me; both resize properly:

<asp:ImageButton id="ib" runat="server" CssClass="ib"
OnCommand="Change_Photo" ImageUrl="images/test.jpg"
commandname="image01_url" Width="100"></asp:ImageButton>

--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET


Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Chuck Hartman | last post by:
I've been trying to add an ImageButton object to a Calendar table cell, but so far I am unable to handle the Command event from that button in my form's code behind. Below is an example of what I...
4
by: angus | last post by:
Dear all, I know that i can add a button with oncommand event "ImageButton_Command" by using the asp:ImageButton tag in the aspx code. <asp:ImageButton id="imagebutton1" runat="server"...
3
by: Benjamin Gavin | last post by:
Hi all, I recently stumbled upon a bug in the ASP.NET framework handling of ImageButton based postbacks. The issues derives from the fact that IE and Mozilla handle the case of a missing image...
2
by: David | last post by:
I have a web page with a Imagebutton that needs to be 1" square. I created the button and set the width to "112px" and this works well under IE 6x. However when I run the page under Firefox, the...
3
by: jens.buchta | last post by:
Hi! I'm using a DataGrid with a template column to display an Image inside of it. I'm hooking into its OnPrerender-Event to set the ImageURL-Property dynamically. Everything works just fine...
3
by: JuniorProgrammer | last post by:
Am trying to add an Image Button into a Datalist at Design time. When I run it it comes up with error: Server tag not well formed. It works perfectly when I add just an Image Control. Please...
3
by: Varangian | last post by:
Hello how come foreach(ImageButton imgbtn in Page.Controls) doesn't work ? whats wrong in that statement? what should I do? I need to go through each ImageButton in the Page, without going...
1
by: RicercatoreSbadato | last post by:
i need help, i have an ImageButton inside the ItemTemplate tag of a Repeater. In the code behind i use a DataBound() to assign a CommandName and a CommandArgument to the ImageButton. If i use...
7
by: =?Utf-8?B?RWFnbGVSZWRASGlnaEZseWluZ0JpcmRzLmNvbQ== | last post by:
I am having trouble getting client-side events to fire on ImageButtons. Instead I am seeing postbacks. The client-side handlers end with "return false;" but they are never called. ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.