Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8
This is the forum to discuss the Wrox book Beginning ASP.NET 2.0 by Chris Hart, John Kauffman, David Sussman, Chris Ullman; ISBN: 9780764588501
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 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 16th, 2006, 09:28 AM
Authorized User
 
Join Date: Jan 2006
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default Fixtures aspx ..need help please

Hi
Im trying to implement fixtures.aspx and Fixtures.aspx.cs
using the WroxUnited site( basically Im rebuilding the site for my own team Corsham RFC.

Having gone through chapters 7 & 8 Im stille perplexed as to how to apply the 1st sqldatasource as the Wroxunited sqldatasource1 (or fixturestable as its called) uses a controlparameter of FixtureDateLabel which uses the partial class in fixtures.aspx.cs to call the Slect parameter how this is done without manually coding it is beyond me at the moment.
Is ther anybody out there who could guide me through this step by step Id be much obliged
Thanks in advance
Ian

 
Old September 27th, 2006, 05:19 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 105
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to DanM
Default

Hi,

Using the Try It Out on p249 as a base here to demo,

- Create the label control called FixtureDateLabel
- Run through steps 1 to 3 of the try it out
- In step 4, choose FixtureDate as the column, Control as the source in the left hand column, then FixtureDateLabel as the ControlID on the right. You can leave the default value blank.

At this point, you have the select statement getting information that is dependent upon the Date entered in FixtureDateLabel. And to go any further you have to do a little hand coding. Reading Chapter 9 here might give you a better idea of why its working.

- The code in Page_Load() of fixtures.aspx in the final version of WroxUnited deletes the select statement you generated earlier so that we can generate it dynamically based on today's date and whether or not you're trying to display past or future dates.
- It also sets the Text property of FixtureDateLabel to the current date to give the SELECT statement a date to work with.

So I'm afraid there isn't a way to generate the whole final page with just drag and drop, but I hope you can see that it's not too difficult to achieve with a little bit of code.

Dan

Dan Maharry
Read the feed at http://feeds.feedburner.com/dansarchive
 
Old September 27th, 2006, 11:00 AM
Authorized User
 
Join Date: Jan 2006
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Dan,
Many Thanks for the info there were quite a few settings I hadnt applied to the drag and drop stuff also the FixtureID in the DataKeyName being incorrect threw me a bit but I managed to get there over the weekend. also in doing so made a lot of other pages easier Now Im onto maybe the shop or the admin part this weekend. Thankyou for replying as it certainly helped.

Cheers
Ian

 
Old September 29th, 2006, 04:59 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 105
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to DanM
Default

Ian,

No problems. If you have any further questions, just post it up here.

Dan

Dan Maharry
Read the feed at http://feeds.feedburner.com/dansarchive





Similar Threads
Thread Thread Starter Forum Replies Last Post
Defiinate Error with fixtures.aspx merlin89 BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 2 September 26th, 2006 05:12 PM
Fixtures.aspx in c# merlin89 BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 3 September 22nd, 2006 10:08 AM
Page 228 TIO 5 Fixtures.aspx [VB] bcr212 BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 0 May 24th, 2006 06:55 AM
HowTo Pass Form data from Page1.aspx to Page2.aspx dati ASP.NET 1.0 and 1.1 Basics 6 January 27th, 2004 06:57 AM





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