Dear Friends, I'm developing a Complex set of custom server controls, which will present a survey, with question sets, questions with plenty types of answers. An example object set: Survey QuestionSet Question Answer 1 Answer 2 Answer 3 Question
Answer 1 Answer 2 ... Let each of those tabs represents one server control. In example, SurveyControl may have n QuestionSetControls which may have m QuestionControls which contains an answer control defined with the type of QuestionControl (radio list, checkbox
list, user input, etc.). I'd like to create an object named Survey in session storage, which will be binded to main control (SurveyControl). Each changing event within child controls (questionsets, questions with answers) may be cought and updated
in binded to root control session object. I think I have base knowledge regarding creating visual part of custom controls and presenting them for the end user, unfortunately I have a bit problem how to bite the binding and event crap. I'm pretty
sure it's a lot of crap to write down for the end effect, but would you be so kind and write me down a little scenario with hints, where shall I start? I Have the base object set, each represents a part of data, but none of them is designed for
binding stuff and i'd like to know how to extend them and connect them in the end application. Thank you VERY much for help. All the best, Przemek M. Zawada
Two steps for your very complicated task tool of control:
1)Just please create a UserControl to drag and drop all the controls and handle their events, which will be much easier than writing codes directly in ASP.NET Server Customized Controls.
przemek.zawa...
Member
1 Points
11 Posts
Complex custom controls
Aug 13, 2012 08:53 PM|LINK
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: Complex custom controls
Aug 15, 2012 01:46 AM|LINK
Hi,
Two steps for your very complicated task tool of control:
1)Just please create a UserControl to drag and drop all the controls and handle their events, which will be much easier than writing codes directly in ASP.NET Server Customized Controls.
2)Then turn your UserControl into a distributed one following the torturial:Turning an .ascx User Control into a Redistributable Custom Control