.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

Announcements with Image in Body, displayed via CQWP

Posted By:      Posted Date: August 26, 2010    Points: 0   Category :SharePoint

I feel like I've set this up to be as difficult as possible for my non-programmer users ;) There's GOT to be a better way. Any guidance much appreciated.

I have an Announcements-type list on a NEWS subsite, with fields for Title, Body, and Summary (body with image plus first few sentences of Body). I have a separate Picture Library to store the images they'll use in the Body and Summary.

The Title and Summary are displayed on the Site Collection HOME using a CQWP.

My instructions for users are as follows

1. place image in http://site/subsite/imagelibrary/Forms/AllItems.aspx
2. right click on image and select Copy
3. go to http://site/subsite/announcementspage.aspx
4. Click New > New Item.
5. In "Body", click CTRL+V.
6. Add Title, Body, and Summary text.
7. In HTML, add align="left" insite <img> tag.

Adding to http://site/subsite/announcementspage.aspx automatically gets picked up by the CQWP on the home page.

Like I said, it's pretty ugly, esp considering that my users don't know HTML. Recommendations warmly appreciated.

View Complete Post

More Related Resource Links

how to embed image in mail body while sending mail in c#.net uisng Exchange2007_SP1.



I am uisng ExchangeVersion.Exchange2007_SP1 EWS to send mail through my c#.net application. I want to embed image in mail body so tht user can see body message along with image in its inbox mail .currently I am uisng image tag to show image but in the email body its just showing image url instead of image.

Issue with MSCaptcha - image is not displayed occasionally.

Hello! I am using MONDOR's MSCaptcha control in my ASP.NET 3.5 application, and everything seemed to work fine both locally and remotely, till I started receiving complains from rare users. I am using is for my web site registration, and as I see many people are able to register, I assume that the problem is rare. However, I've heard two complaints from two different users that Capthca image is not displayed at all. They did not add any special blocks to browsers, and both tried several browsers and it did not work in all of them. Is there a known issue like this? Did anybody see such a problem?   here is my code for referrence: web.config: <httpHandlers> < add verb="GET" path="CaptchaImage.axd" type="MSCaptcha.CaptchaImageHandler, MSCaptcha"/><httpHandlers>   On the page   <%@ Register Assembly="MSCaptcha" Namespace="MSCaptcha" TagPrefix="cc1" %>    The control itself:   <cc1:captchacontrol id="ccJoin" runat="server" captchabackgroundnoise="Low" captchaheight="60" captchalength="6" captchalinenoise="None" captchamaxtimeout="240" captchamintimeout="6"  captchawidth="200" />       Thanks!

Right align image in header with matrix in body

I need to have a logo image right aligned in the header, yet the body of the report consists of a matrix that fills the report horizontally. The page size is 11in / 8.5in, yet the designed size is 5in wide, because the matrix takes up this amount. If I increase the design width to 11, I get blank pages because I believe that the matrix it pushing to page to overflow. Leaving the design width to 5, I place the logo in the upper right, when previewd, it is fixed in this position, in the center of the header. How can I get the image to flow and right align and follow to the end of the matrix on the page? I have tried placing it in a text box, but this does not work. I have tried to pad the image, and that does not work either. Is there an expression that can be used to align this to the right? TIA Rick

Content Query WebPart (CQWP) not showing thumbnails of the rollup image



I have set up my CQWP to display pages from a newssite. This is working fine, but my rollup images is showing in full size. As I have understood, SharePoint has the ability to scale down pictures and showing them as thumnails.

In the "Fields to display:" I have set the path to "Thumbnail; Rollup Image; ".

Specificing where the UpdateProgress image is displayed.



I am displaying a few images in a formview. I want the UpdateProgress image to be displayed in the Image1 rather than below the FormView1, when the next photo is loading.

Below is the code for this page:

<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="photo_view2.aspx.vb" Inherits="Default2" title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<asp:Content ID="Content2" ContentPlaceHolderID="Heading" Runat="Server">
<asp:Content ID="Content3" ContentPlaceHolderID="mainBody" Runat="Server">
    &nbsp;<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:fpaConnectionString %>"
        SelectCommand="SELECT [photo_id], [photo_title], [photo_file_name] FROM [fpa_photo] WHERE ([photo_album_id_FK] = @photo_album_id_FK)">

Background Image In Workflow Custom Email Body


