Solved

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

Posted on 2011-02-15
4
400 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
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.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video discusses moving either the default database or any database to a new volume.

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now