Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2011-02-15
4
Medium Priority
?
422 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 total points
ID: 34904619
0

Featured Post

Linux Academy Android App Now Supports Chromecast

We have some fantastic news for our Android fans. We’re so excited to announce that the Linux Academy Android app is now available with Chromecast support. That’s right – simply download the latest update of the Linux Academy App and start casting your favorite course videos!

Question has a verified solution.

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

722 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