Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
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 August 3rd, 2007, 11:59 PM
Authorized User
 
Join Date: Jun 2007
Location: hyderabad, AndhraPradesh, India.
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Default PhotoAlbum!

Hye,
    I'm doin the photoalbum as mentioned in instant results using C#.I tried to use binarydata to store images instead of files as mentioned in instantresults. Successful upto an extent. But the problem is unless i type the url i'm not able to get the images.
for ex: collection.aspx?collectionId=1
so I feel there is a problem in binding the templates. I'm posting the project.Kindly check it out n help me.

http://www.4shared.com/file/21321679...6/gallery.html

regards,
Ossy!
__________________
Surya!
 
Old August 4th, 2007, 02:37 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi Ossy,

I haven't looked at your source yet, but I think I know what the problem is. When you store the files on disk, you can easily refer to them using the *path* stored in the database.

However, when you store them in the database, you cannot directly stream the image "blob" into an <img> tag. Instead, you need a separate page that accepts the ID of the image and streams it to the browser.

You may want to take a look at this article:

http://imar.spaanjaars.com/QuickDocId.aspx?quickdoc=414

The file ViewFile.aspx probably shows you exactly what you need.

Cheers,

Imar

---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
 
Old August 4th, 2007, 01:37 PM
Authorized User
 
Join Date: Jun 2007
Location: hyderabad, AndhraPradesh, India.
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Imar,
        Thanx for the reply.I'm able to display the images perfectly in a datalist n a datagrid. The only problem is when i click on a photoalbum it must show its relative pictures but its not happening. But when i type the url I stated above I'm able to see them. Once u c the code so u get the idea where I went wrong.I think I may be wrong at the databinding of the templates.

regards,
Ossy!
 
Old August 4th, 2007, 07:06 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Can you define "its not happening"? Do you get an error? If so, what error do you get?

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
 
Old August 4th, 2007, 11:24 PM
Authorized User
 
Join Date: Jun 2007
Location: hyderabad, AndhraPradesh, India.
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I mean to say that i'm not getting the pictures, I'm only getting the webpage. But when I type "Album.aspx?CollectionId=1" in the url i can see them. I'm not able to map the photos to the album. So that when i click on it i can c the pictures.
regards
Ossy!
 
Old August 5th, 2007, 04:26 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi Ossy,

I looked at your source, but I don't know where the problem is (I am not sure what I am supposed to see), so it's hard to suggest a fix.

Can you explain the problem in more detail, with references to pages and code?

Imar

---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
 
Old August 8th, 2007, 02:46 PM
Authorized User
 
Join Date: Jun 2007
Location: hyderabad, AndhraPradesh, India.
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hye Imar,
           Sorry for the late reply. I was busy wid work n cudn't visit the site. Anyway I have successfully completed this Photoalbum in c# using BinaryData.Its working on fine.Check it out.

http://www.4shared.com/file/21629431...2/gallery.html

regards
Ossy!
 
Old August 8th, 2007, 02:51 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Great; glad it all worked out fine.....

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
 
Old October 22nd, 2007, 01:50 AM
Authorized User
 
Join Date: Nov 2003
Location: Mataro, Barcelona, Spain.
Posts: 78
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

I'am trying to use this code, but I can't find the password for SuperAdmin and Admin users. When I try to recover the password, I get the following question: "dogs name?".

 
Old October 22nd, 2007, 03:20 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

The password is on page 231.

Cheers,

Imar




Similar Threads
Thread Thread Starter Forum Replies Last Post
PhotoAlbum with MS Access cwh BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 1 March 16th, 2007 03:05 AM
Is anyone converted PhotoAlbum in Csharp ravi.gurgaon BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 1 March 2nd, 2007 02:11 PM
problem in adding new photo in PhotoAlbum ravi.gurgaon BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 1 December 13th, 2006 02:31 PM





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