 |
BOOK: Beginning ASP.NET 4 : in C# and VB
 | This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211 |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB 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
|
|
|
|
|

April 25th, 2011, 09:32 AM
|
|
Registered User
|
|
Join Date: Apr 2011
Posts: 26
Thanks: 0
Thanked 1 Time in 1 Post
|
|
ch14 Exc Q4 on deletingpicture
Hi there, i'm just new here, i am still on chapter 14 of this GREAT book by Imar -Thanks alot Imar for making learning asp.net a piece of cake :)
I'm just facing alittle problem in chapter 14 excercises where i have no clue to the answer to exc 4 ... do i use a button with a commandname "delete" within a selecteditem field , How would I do it exactly in (PhotoAlbums/Default.aspx)>>>thanks alot
|
|

April 25th, 2011, 09:55 AM
|
|
Authorized User
|
|
Join Date: Dec 2004
Posts: 69
Thanks: 0
Thanked 5 Times in 5 Posts
|
|
If you are using gridview, you will have the deleteitemtemplate in which you can specify the command type as a button or a link. So when you are selecting the row for edit, it will display the command there.
__________________
Thanks in advance.
Regards,
Senthil Kumar M.
|
|

April 25th, 2011, 09:55 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hi there,
Good to hear you like the book so much.
If you want to know how to do it exactly, take a look at appendix A which has all the answers to the exercises.
Cheers,
imar
|
|

April 25th, 2011, 10:01 AM
|
|
Registered User
|
|
Join Date: Apr 2011
Posts: 26
Thanks: 0
Thanked 1 Time in 1 Post
|
|
sorry imar i always check the excercises solutions, but funny enough i did'nt spot the full answer , i only noticed step 3 of the solution ,and thought there was only a hint for solution.>>> i got it thanks...
|
|

April 25th, 2011, 10:07 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
But did you manage to make it work and complete the task?
Imar
|
|

April 25th, 2011, 10:22 AM
|
|
Registered User
|
|
Join Date: Apr 2011
Posts: 26
Thanks: 0
Thanked 1 Time in 1 Post
|
|
it works ya, but i'm im wondering, can't i get same result without the code behind: i.e. by 1. having a button with CommandName Delete and 2. enabling Delete on the dataEntity source object?!
thanks
Last edited by jmahdi; April 25th, 2011 at 10:24 AM..
Reason: clearer message
|
|

April 25th, 2011, 10:44 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Yes you can, but that only deletes the database record and not the file on disk which is what the exercise is about.....
Cheers,
Imar
|
|

April 25th, 2011, 04:00 PM
|
|
Registered User
|
|
Join Date: Apr 2011
Posts: 26
Thanks: 0
Thanked 1 Time in 1 Post
|
|
thanks all for your replys
|
Similar Threads
|
| Thread |
Thread Starter |
Forum |
Replies |
Last Post |
| Ch14, Try out pg493 |
TeaDrinkingGeek |
BOOK: Beginning ASP.NET 4 : in C# and VB |
3 |
March 18th, 2011 09:25 AM |
| Ch14 Try It Out Pg. 506 |
eiviery |
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 |
5 |
November 11th, 2009 02:01 PM |
| My VB Code for Ch14 |
PatFrank |
BOOK: Beginning ASP.NET 2.0 and Databases |
8 |
April 17th, 2007 02:34 PM |
|
 |
|