.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Displaying backgrounds images in Divs using CSS

Posted By:      Posted Date: September 27, 2010    Points: 0   Category :ASP.Net

After having problems tring to display a background image in a DIV I found out while on another forum that if you are using CSS to display a background image in a DIV, you need to fully qualify the path relative to where your CSS file is located.  The style sheet I was trying to use was in a folder within my App_Themes folder.

The hierarchy was as follows :







View Complete Post

More Related Resource Links

Displaying Dicom images..........



Please guide

  1. How to display Dicom images in .net web apllications.
  2. How can i convert Dicom images to Jpeg.
  3. Can uplease provide me with a sample web application??

Displaying Images in an RSS feed web part

I have an RSS feed with images. the rss web part doesnt seem to show me these images only the text. its on moss 2007. is there anyway to get these images displaying in the feed. thanksSharepoint Customiser

Picture library not displaying full images


Hi there,

I've created a picture library and added a number of our organisations logos to it in jpeg format. Unfortunately end users and I are unable to open the jpegs. I can see the thumbnail image and the preview image but when I click for the full image I get the nasty red 'X'.

I've checked the Permissions which all look fine and the file names have no nasty characters or spaces.

One quirk though - I've added a jpeg picture taken of my colleagues and I am able to see the thumbnail, preview and open the full image!!? For some reason the browser does not like the logos. I'm using IE7.

Any idea why this is happening and how it can be fixed?

Displaying Images


Hi Guys,

I'm having trouble getting the image path right.

The problem I'm having is that the page is in the following path "~/Login/thumbnail.aspx" and the image I'm trying to display is in "~/Property/xx/xxxx".

What I'm finding however is that site is trying to look for the images in the following directory "http://localhost:50086/xxx/Login/~/Properties/21/100_0365"

My code is:

<img src="~/Properties/<%#Eval("propertyId")%>/<%#Eval("filepath")%>" />

Can anybody see where I'm going wrong?


how to get images into theme/template backgrounds?


How can i get my own images into the backgrounds for SharePoint 2010 themes?

how to get images into theme/template backgrounds?

How can i get my own images into the backgrounds for SharePoint 2010 themes? 

how to get images into theme/template backgrounds?


How can i get my own images into the backgrounds for ShareHow can i get my own images into the backgrounds for SharePoint 2010 themes?

Adding watermark or text to images on uploading or displaying


Is there a way to process images once uploaded to my asp.net site, to put a watermark or some text across the image to copyright the images? I would like to do this server-side if possible.

The other option I have discovered here (http://wpglamour.com/how-to-watermark-all-your-uploaded-images/) would be to store the images as they are on the server, but to manipulate the display so it appears the image is watermarked . However, this solution is in PHP. Does anyone know a good PHP to VB.NET translator?! Or does anyone have a good suggested link, idea or code? Or can I add PHP to my ASP.NET site?

Displaying Images from MemoryStream doesn't work


hi all great guys

i want to display list of images from list of memory streams

it doesn't work  and it throws an exception too

this is my try


  public List<MemoryStream> ImagesMemoryStream
   get { return imagesMemoryStream; }
    imagesMemoryStream = value;
    foreach (MemoryStream currentImageMemoryStream in imagesMemoryStream)
     Image image = new Image();
     BitmapImage bitmapImage = new BitmapImage();
     bitmapImage.StreamSource = currentImageMemoryStream;
     bitmapImage.CacheOption = BitmapCacheOption.OnLoad;
     bitmapImage.EndInit(); // throws an exception
     image.Source = bitmapImage;

the exception is (NotSupportedException)
No imaging component suitable to complete this operation was found.


Displaying SharePoint lists in Web Parts

When you create a built-in or custom list in Microsoft Windows SharePoint Services, Windows SharePoint Services creates a Web Part, a basic building block of a SharePoint site, to display that list. These Web Parts are called List View Web Parts. Windows SharePoint Services stores List View Web Parts in the site collection Web Part gallery. (The site collection Web Part gallery is the most central gallery of Web Parts for a work group. By default, the gallery name is the name of the site, such as "Our Team Site Web Part Gallery." )

Displaying Row Details Tooltip on GridView using JQuery

Continuing exploring JQuery! I decided to implement a feature to display some kind of details related to a row displayed on GridView. For example when displaying employees details on GridView some information might not fit in the GridView because it will make it huge and wide. These infomration can be diplayed as Tooltip. Or when you want to display a picture and some kind of formated text to be diplayed as tooltip when mouse hover on the image.

Using ASP.NET 3.5's ListView and DataPager Controls: Displaying Data with the ListView

Prior to ASP.NET 3.5, developers who needed to display a set of records could choose between the GridView, DataList, and Repeater controls. The GridView provides rich data features, but has a very boxy layout; the DataList and Repeater allow for a more flexible layout, but lack the "point and click" data features found in the GridView, DetailsView, and FormView controls. The ListView bridges the gap between layout flexibility and built-in data features.

This article, the first in a series of articles on the ListView and DataPager controls, looks at the ListView's many available templates and illustrates how to display data. Read on to learn more!

Displaying Data using ASP.NET 2.0 Repeater and C#

This tutorial will show you how to display data using the .NET Repeater Control, ASP.NET 2.0 and C#.NET

The Repeater control is a powerful tool and is easy to use.

First, you will need to import the System.Data.SqlClient namespace.

Images in WPF

How to create a Thumbnail of an Image. How to automatically crop an image. The following method allows you to automatically crop an image to it's content.

Reading and Writing Images From a Windows Mobile Database using UltraLite 10(C#)

Periodically I get a request for information on how to read and write binary data to a database running on Windows Mobile. If you search the Internet you can typically find examples that are available on Windows Desktops or allow you to read and write to a local file system. The problem is that it can take a bit of work to get this code to work on Windows Mobile accessing a database.

Ultimately you might be asking, why would I want to store and image in a database? Well in an environment where you synchronizing data between a local mobile database and a consolidated (central) database this can be extremely useful. Imagine if an insurance adjuster went to an accident scene, took a picture of a damaged car, loaded it into his Windows Mobile database and then replicated that image up to the Insurance headquarters for approval. All of this could be done in a very short period of time when using images in the database. Another good example might be a doctor who was waiting for a patient chart to become available. If you could store the image in a database this chart could be sent down to the doctor's device once it became available.

For this article I am not going to get into how to synchronize the images to and from a remote and central database as this is typically fairly straightforward when using a data synchronization technologies like MobiLink

Save images to SQL CE

Storing binary objects (such as image, office document etc.) into database is a little cumbersome when it comes to retrieval. Hence the most commonly accepted way is only store the file path in the database, and to store the documents on a file share.

Store and Display Images from MS Access Database Using C#

There is only the difference of coding syntax to stream the binary data of image content type to upload it into MS Access Database using C#/VB in ASP.Net 2.0

Namespaces required:-
using System.Data.OleDb;

OleDb is used to connect the web site forms with MS Access Database using Microsoft.Jet.OLEDB.4.0
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend