Want to build the ChatGPT based Apps? Start here
Become a member
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
C# Corner Home
Technologies
Monthly Leaders
ASK A QUESTION
Forum guidelines
Vasanth Jack
1.8k
289
29.9k
The same value is repeat when we check more than one chkbox
Feb 1 2017 6:27 AM
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"]);
}
Reply
Answers (
1
)
How do I download VS 2013 or 2015 IDE?
About Constructor