how can i insert array values and retreive in asp.net

Answers were Sorted based on User's Feedback



how can i insert array values and retreive in asp.net..

Answer / saritha

Take Example


a[10]
For i=0 to 9
a[i]="value"

Is This Answer Correct ?    11 Yes 4 No

how can i insert array values and retreive in asp.net..

Answer / senthil

Insert value into array
-----------------------

int[] a = new int[10];
for(int i=0;i<10;i++)
a[i] = i;

Retreive value from array
--------------------------

for (int i = 0; i < a.Length; i++)
Response.Write(a[i].ToString());

Is This Answer Correct ?    7 Yes 6 No

how can i insert array values and retreive in asp.net..

Answer / ish

by using setvalues and getvalues proerty of array

Is This Answer Correct ?    3 Yes 4 No

Post New Answer

More ASP.NET Interview Questions

Explain the difference between overriding and overloading?

0 Answers  


What is difference cookie and session?

0 Answers  


What is the namespace used to store the information about the user?s locale?

1 Answers   NeoSoft, Siebel,


What is asp.net file?

0 Answers  


In order to bind the data from a data source to the Repeater control what property is set and what method must you call in your code,?

0 Answers   Siebel,






What is bson in web api?

0 Answers  


What is the use of HttpHandlers? When to use this?

0 Answers   Wipro,


Why session is used in asp.net?

0 Answers  


What are the type of session in Asp.Net

3 Answers  


What is a uri query?

0 Answers  


Define static member?

0 Answers  


Where session id is stored?

0 Answers  


Categories