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.
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.