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

Which tab of the web site administration tool do you use to manage application setting ,debug and tracing?

2 Answers  


If you are using components in your application, how can you handle exceptions raised in a component?

0 Answers   Accenture,


What is state management in .net?

0 Answers  


How to transpose rows into columns and columns into rows in a multi-dimensional array ?

1 Answers   Microsoft,


What are Master Pages in ASP.NET?

0 Answers  


What is another word for redirect?

0 Answers  


How do you declare delegates and are delegates and events one and the same and explain how do you declare delegates and invoke them ?

1 Answers   MMTS,


difference between gridview,data list and repeater control

7 Answers   ABC, Olive Tech,


Which is the parent class of the ASP.NET server control?

0 Answers   Sans Pareil IT Services,


what is Impersonation

3 Answers   Alliance One, Task Informatics,


State differences between MVC and WebAPI

0 Answers  


code for "For every 5days system has to create 1text file with the corresponding date and it has to store in c-drive" by using web applications

0 Answers  


Categories