In my workflow I have custom email body, in my email body i want to have background image, but it seems that this tag (<td style="background-image:url()>)is not working, i can put image in my email body and it works well but background image doesn't work, Any Idea?


Refreshing thumbnail image on parent page on body unload of popup window


Hi, I am facing a problem in refreshing the thumnail image on parent page after body unload method of popup is called.

Below is th JS function I am calling on body unload of popup. Please note that parent window is refreshing but image thumbnail still shows old image. After I refresh the page for second time I see the new thumbnail.

Thannks & Regards

  function refreshParent() {





Myprofile image is not displayed in sharepoint application 2007



  I have uploaded my picture in myprofile site. I am not able to see my picture anywhere in the application aganist my name. (Groups, List, Discussion Forum) except in myprofile. The default image is being shown everywhere. I want this to replicate on other users also. Please help me how to proceed on this.Thanks for your time.



Built-in Functions - Text and Image Functions in SQL Server

Text and image functions operate on TEXT, NTEXT and IMAGE data types. These data types are deprecated with SQL Server 2005 and should be replaced by VARCHAR(MAX), NVARCHAR(MAX) and VARBINARY(MAX) when possible. Alternatively you can also consider storing large string values using XML data type. Text and image functions are nondeterministic.

Future versions of SQL Server will not support TEXT, NTEXT and IMAGE data types. Columns with TEXT / NTEXT data type do not support commonly used string functions such as LEN, LEFT, RIGHT, etc. Furthermore, due to the large size of TEXT data you''re likely to see performance issues if you store such data in the database. However, at times you can''t help but use the TEXT / NTEXT / IMAGE data types (for example when supporting 3rd party databases when you cannot change the schema) - this is when text and image functions come in handy.

Program for Format Conversion of An Image

.NET provides extensive support for image conversion. Any image can be processed from one format to another. Most common formats to which .NET have support for are .BMP, .EMF, .GIF, .ICO, .JPG, .PNG, .TIF and .WMF.

Configuring Profile Image Export in SharePoint 2010

It's no secret that I am thrilled with the new social features of SharePoint 2010. I am most excited about the new Profile Picture handling. I strongly believe that the more we can show the faces of our colleagues to one another the more connected we will feel. Clearly Microsoft feels that way as witnessed by the many features that make use of the Profile Image like the Activity Feed and Colleagues list

Built-in Functions - Text and Image Functions

Text and image functions operate on TEXT, NTEXT and IMAGE data types. These data types are deprecated with SQL Server 2005 and should be replaced by VARCHAR(MAX), NVARCHAR(MAX) and VARBINARY(MAX) when possible. Alternatively you can also consider storing large string values using XML data type. Text and image functions are nondeterministic.

ASP.Net Upload Image to MS Access Database

As you learnt from the previous articles to upload image to the SQL Database in ASP.Net 2.0 and stream that image into the memory to retrieve it from the database and display it on the web page. In this article you will learn how to upload images to the MS Access database in ASP.Net 2.0

First of all create an Access Database and place it in the App_Data folder of ASP.Net web site project. Then create a table "tblImg" with the following fields:

Get pixel format, raw format, property id list and property items image in VB.net - C#.net.

n this simple article you will learn that how we can get pixel format, raw format, property id list and property items image in VB and C#.net.

Get Pixel Format:

Image consists of pixels to get the format of the pixel we have a property named pixel format. This property returns an enumeration of pixel format. This enumeration tells the pixel format.

To demonstrate make a window application. Drag one button and a picture box on form.

Now write the following code on Button click event:

slideshow image gallary using jQuery



i need a gallary like following link.


actually,i bound multiple image in a gridview using handler(.ashx).

for example,in one dep_id(1),there are 6 image and i need to slideing one by one.

could some one help me,how i can do like this?

i think is it easy in jquery.

please someone help me.

Thanking you.

datalist image slide show problem


hi friends

i am binding  images dynamically(back end)for a datalist .iam applying a slideshow for it .I am getting a problem to apply slideshow for dyanmically binded images.If the define in a div statically it working perfectly

for example pls go through my code below:

<script type="text/javascript">
$(document).ready(function() {
        fx: 'scrollLeft' // choose your transition type, ex: fade, scrollUp, shuffle, etc...

<div class="slideshow">
        <img src="images/30_dummy.jpg" width="200" height="200" />
        <img src="images/aquarius.gif" width="200" height="200" />
        <img src="images/star.gif" width="200" height="200" />
        <img src="images/the-proud-indian-flag-1.jpg" width="200" height="200" />

I above code works perfectly and the slide show e

Can't display an image from the database



My database has a products table that has images stored in a varbinary(MAX) column.

I'm trying to display product information in a repeater and trying to display the images as well by using a GenericHandler class but I can't get the image to show up in my page.

Here is my Handler.ashx class:

Public Class Handler
    Implements System.Web.IHttpHandler

    Sub ProcessRequest(ByVal context As HttpContext) Implements IHttpHandler.ProcessRequest

        '== Set up the response settings
        context.Response.ContentType = "image/gif"
        context.Response.BufferOutput = False

        Dim id As Integer = -1
        Dim stream As Stream = Nothing
        If Not String.IsNullOrEmpty(context.Request.QueryString("id")) Then
            id = context.Request.QueryString("id")
            stream = GetImage(id)
        End If

        Const buffersize As Integer = 1024 * 16
        Dim buffer(buffersize) As Byte
        'byte[] buffer = new byte[buffersize];
        Dim count As Integer = stream.Read(buffer, 0, buffersize)

        While count > 0
            context.Response.OutputStream.Write(buffer, 0, count)
            count = stream.Read(buffer, 0, buffersize)
        End While

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