Control In Control Problem

Last post 10-30-2006 12:33 AM by vcsjones. 1 replies.

Sort Posts:

  • Control In Control Problem

    10-29-2006, 4:16 PM
    • Member
      72 point Member
    • never_again
    • Member since 12-25-2005, 5:34 PM
    • Posts 22

    Hi, guys.
    I've written two web controls for reservation system.
    One is a Datepicker which alows user to pick a date (pretty obvious Stick out tongue) and another one is a Reservation which alows user to pick a location (hotel) and number of rooms and number of people in each room.
    Both of them inherit WebControl and implement ICallbackEventHandler and INamingContainer
    I bind to them list with available days... List of hotels and regions (if it's to be used for reservation in hotels chain) well... whatever...

    Both of them work great while I don't try to include the DatePicker in the Reservation... Here's where problems begin..
    
    1) I can't set any property of the DatePicker via Properties Window (it just pay no attention to my actions).
    2) It (DatePicker) is not functioning in a proper way.. well... not functioning at all :-(((
    
    If I have those controls on a page non included one in the other then they work fine together
    If I have multiple DatePickers or multiple Reservations on a single Page they work too.
    
    Can any one teach me to include one server control in another? pleeeaaasseee.... Angel
  • Re: Control In Control Problem

    10-30-2006, 12:33 AM
    • All-Star
      33,859 point All-Star
    • vcsjones
    • Member since 04-18-2006, 8:53 PM
    • Falls Church, VA
    • Posts 4,329
    • Moderator
      TrustedFriends-MVPs
    If you are trying to put two controls into one control, the CompositeControl is a good place to start.
    Cheers,
           Kevin Jones


Page 1 of 1 (2 items)