Wrox Programmer Forums
|
BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6
This is the forum to discuss the Wrox book ASP.NET 2.0 Instant Results by Imar Spaanjaars, Paul Wilton, Shawn Livermore; ISBN: 9780471749516
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 28th, 2009, 08:38 AM
Friend of Wrox
 
Join Date: Oct 2009
Posts: 341
Thanks: 14
Thanked 3 Times in 3 Posts
Smile profile

First of all sorry to put this in this thread.
Sir,
While working with WebShop I came across profile. As using profile it shows the particular users' record. From that point I want to insert image of user. For this I have given a fileupload control to user and they can upload their photo(if they wish).
Now to display image of logged in user shoul be displayed on every page (like orkut), for this I am using Repeater control on master page. But I am having problem in getting the image and also don't know what should I put in the ItemTemplate of Repeater so that it gets bound with the repeater.
Currently I am using the following code
Code:
<ItemTemplate >
                <asp:Image ID ="Imageurl" runat ="server" ImageUrl='<%# Eval ("PropertyNames") %>' />
                </ItemTemplate>
And in the code behind file
Code:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
        If Profile.ProfileCompleted = True Then
            If Profile.Photo IsNot Nothing Then
                Repeater1.Visible = True
                Repeater1.DataSource = Profile.Photo
                Repeater1.DataBind()
            End If
        End If
    End Sub
Any suggestion in the direction is appreciated.
Thank you.
 
Old November 28th, 2009, 08:43 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Quote:
First of all sorry to put this in this thread.
If you're sorry to post this in this thread, why don't you post it a new one? We're now discussing 37 different topics in this thread, making it extremely difficult to follow.

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old November 29th, 2009, 09:30 AM
Friend of Wrox
 
Join Date: Nov 2009
Posts: 156
Thanks: 13
Thanked 16 Times in 16 Posts
Default

You can add a column in the gridview and hide it
Gridview1.Columns("id").Visable = false;
and now you dont need to send it via query string





Similar Threads
Thread Thread Starter Forum Replies Last Post
physical address mateenmohd Classic ASP Basics 0 June 13th, 2007 09:24 AM
physical address of application and session ur_sureshin ASP.NET 2.0 Professional 2 May 17th, 2007 03:46 PM
Problem deleting folder in Session_OnEnd Sowee Classic ASP Basics 3 March 9th, 2007 07:18 AM
Hi. Question regarding physical paths in XSL. vlad027 XSLT 0 June 26th, 2003 04:33 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.