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 April 17th, 2008, 03:29 AM
Registered User
 
Join Date: Apr 2008
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default about File share project

Dear Imar,

I am reading your book <ASP.NET 2.0 Instant Results>. Much thanks to your working. However, I have a little problem about chapter 2. In ResourceDB.vb class, what is the effect on optional parameter ID in Function SaveResource? I can not understand it. Why need the ID parameter?
The following comments in ResourceDB.vb:
'add in the parameters: the surveyID,
'the question text, and the possible choices (A,B,C,or D)
What aim?
Thanks.
 
Old April 17th, 2008, 08:35 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 there,

I am not 100% sure, as I didn't write that chapter.

From looking at the code, I think the idea is that you can use SaveResource to save new and existing items. When the ID param s Nothing, then a new item will be saved; otherwise, the item specified by the ID will be updated.

I don't see SaveResource called with the ID parameter filled in, so if you don't see an immediate need for it, I think you can safely delete it.

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
Want to be my colleague? Then check out this post.
 
Old April 17th, 2008, 08:06 PM
Registered User
 
Join Date: Apr 2008
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for your immediate reply. I see.





Similar Threads
Thread Thread Starter Forum Replies Last Post
File share website cluce BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 1 February 18th, 2008 06:24 PM
Wrox File Share - 1g file size limit b67 BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 3 May 7th, 2007 04:24 PM
file in a share mode m_rajib74 C# 1 January 24th, 2007 03:25 PM
Is IT Possible To Share Asp.Net Project alyeng2000 ASP.NET 1.0 and 1.1 Professional 4 March 8th, 2005 01:10 AM
SETUP project-Share point services jyoti_khera General .NET 0 December 3rd, 2004 01:30 AM





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