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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many types of sessions in asp.net?

768


What is a postback in asp net?

770


How will you maintain versioning in asp.net 2.0?

742


How many web.config files can I have in an application?

722


Is asp.net and .net same?

710






What is client side state management?

677


What are directives in asp.net?

679


Define web services in asp.net.

730


Using code explain Configuration Management

1585


What is the usage of DelegatingHandler?

769


Explain the different parts that constitute ASP.NET application?

746


What is ashx file in asp.net?

729


Why we use content place holder in asp.net?

731


What is asp net_sessionid?

802


Why do we need a web application session?

683