Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Distributed Applications / February 2004

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
dotnetguy - 08 Feb 2004 21:36 GMT
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
george r smith - 09 Feb 2004 21:06 GMT
I have been studying this for weeks - according to
Microsoft's "Designing Data Tier Components and Passing Data Through Tiers"
there are
five methods to pass data between tiers:
1. XML
2. Generic DataSet
3. Typed DataSet
4. Custom business entity components
5.Custom business entity components with CRUD behaviors

If you read the white paper and find the best way please let me know.
grs

> Hi.  I have a web form that contains a custom user control.
> This control is a questionnaire with 20 questions that contains
[quoted text clipped - 16 lines]
> Many thanks,
> shawn
dilipdotnet at apdiya.com - 11 Feb 2004 23:11 GMT
Hey It really depends on how you have your application layered. If it
resides in the same machine your're probably better of using some
mechanism that you already are using.  Dataset Typed or otherwise are
really usefull when you have a bunch of edits that you are trying to
maintain and send across, Not the prefered way if the application needs
to be light on the communication side. Hope that helps answer your question

> Hi.  I have a web form that contains a custom user control.
> This control is a questionnaire with 20 questions that contains
[quoted text clipped - 16 lines]
> Many thanks,
> shawn

Signature

Regards,
Dilip Krishnan
MCAD, MCSD.net
dilipdotnet at apdiya dot com


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.