Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Building Controls > Passing values from a web user control using a class - ???

Reply
Thread Tools

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

 
 
dotnetguy
Guest
Posts: n/a
 
      02-08-2004
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing Parameters to user control within another user control hmikki ASP .Net Web Controls 1 10-19-2007 02:00 AM
Web User Control with GridView can derive new Web User Control? ABC ASP .Net 1 10-04-2005 12:29 PM
Web User Control with GridView can derive new Web User Control? ABC ASP .Net Web Controls 0 10-03-2005 10:23 AM
Web User Control with GridView can derive new Web User Control? ABC ASP .Net 0 10-03-2005 10:23 AM
accessing the web user control's control from a web page and set a value from another web page Reny J Joseph Thuthikattu ASP .Net 1 12-30-2004 12:21 PM



Advertisments