473,395 Members | 1,870 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,395 software developers and data experts.

Resize Picture in ImageButton

I do i resize a ImageUrl Picture to show at 50 precent of its size?
the height is only a set not a precent.
Jul 21 '05 #1
3 7059
I was able to get it to work by adding a height="50%" to a image control and a ImageButton control. It set both images as 50% of the cell width.
I do i resize a ImageUrl Picture to show at 50 precent of its size?
the height is only a set not a precent


User submitted from AEWNET (http://www.aewnet.com/)
Jul 21 '05 #2
I changed it to
<asp:ImageButton ID="Picture" height=50% width=50% CommandName="select"
runat="server" ImageUrl='<%# DataBinder.Eval(Container.DataItem,
"carPicture") %>' />

and the pictures don't show at all

"alan.washington" wrote:
I was able to get it to work by adding a height="50%" to a image control and a ImageButton control. It set both images as 50% of the cell width.
I do i resize a ImageUrl Picture to show at 50 precent of its size?
the height is only a set not a precent.


User submitted from AEWNET (http://www.aewnet.com/)

Jul 21 '05 #3
I alsi tried

Pictureheader.Width.Percentage(50%)
Pictureheader.Height.Percentage(50%)

and
Pictureheader.Width.Percentage(50)
Pictureheader.Height.Percentage(50)

both did not work

"Stanley J Mroczek" wrote:
I do i resize a ImageUrl Picture to show at 50 precent of its size?
the height is only a set not a precent.

Jul 21 '05 #4

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

Similar topics

3
by: Z D | last post by:
Hello, BACKGROUND: ============== I've created a Windows User Control that contains an Image Control (among other controls). The user control handles the picture resize event. Whenever the...
4
by: SlasherStanley | last post by:
BlankHi How do you resize a jpg file. I want to open a file (c:\abc.jpg 800 x 600) and resize it as 120 x 100, I then want to save it as c:\abc_t.jpg. Thanks Slasher
3
by: Stanley J Mroczek | last post by:
I do i resize a ImageUrl Picture to show at 50 precent of its size? the height is only a set not a precent.
2
by: wardemon | last post by:
Hi, I was wondering how can one the following in ASP.net a. Resize (Collapse/Expand) Frame A from Frame B b. Resize (Collapse/Expand) Frame A from Frame A example A I believe is found at MSDN...
2
by: Dominic Vella | last post by:
Hi, I know I seem to have the really complicated questions, but I guess that's why I'm here. This is a little verbose, only because I've been trying to crack this for a week now. Your help...
8
by: infoseekar | last post by:
Image Resize & Rotation Hi I have 2 scripts, one for Image rotation and other image resize and they both are working. Image resize scripts load the picture and resize it and Image rotation...
3
by: zacks | last post by:
I am developing an application in VS2005. I have a form that has a PictureBox control whose purpose is to be able to plop a User Control in it. And the User Control can be one of several possible...
3
by: =?Utf-8?B?UiBSZXllcw==?= | last post by:
Hi! This discussion may help other programmers get a better idea of how to save uploaded images through a website. Why? Well currently, I save 3 versions of every uploaded image on my own...
1
by: MaryKJolly | last post by:
i want to display a picture in a picture/image box. when i have tried it, only a part of the picture is displayed in the picture box. how can i resize the picture in order to get the full view of the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.