CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2011

    Image in web user control


    I'm a beginner at this so be patient with me

    Here's my problem:

    I have a listview which shows names. Above my listview I have a web user control that has to show a picture of each person in the listview. I don't really know to make it do that...

    Any suggestions?

    PHP Code:
    <%@ Page Title="Home Page" Language="vb" MasterPageFile="~/JazzPeoplePage.master" AutoEventWireup="false"
    CodeBehind="Default.aspx.vb" Inherits="JazzPeople.web._Default" %>

    Register src="wucPhoto.ascx" tagname="wucPhoto" tagprefix="uc1" %>

    asp:Content ID="content" runat="server" ContentPlaceHolderID="MainContent">
    uc1:wucPhoto ID="wucFoto1" runat="server" />
    asp:ListView ID="ListView1" runat="server" DataSourceID="ObjectDataSource1">
    br />
    #Eval("Name") & " "& Eval("FirstName") %>
    <br />
    asp:LinkButton ID="btnAddToFavo" runat="server" Text="Add to favorites" </asp:LinkButton> - 
    br />
    asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
    SelectMethod="GetComposers" TypeName="JazzPeople.BL.Composer">
    Last edited by GremlinSA; September 6th, 2012 at 12:50 PM. Reason: added code tags

  2. #2
    Join Date
    Jun 2005
    JHB South Africa

    Re: Image in web user control

    There are two different ways to do this..

    #1). Reload the page with the correct image in the User control.

    #2). Use JavaScript on the page and load only the image.
    Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
    WPF Articles : 3D Animation 1 , 2 , 3
    Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
    Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
    All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.