 |
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
|
|
|
|
|

August 3rd, 2007, 11:59 PM
|
|
Authorized User
|
|
Join Date: Jun 2007
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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!
|
|

August 4th, 2007, 02:37 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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.
|
|

August 4th, 2007, 01:37 PM
|
|
Authorized User
|
|
Join Date: Jun 2007
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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!
|
|

August 4th, 2007, 11:24 PM
|
|
Authorized User
|
|
Join Date: Jun 2007
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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!
|
|

August 5th, 2007, 04:26 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|
|

August 8th, 2007, 02:46 PM
|
|
Authorized User
|
|
Join Date: Jun 2007
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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!
|
|

October 22nd, 2007, 01:50 AM
|
|
Authorized User
|
|
Join Date: Nov 2003
Posts: 78
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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?".
|
|

October 22nd, 2007, 03:20 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hi there,
The password is on page 231.
Cheers,
Imar
|
|
 |