Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics 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 February 10th, 2007, 05:26 PM
Registered User
Join Date: Apr 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Need help creating this Form with a backend Class

I am creating a simple form for a customer such as this one: http://www.pctech247.com/Reservations.jpg

Now I am trying to attach a class to this form with the following constants. The following is what I have in my ReservationClass.vb file.
    Private StartDate, EndDate, NumberDays As Integer
    Private Const KINGWEEK_Decimal As Decimal = 95D
    Private Const KINGWEEKEND_Decimal As Decimal = 105D
    Private Const QUEENWEEK_Decimal As Decimal = 85D
    Private Const QUEENWEEKEND_Decimal As Decimal = 95D
    Private Const DOUBELEWEEK_Decimal As Decimal = 69.95D
    Private Const DOUBLEWEEKEND_Decimal As Decimal = 79.95D
    Private Const RoomTax_Decimal As Decimal = 0.07D
    Private Const CustomerDiscount_Decimal As Decimal = 0.1D
    Private Const SummerRate_Decimal As Decimal = 0.25D

    Private DiscountBoolean As Boolean


    'Sub New(ByVal checkinDate As Date, ByVal checkOutdate As Date)
    'Assign properties and calculate the pay.

    Private Property Total()

        End Get
        Set(ByVal value)

        End Set
    End Property

End Class


Now if the dates are selected on the weekend I need to discount by 25 percent and in May through September. As you can see that I have set with " Private Const SummerRate_Decimal As Decimal = 0.25D"

If someone checks AAA & AARP customers they receive 10% off which I defined in this "Private Const CustomerDiscount_Decimal As Decimal = 0.1D"

Now I don't know how I am suppose to attach this back to the form or even figure out what I need to do. I am very basic at this and I know that I need to get something back to the customer by Monday afternoon. Please help me out on this...

Similar Threads
Thread Thread Starter Forum Replies Last Post
ms access form as criteria on sql server backend ottos13 Access 1 September 13th, 2006 12:14 PM
creating an event for a custom class? lkubler BOOK: Beginning Access 2003 VBA 3 September 20th, 2005 03:47 PM
creating a .dll from a .cs class vb_developer C# 1 October 27th, 2004 05:59 PM
Need help creating reusable code in a class. jbenson001 ASP.NET 1.x and 2.0 Application Design 1 November 21st, 2003 01:07 PM

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