returning HTML control via web service

C

Chris

Hello guys, I know this isn't what standard, but here is what I need to do.

Currently, I have a web service that returns one long string that has all
the groups a user is a member of. The string is formatted as a HTML Checkbox.

See below,


try
{
foreach (string str in sr.Properties["memberof"])
{
string dn = str;
string cn = null;

string temp = dn;
temp = temp.Replace("CN=","");
temp = temp.Substring(0,(temp.IndexOf(",")));
cn = temp;


sb.Append(" <INPUT TYPE='checkbox' CHECKED NAME='Groups'
VALUE='"+dn+"||'>"+cn+"<br> "+Environment.NewLine);

}

Now the issue, It appears if people belong to a large number of groups, the
above string ends up being to long.

What I need to do is return formatted HTML checkboxes to be inserted into a
ColfFusion page.

Anyone have any slick ideas on this ?

Help please.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top