By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,704 Members | 1,475 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,704 IT Pros & Developers. It's quick & easy.

returning asp server controls as a string

P: n/a
ani
I have a questionaire page , which basically has questions
with multiple choice answers. I need to accomplish paging
on this and there are few questions that are gender
specific. According the person who has logged in, if the
person is male, i need to generate only those questions
specific to males . I have a function that returns the
contents of the questionaire in the form of a datatable. I
have successfully displayed all the questions .
Next part of my work is to get all the user input and dump
into a table. Now the datatable in part loads just the
questions and I'm calling a function in my UI page that in
turn calls a function in my class to load all the multiple
choice answers. So, basically the questions and multiple
choice answers are being displayed from two different
functions. Since the multiple choice answers need to be
loaded dynamically, I have used string concatenation for
the radio buttons and checkboxs. I am using asp server
controls like <asp:radiobuttonlist> in the string
concatenation. The function returns the values for the
controls , but not the radio buttons. Is it that I cannot
return the controls in the form of a string and write the
string in my UI page? My code on the whole looks very
messy. I am new to .Net and I need to get the work done
asap. I need to get the form validation done and insert
the user input into a table. I do not want to use asp form
validation controls, as I need to alert the user using
message boxes. I would like to do this using vbscript or
javascript.
Could someone give suggestions on how to accomplish the
task in a better way and explain why I am not able to
write asp server controls on to the page when they are
returned as a string.
Jul 21 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.