string str = "";
for (int i = 0; i < 2; i++)
{
foreach (RepeaterItem r in Repeater1.Items)
{
CheckBox c = (CheckBox)r.FindControl("chkModule");
//Response.Write(i);
if (c.Checked)
{
str += "true,";
//Response.Write("True" + " " + str + " <br />");
//Response.Write("True" + " " + str + " " + i + "<br />");
// do some coding here...
}
else
{
str+= "false,";
//Response.Write("False" + " " + str + " <br />");
//Response.Write("False" + " " + str + " " + i + "<br />");
}
}
Response.Write(str+"#"+i+"#");
i have problem with build string using the following code...
and the output for this code is :
false,true,#0#false,true,false,true,#1#
but i need to get this result :
false,#0#true,#1#
please any help will be highly appreciated..