Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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!
  #2 (permalink)  
Old August 4th, 2007, 02:37 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 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.
  #3 (permalink)  
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!
  #4 (permalink)  
Old August 4th, 2007, 07:06 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 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
  #5 (permalink)  
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!
  #6 (permalink)  
Old August 5th, 2007, 04:26 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 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
  #7 (permalink)  
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!
  #8 (permalink)  
Old August 8th, 2007, 02:51 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 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
  #9 (permalink)  
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?".

  #10 (permalink)  
Old October 22nd, 2007, 03:20 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Hi there,

The password is on page 231.

Cheers,

Imar
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 07:11 AM.


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