Wrox Programmer Forums
|
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
 
Old September 12th, 2010, 02:48 PM
Authorized User
 
Join Date: Jun 2010
Posts: 24
Thanks: 10
Thanked 0 Times in 0 Posts
Default what i can't find in the book

suppose I want to build a page on which my users can see (following the planet wrox site) a details view of 'reviews' but read-only and i want to show not the 'GenreId' property but the actual Genre name. How do I build this? because If I make a connection to a SQLconnectionstring connected to the 'Reviews' table I only can retrieve the 'GenreId' property because that's in that specific table.
In the book, in chapter 13 thispossibility is built using a dropdown menu (page 470) but then only in inserting or updating.

Parallell i want to make a detailsview page in my site with all the details of a certain 'VACATURE'. In my 'vacature'table I use:
--- 'FunctieId' for the type of job, connected to 'FunctieNaam' in the 'Functie' table and
--- 'FiliaalId' which refers to 'FiliaalNaam' in my 'Filiaal' table
But how do I get the data from Vacature united with FunctiNaam en FiliaalNaam in one detailsview?

Quite a story, right? Well, that's not all:

From my page 'VacaturesTotaa.aspx' you get to the detailspage through a working hyperlink field in a gridview, which adds a querystring to the URL to the 'detailsviewPage.aspx' (working!) but how do i retrieve this querystring's value on the details page so i tell the detailsview what to show in the detailsview considering that querystring's 'Id'?

did I explain that correctly? I cost me already a day of experimenting and i can't get it to work....

help.....?

Weer een noodkreet uit Sneek...greetz!

Last edited by bertus; September 12th, 2010 at 02:55 PM.. Reason: just for fun....
 
Old September 13th, 2010, 02:57 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Take a look at page 414 in Chapter 12, section Joining Data.

The following example show something similar, where the Name (not just the ID) of a Genre is queried with a Review:

Code:
 
SELECT
  Review.Id, Review.Title, Genre.Name
FROM
  Review
Code:
INNER JOIN Genre ON Review.GenreId = Genre.Id


Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
The Following User Says Thank You to Imar For This Useful Post:
bertus (September 22nd, 2010)
 
Old September 13th, 2010, 06:42 AM
Registered User
 
Join Date: Sep 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Which Book refer for remoting Becoz i am new

Hi All,
I am very new in Remoting & Windows ,actually till now i had only work in
Web,recently i change my job so i have to work on Windows.Now i have
one query...

I have to make a application in that Create a Virtual Directory in IIS
Through Remoting or WCF..and after that we will able to update this
virtual directory Properties..So can you tell me or guide how can i'll
prepare for that..Please i'll heartly thankful to you....

Regards:
Gourav Vishnoi
91-9871157845 (M)





Similar Threads
Thread Thread Starter Forum Replies Last Post
I can't find this book ming221 All Other Wrox Books 1 January 22nd, 2007 02:58 AM
Help,I can't find my book in your book list. 5uer All Other Wrox Books 2 August 21st, 2004 12:43 AM
I can't find my book in your book list. duxn_79 All Other Wrox Books 2 July 13th, 2004 01:58 AM
I can't find my book in your book list. Vincent Yang All Other Wrox Books 1 July 5th, 2004 12:34 PM
I can't find the book kouyujie Wrox Book Feedback 8 March 22nd, 2004 04:08 AM





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