473,407 Members | 2,314 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

returning asp server controls as a string

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
0 1152

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Duncan Welch | last post by:
Hi, I've got a fairly simple date control, that I'm creating dynamically in my page. The reason for creating it dynamically is that I want the ID to vary, depending on it's situation. The...
0
by: anu | last post by:
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...
4
by: V. Jenks | last post by:
What seems like a simple thing is apparently not so straightforward? I have a datalist. Inside of that datalist is an <itemtemplate> secion which contains other server controls such as a...
4
by: Moe Sizlak | last post by:
Hi There, I am trying to return the value of a listbox control that is included as a user control, I can return the name of the control but I can't access the integer value of the selected item,...
20
by: Guadala Harry | last post by:
In an ASCX, I have a Literal control into which I inject a at runtime. litInjectedContent.Text = dataClass.GetHTMLSnippetFromDB(someID); This works great as long as the contains just...
4
by: Lee Chapman | last post by:
Hi, Can anyone tell me why in the code below, the call to ClearChildViewState() has no effect? To paraphrase the code: I'm using view state. I have a textbox and a submit button (and a label...
5
by: Dave A | last post by:
I am writing an ASP.NET tool that will allow the client to create their own online froms. ie the client can add tect boxes, text, drop downs,etc with absolutely no technical skill what so ever....
2
by: David R | last post by:
I've been following the "ASP.NET Custom Error Pages" article (http://www.aspnetresources.com/articles/CustomErrorPages.aspx), but when I implement either subscribing to base.Error or overriding...
1
by: Curious Trigger | last post by:
Hi there, programming with Visual Studio 2005 and ASP.NET 2.0 I want to open a modal dialog from Default.aspx. I searched the net and many newsgroups but I couldn't find any solution. First I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.