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 ASP.NET page works?

674


How does u get record no from 5 to 15 from a dataset of 100 records?

509


How can we inherit a static variable?

537


Are there any resources for drop-in replacements for the default css that comes with the ASP.NET Website template?

561


How to create a db connection at one place/page so that we can use that connection for all pages/forms/windows.what r the steps ned to be performed if question not clear,let me know

701






Will the asp.net validators run in server side or client side?

641


Difference between Response.redirect vs server.transfer?

583


How many types of controls are there in asp.net?

524


What is difference between asp.net and asp?

558


Describe the differences between the lifecycles of Windows services and Standard EXE?

597


Explain in what order a destructors is called.

577


Which is better union or union all?

555


Is it possible for me to change my aspx file extension to some other name?

577


how to transfer the file from client to server using asp.net

583


What are the different validators in asp.net?

558