Is there a control which can display scroll bar when image dimension exceed the control

I put a image in the control, when the image dimension is less than the control dimension, it's normal, but when  the image dimension is larger than the control dimension, I hope the control can display a scroll bar , so I can view full dimension image by operate scroll bar.


SuperCool Multiple ZIP - A utility to unzip multiple files and work with multiple zip files

SuperCool Random Number Generator
0
mycwcgr
3/15/2009 3:03:04 AM
asp.net.web-forms 93655 articles. 5 followers. Follow

1 Replies
680 Views

Similar Articles

[PageSpeed] 28

Hi,

You could simply place your image inside a HTML DIV element with a CSS class that keeps the dimensions, something like the following would work:

.scrollableImage { width:128px; height:128px; overflow:auto; }

Your DIV would look something like:

<div class="scrollableImage"><IMG /></div>

Let me know if you need any more help with this and happy coding!


Remember to click "Answer" if this has helped you!

Dan Birch
MCSD, MCAD, MCP
www.vectorlight.net - Free Silverlight Controls
0
netdan
3/15/2009 3:53:05 AM
Reply:

Similar Artilces:

Changing field names (display name) for a web interface and how to create a scroll bar for a datagrid or any control with a scroll bar to display data
Hello,  Can any1 please help me. i was wondering if any1 can tell  me how i can change  field names for a data grid only for the display on the web interface and also how can i put scroll bars on my data grid. Thank you.       Hi misbahmurtza, You can set field names in HeaderText attribute in any column or template. If you want to create a scroll bar, the easiest way is to set style for the <div> which contains your datagrid. Here is a sample: <div style="vertical-align: top; height:100px; width:100%; overflow:auto;"> Make sure ...

BUG: Image Controls in UpdateProgess Control: Can not use FindControl() methods to get Image
There is a single UpdateProgress control on the page. as such: <ajax:UpdateProgress  ID="UpdateProgress1" runat="server"   DisplayAfter="100" >         <ProgressTemplate>                <div style="border:2px solid #0099FF; background-color:#EFEFEF; padding:10px; width:200px; height:20px;">               Updating Panel            </div&...

Controlling web control instances on Web Form
I have created a composite control, extending functionality of the Hidden Control. However, I would like to prevent the user from adding this control to the page multiple times. I only want one instance of the control on the Web Form. What setting in my project to I adjust to enable this functionality? I can not find it in any of the books that I have referenced. Is this a setting or is this code that has to be added to the inheriting class. Looks like there is no standard apporach. But I'd consider using static field to count number of created objects and throw exception if second object ...

Is there any web form control that can work as IFRAME html control?????
in html pages, we can use iframe control in which we can load another pages and/or folder explorer. now, i'm developing a web page in which i like to show the folder explorer when user clicks a link. as a prototype, i developed an html page like below: <html> <head><title>Using iFrame to browse a folder</title> </head> <body bgcolor=cyan> <table left=5px top=5px id=tabMain width=90% height=90% border=1 cellspacing=1 cellpadding=1> <tr height=100%> <td width=20% align=center valign=middle> <INPUT TYPE="Butto...

