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

What are three ways that you can use a compare validator?

1 Answers  


What is the basic difference between asp and asp.net?

0 Answers  


which event in global.asx that fires for every request of same user?

4 Answers   FactorH,


What is difference between session and cookies?

0 Answers  


What does asp in asp.net stand for?

0 Answers  






Explain about the Class view window?

0 Answers  


If we remove web.config or machine.config from the application then, is this application will works?

0 Answers  


What is custom control. What is the difference between custom control and user control ?

1 Answers   Microsoft, Synergy,


What are Http handler ?

1 Answers   Patni,


What is view state and how this can be done and was this there in asp?

11 Answers   Accenture, KDOT, Mphasis,


Explain the differences between clr & cts?

0 Answers  


what is view state and its use

10 Answers   DELL, Efextra, HCL,


Categories