Wrox Programmer Forums
|
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 January 23rd, 2008, 09:37 PM
Registered User
 
Join Date: Jan 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Appointment booking

I am trying to add steps to the Wizard, but this causes the hour picker not to populate the drop down list. Any change causes this problem. Any ideas?


 
Old January 24th, 2008, 02:20 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,

It depends on where you add them. Take a look at the Code Behind for the file. You'll see some code that uses the index of the relevant steps. If the step you added caused the indices to move, your code will break and you'll need to update it to accommodate for the new locations of the different steps.

HtH,

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.
 
Old January 24th, 2008, 08:26 AM
Registered User
 
Join Date: Jan 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have looked at the code and can see the validation and indices. But my problems seems to be that any change results in the time picker not being populated. I have even tried to add a step at the end which should not influence the code but does. Removing the step still does not fix it. The only way to fix the code after a change is to paste in copies of the original code.


 
Old January 24th, 2008, 08:42 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

That's odd.... If you remove the steps, things should be back to normal. If you debug the code, do you see the code that's supposed to load the time data getting executed?

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
 
Old January 24th, 2008, 08:41 PM
Registered User
 
Join Date: Jan 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm Still struggling. I tried to debug the code but I am unsure where to put the break point, I tried several places and followed the code through but could not locate a problem. What seems to be happening is that any change to the page causes the hptime drop down list not to populate with the list of values: but does not error because it uses the 23.00 hour value?

 
Old January 25th, 2008, 01:17 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Take a look (and set a breakpoint) in wizAppointment_ActiveStepChanged in the Code Behind of CreateAppointment.aspx. You see something like this

Select Case wizAppointment.ActiveStepIndex
  Case 3 ' Time. Show number of available hours
    If ValidateStep(2) Then
      Dim myBookingObject As BookingObject = BookingObjectManager.GetBookingObject(Convert.ToIn t32(lstBookingObject.SelectedValue))
      For i As Integer = myBookingObject.MinimumDuration To myBookingObject.MaximumDuration
        lstDuration.Items.Add(New ListItem(i))
      Next
    End If

This code is responsible for populating a drop down with the duration. Is this the code that is not firing? What happens when you add a breakpoint?

If that's not the case, can you clearly describe in which page you're experiencing what problem? I am not 100% sure what the problem is which makes it hard to help you.

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.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Appointment Booking KDSTECH BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 11 May 29th, 2008 12:46 AM
Appointment Booking System newbie07 BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 2 July 18th, 2007 08:32 AM
Appointment Booking problem outofwork BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 42 May 15th, 2007 04:56 PM
Modifications to Appointment Booking... mkumar BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 7 March 31st, 2007 01:51 AM
Appointment Booking Problem richardson167 BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 5 February 26th, 2007 07:00 AM





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