Solved

asp.net vb.net image in gridview causes displacement in other html element

Posted on 2009-05-12
8
215 Views
Last Modified: 2012-05-06
I have a gridview column template with an image. If i remove the image from this column template all page renders well, but if i put an image, the menu area of page is messy in master page.  But in all other pages all works well.
0
Comment
Question by:rflorencio
  • 4
  • 4
8 Comments
 
LVL 11

Expert Comment

by:Muhammad Ousama Ghazali
ID: 24367954
Can you please attach some screen shots to better understand the situation?
0
 

Author Comment

by:rflorencio
ID: 24372478
0
 
LVL 11

Expert Comment

by:Muhammad Ousama Ghazali
ID: 24372857
I think you are having this problem at the design time within VS.
First, it is normal and by default behaviour.
Second, to overcome this problem, enter into Edit Templates and select the column where image is placed. Select the image object and set its height and width properties.
Third, if the option above does not work, go to Source View of the page, locate the template column, and create a DIV or a TABLE (with single row/single cell) having a fixed height and width around the Image control.
Hope it helps.
0
 

Author Comment

by:rflorencio
ID: 24373901
already tried all that.
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 11

Expert Comment

by:Muhammad Ousama Ghazali
ID: 24373992
OK. Try providing a path to an image/icon which is small in size as per your requirements because at runtime you might be binding the images from code behind and providing a path to one of those images at design would not hurt much to the functionality of the code/page. See if it could help.
0
 

Author Comment

by:rflorencio
ID: 24374221
Interesting in firefox works well
0
 
LVL 11

Accepted Solution

by:
Muhammad Ousama Ghazali earned 500 total points
ID: 24374299
Maybe if you could post the ASPX file code for Grid I might give it a test and see why this is creating problem for you.
And from the above statement of yours I understand that you are facing it in IE but not in IE while earlier when I said that it was in design mode of VS, you did not mention this.
Further, check if you have all the latest patches and service packs installed for your VS version because some versions of VS2005 and VS2008 had such bugs and later those were fixed.
0
 

Author Closing Comment

by:rflorencio
ID: 31580665
moghazali, thanks for your excellent help, but the problem was the vertical alignment on a cell in master page. No grid problem
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now