469,642 Members | 1,174 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,642 developers. It's quick & easy.

More design questions here..


This is a long one :-) Please correct me if I *did* something wrong and help
me with my questions (at the end)
I'm learning C# and .NET but good at SQL.

I'm working on portal and writing Survey module.
This module is a web control.

Here is simple functionality:

1. Support Multi-choice questions
2. Support Single-choice questions.
3. Support Results view (as bars)
4. Support sureys view (as links)
5. Display message "No surveys available"

I sorted out DB fucntionality and wrote C# class supporting all DB
functionality and presenting info as main class containing child array of
classes (for questions).

Here is things I'm not comfortable with:

1. Since this is portal, I want this module (block on page) stay always on
the same place. Therefore, to present #1-5 functionality I will append 2
Parameters to link: SurveyKey and SurveyOptn. This links will be appended to
main page link.

2. On control itself I have 3web controls: checkbox list, radiobutton list
and databound (to display links for different surveys)

The problems I have so far: Unable to bind radiolist or checkbox list to my

rblRadioSurvey.Visible = true;
rblRadioSurvey.DataSource = Survey.CurrentList;
// I also have DataTextField and DataValueField properly
specified on control (names of properties of objects in "CurrentList" class)
// I get error: DataBinder.Eval: 'ASPNetPortal.cSurveyData'
does not contain a property with the name SurveyOption.
// And it does have this property....

The next problem would be actually returning data.

My plan is to have XML data created and passed into SQL Stored procedure.

I have no idea how to submit data back to application. Writing code behind
on_click event for the button I place seem not working. Values get cleared
and I don't get it. Some sample code would be really helpful.


Nov 17 '05 #1
0 897

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

303 posts views Thread by mike420 | last post: by
3 posts views Thread by Yves Dhondt | last post: by
1 post views Thread by icedac | last post: by
2 posts views Thread by JG | last post: by
15 posts views Thread by kimi | last post: by
3 posts views Thread by Andy Lim | last post: by
5 posts views Thread by John Sheppard | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.