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

IN an ASP.NET Web application if there is any error, how can you debug?

0 Answers   Siebel,


How does session work in asp net?

0 Answers  


What is the adavantage of using ASP.NET routing?

0 Answers   NA,


Explain the use of dataadapter.

0 Answers  


How to make paging concepts in datagrid in ASP.NET?

0 Answers   Sans Pareil IT Services,






What is meant by server side scripting?

0 Answers  


How you will handle session when deploying application in more than a server? Describe session handling in a webfarm, how does it work and what are the limits?

3 Answers   CoreObjects,


How can we access static variable?

0 Answers  


What is the file through which you can customize your asp.net application?

0 Answers  


Which tool you have done?

0 Answers  


Which is better session or viewstate?

0 Answers  


What is the difference between custom controls and user controls?

0 Answers  


Categories