Can you return .net web controls in a .net page from a web service?
I've got a problem with a project. I've got to compile an entire .net page and return it as part of a Web Service for display. The problem I have is that I need to add WebControls and functionality to the page so that not only the html content and images are displayed (which I've managed) but that textboxes, labels, buttons and datasets can be displayed also. Essentially I need to make a call from one site for a page, populate the page and return it in a state as though it resided on the same server/webspace as the calling page. Code is currently built as follows into a string: strOpenHT...

how to call controls of web control form in coding of other forms?
hello everyone i have one problem i have created one webcontrol shoppingcart in which there are two labels one of qty and other of amt which are initially enable =falsenow on other page(aspx page) i have one txtbox of qty as txtqty i want tat as soon as user enters qty txtqty and clicks on add cart button it shd be display d value in lblqty of web control shopping cart make sure i m using datalist on aspx page so give me suggestions on tat basis and my coding is in vb. plz give ur suggestions as fast as possible. Neeti what do you mean by webcontrol.... it this user control or normal ...

VB.NET web form Image control SizeMode
The "PictureBox" control in VB.NET has a property called "SizeMode". This allows you to choose how the image will display in the picture box if it is not the same size as the picturebox. However the "image" control for a VB.NET web form (in an ASP.NET application) does not have such a property, instead all images seem to be set to "StretchImage". I want them to be set to "normal", how can I do this? I thought of building my own user control but this would be silly because there must be a simpler way....

How can I control load sequence of web controls in a web page?
Hi, How can I control load sequence of web controls in a web page? Thanks. For the most part, the load sequence on a web page is not relevant since all controls must be present before the page can be used. Could you provide more information as to what you're trying to do?Christopher Reed"The oxen are slow, but the earth is patient." Hi, As far as I know, we have no luck to control the load order of the Web controls on a page. However, if we need to load some controls under given conditions, we can achieve this by adding them dynamically instead.Forwa...

Web control in web control
Hi,There are two simple web user controls A and B, where B contains A. They just display the bunch of text boxes, so I do not need them even in tool pane. They sit in the same project next to web form.I noticed that web user control put on ASPX page does not appear in code behind, but if I create it with protected keyword and name being exactly the same as id it works fine. I can access such a web control from code behind and see the value assigned in IE. The problem is that the same routine does work for my A web control in B. When I assign the value IE, I keep getting null reference. ...

How to access individual controls from a form containing the web user control containing those controls
 Below is a block of code in my .aspx form named default.aspx. In this form I load a web user control. I then add it to a place holder control.(Lines 3 and 4 below) So how do I access the individual controls in my web user control? I want to set the properties on those controls, but I am baffled as to how to access the control. For example I have a text label control named "label3". How do I access this control. Because for example, under certain situations I want to hide that control. ( Label3.Visible = false;)  1    if(!Page.IsPostBack) 2&nb...

how can i show image on image control after uploading by fileupload control
hey , can any one tell me how can i show my image after selecting it in fileupload control . the best way is that i put a button on the page which click set the image url to the image control. but then i have to activate server side code. but i do not want that . is there any other way . plz help me What do you mean activate server side code? You can use an asp:image control and set the ImageUrl property to the location of the file you uploaded.Peter Kellnerhttp://73rdstreet.com and blogging athttp://PeterKellner.netMVP, ASP.NET Some serverside code is going to have to take place beca...

controlling an object in a web control from the page the web control is placed in
I have created a web control in vb.net that has an image button and an image. when it loads the image button is visible and the image is not. I want to be able from the page which "includes" the web control to set the image button to invisible and the image to visible. When I tried this, the main page didn't recognise the image button or the image (both < asp: objects). help would be gratefully appreciated. oh yeah, it's inline code so any code behind stuff will just confuse me ;) Some code please.-- Justin Lovell...

how to display image from web service in an image control
 Hi, I am using web service to fetch image from the video server, and displayed  in the web application, that is working fine,but I am using               Response.ContentType = "image/gif";              Response.BinaryWrite(arrpicture); but I want to display this image in the image control of the web application.Can any one help me out in this.Thanks,     You can do this using an HTTP Handler, using the same technique outlined...

How I disable vertical scroll bar of report viewer control on Web Form.
I'm displaying .rdlc report file using Report viewer control on Webform. If  I Fix height of viewer control and data is not same as to size of viewer control then it display one scrollbar on viewer control and second vertical scroll bar is coming on webpage.  I want to off viewer vertical scrollbar or in simple word's I don't want to display two scroll bar with my report. Please guide me or send me reference if any. Thanks,Vaibhav Jain You to set two properties to make the repoertviewer autosize: AsyncRendering = false; and SizeToReportContent = true;Thanks,MaxLe...

Web resources about - Is there a control which can display scroll bar when image dimension exceed the control - asp.net.web-forms

Dimension - Wikipedia, the free encyclopedia
This article is about dimensions of space. For the dimension of a quantity, see Dimensional analysis . For other uses, see Dimension (disambiguation) ...

Dimension - Wikipedia, the free encyclopedia
This article is about dimensions of space. For the dimension of a quantity, see Dimensional analysis . For other uses, see Dimension (disambiguation) ...

Dimension - Wikipedia, the free encyclopedia
This article is about dimensions of space. For the dimension of a quantity, see Dimensional analysis . For other uses, see Dimension (disambiguation) ...

Dimension - Wikipedia, the free encyclopedia
This article is about dimensions of spaces. For the dimension of a quantity, see Dimensional analysis . For other uses, see Dimension (disambiguation) ...

INFOGRAPHIC: Facebook Image Dimensions Guide
Despite Facebook’s well-documented efforts to simplify its advertising offerings , several different dimensions still exist for elements on pages ...

Melbourne Festival review: John McLaughlin and the 4th Dimension's speed, volume and electricity leaves ...
MELBOURNE FESTIVAL JOHN McLAUGHLIN & THE 4TH DIMENSION &#9733;&#9733;&#9733;&#9733;&#160; &#160; &#160; &#160; &#160; &#160; Melbourne Recital ...

Dimension W TV Anime's 1st TV Ad, Theme Song Artists Revealed
... perform theme songs for series premiering in January In the year 2071, the world's energy problems seem solved by a network of cross-dimensional ...

Extra dimensions? Dark matter? A more powerful Collider hunts for clues
It's already helped scientists find what some call the "God Particle." What else will the Large Hadron Collider reveal as it begins work at nearly ...

The Energy Dimension Of Turkey’s Russia Problem
It would behoove Turkey to deescalate tensions before Russia uses its massive energy apparatus to shut off power

Hot Short Film ‘Polaroid’ Landed By Dimension Films
EXCLUSIVE : Dimension Films is optioning the rights to the short horror film Polaroid , which was written and directed by Lars Klevberg . It ...

Resources last updated: 12/17/2015 8:52:26 PM