Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
The same value is repeat when we check more than one chkbox
Vasanth Jack
Feb 1 2017 6:27 AM
234
Reply
When i check more than one check box it repeat the same value like below
when i clik 1 means it seems 1
when i click 1 and 2 means it seems 1,1,2
string val = string.Empty;
StringBuilder sb = new StringBuilder();
foreach (ListItem it in cckk.Items)
{
if (it.Selected)
{
val += sb.Append(it.Value + ',');
ViewState["vallue"] = val.Remove(val.Length - 1).ToString();
}
}
string a1a = Convert.ToString(ViewState["vallue"]);
}
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
How do I download VS 2013 or 2015 IDE?
About Constructor