Solved

i have to store radiobutton event to string array , but how can i do this ?

Posted on 2011-02-15
4
406 Views
Last Modified: 2012-05-11
i have attached one snapshot . in this i highlited the portion .

now when i click on any one radio button out of 4 and then click on save and view
then it will save the 1c as string ("1c") in my string array, it's for only 1 question

now i have to do it for 3 questions , but how can i do this ?

please refer the attached snapshot ....
16-02-2011-12-33-58-PM.jpg
0
Comment
Question by:Parth48
  • 2
4 Comments
 
LVL 53

Expert Comment

by:Dhaest
ID: 34904229
Do you want to store it into a datase, textfile, memory ... ?

You can store it easily into a string, separated by a fe ";"

String YourString = "1c;2b";

When you need the values sepated, you can use the split-function

String[] Values = YourString.Split(";");
0
 

Author Comment

by:Parth48
ID: 34904559
in my coding , now i want to store radiobutton checked is true then store it in stringoptions array otherwise not means

stringoptions[0] = "1a"
stringoptions[0] = "2c"
stringoptions[0] = "3b"

how can i do this ?

please refer the attached file ...

Question-Assistant.Designer.cs
Question-Assistant.cs
0
 
LVL 53

Expert Comment

by:Dhaest
ID: 34904580
If I understand it correctly: you want to store each answer into an array, called stringOptions.

So I think you'll will perform this:
' This will hold the choosen value of question 1
stringoptions[0] = "1a";
' This will hold the choosen value of question 2
stringoptions[1] = "2c";
' This will hold the choosen value of question 3 (for example not yet selected)
stringoptions[1] = "";
' This will hold the choosen value of question 4
stringoptions[1] = "4d";


0
 
LVL 11

Accepted Solution

by:
SAMIR BHOGAYTA earned 500 total points
ID: 34904619
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Powershell File Sort 8 41
Add a Condition in ASP Repeater 6 33
jquery + C#.net radiobuttonlist 3 28
Easy filter aspnet 2 24
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question