Passing values from a web user control using a class - ???

Discussion in 'ASP .Net Building Controls' started by dotnetguy, Feb 8, 2004.

  1. dotnetguy

    dotnetguy Guest

    Hi. I have a web form that contains a custom user control.
    This control is a questionnaire with 20 questions that contains
    multiple radio buttons, text boxes, and ddl's.

    I am currently using a AnswerList class that is defined in the
    business layer. It contains only 20 properties, each representing an
    answer entered on the user control. When the questionnaire is
    submitted, then that class is instantiated, and the 20 public
    properties are set to the values in the text boxes, etc. Then another
    class that does the "calculations" is instantiated and the AnswerList
    object is passed to the appropriate method.

    I am trying to determine the best way to pass the values that will be
    entered from the control to the business logic layer.

    Would a Vb.net "structure", or something else be better for this? If
    so, how and where would it be defined.


    Many thanks,
    shawn
     
    dotnetguy, Feb 8, 2004
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Steve C. Orr, MCSD

    Re: user control - passing values

    Steve C. Orr, MCSD, Jul 12, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    615
    Sabre
    Jul 12, 2003
  2. Reny J Joseph Thuthikattu
    Replies:
    1
    Views:
    837
    =?Utf-8?B?UHJha2FzaC5ORVQ=?=
    Dec 30, 2004
  3. ABC
    Replies:
    1
    Views:
    2,852
    Larry
    Oct 4, 2005
  4. ABC
    Replies:
    0
    Views:
    627
  5. Mad Scientist Jr
    Replies:
    0
    Views:
    906
    Mad Scientist Jr
    Mar 22, 2006
  6. Jonathan Wood

    User Control to Control Other User Control

    Jonathan Wood, Jan 24, 2010, in forum: ASP .Net
    Replies:
    4
    Views:
    813
    Jonathan Wood
    Feb 2, 2010
  7. ABC
    Replies:
    0
    Views:
    356
  8. hmikki
    Replies:
    1
    Views:
    275
    Nathan Sokalski
    Oct 19, 2007
Loading...