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

Describe Segmentation With Paging?

0 Answers   MaxSolPro,


what is asp dotnet

2 Answers  


What is the difference between an htmlinputcheckbox control and an htmlinputradiobutton control?

0 Answers  


How we can force all the validation controls to run?

0 Answers  


What are triggers of an updatepanel?

0 Answers  


What are the type of session in Asp.Net

3 Answers  


I am using ASP.Net 2.0. I added the following code in button_Click page. but 'PreviousPage' is not taking as a keyword. It throughs an error. Page Poster = this.PreviousPage; TextBox txtNewTest = (TextBox)Poster.FindControl("txtTest"); sDisplay = txtNewTest.Text; Response.Write(sDisplay); The following is the Error Message: 'controls_LoginMain' does not contain a definition for 'PreviousPage'

2 Answers  


What tags do you need to add within the asp:datagrid tags to bind columns manually? Give an example.

0 Answers  


Difference between server.Execute and response.redirect ?

5 Answers   Accenture, Keane India Ltd,


What does session_start () do?

0 Answers  


What is anonymous authentication?

0 Answers  


How would you create a permanent cookie?

0 Answers  


Categories