Click here to Skip to main content
12,885,022 members (30,868 online)
   

C#

 
QuestionPaging in ASP.NET C# Pin
HarshaKN3-Feb-13 22:51
memberHarshaKN3-Feb-13 22:51 
AnswerRe: Paging in ASP.NET C# Pin
Simon_Whale4-Feb-13 0:10
memberSimon_Whale4-Feb-13 0:10 
Questionform don't respond immiditly Pin
mohammadkaab3-Feb-13 21:52
membermohammadkaab3-Feb-13 21:52 
AnswerRe: form don't respond immiditly Pin
OriginalGriff3-Feb-13 22:09
mvpOriginalGriff3-Feb-13 22:09 
AnswerRe: form don't respond immiditly Pin
DaveyM694-Feb-13 2:20
mentorDaveyM694-Feb-13 2:20 
GeneralRe: form don't respond immiditly Pin
mohammadkaab5-Feb-13 22:50
membermohammadkaab5-Feb-13 22:50 
GeneralRe: form don't respond immiditly Pin
DaveyM697-Feb-13 8:00
mentorDaveyM697-Feb-13 8:00 
QuestionCannot access string in System.String[] Pin
AmbiguousName3-Feb-13 21:06
memberAmbiguousName3-Feb-13 21:06 
Hello guys. I am copying one ArrayList into another ArrayList. However, I am calling ToArray() on my source ArrayList. Later when I try to retrieve values from my target ArrayList, it only gives my System.String[], instead of string values. Here is what I am trying
public void CopySetting(ArrayList mySrcArrayList)
{
    myTargetArrayList.Clear();
    myTargetArrayList.Add(mySrcArrayList.ToArray(typeof(string))); //copying the ArrayList
}
 
public GetValues()
{
   foreach (Object obj in myTargetArrayList)
   {
       string str = (string)obj.ToString(); // here I get System.String[], in str
   }
}

So what could be wrong here? Thanks for any help.

This world is going to explode due to international politics, SOON.


modified 4-Feb-13 3:21am.

AnswerRe: Cannot access string in System.String[] Pin
jibesh3-Feb-13 21:19
memberjibesh3-Feb-13 21:19 
GeneralRe: Cannot access string in System.String[] Pin
AmbiguousName3-Feb-13 21:21
memberAmbiguousName3-Feb-13 21:21 
GeneralRe: Cannot access string in System.String[] Pin
jibesh3-Feb-13 21:29
memberjibesh3-Feb-13 21:29 
GeneralRe: Cannot access string in System.String[] Pin
BobJanova5-Feb-13 4:52
memberBobJanova5-Feb-13 4:52 
QuestionC# samples Pin
Nard you3-Feb-13 20:33
memberNard you3-Feb-13 20:33 
AnswerRe: C# samples Pin
Wayne Gaylard3-Feb-13 20:48
mentorWayne Gaylard3-Feb-13 20:48 
GeneralRe: C# samples Pin
Nard you3-Feb-13 21:00
memberNard you3-Feb-13 21:00 
GeneralRe: C# samples Pin
Wayne Gaylard3-Feb-13 21:07
mentorWayne Gaylard3-Feb-13 21:07 
AnswerRe: C# samples Pin
Abhinav S3-Feb-13 21:33
mvpAbhinav S3-Feb-13 21:33 
GeneralRe: C# samples Pin
Nard you3-Feb-13 21:47
memberNard you3-Feb-13 21:47 
AnswerRe: C# samples Pin
Amir Mohammad Nasrollahi29-Jul-13 22:52
professionalAmir Mohammad Nasrollahi29-Jul-13 22:52 
Generaloops Pin
ankul kumar from sharanpur3-Feb-13 17:37
memberankul kumar from sharanpur3-Feb-13 17:37 
AnswerRe: oops Pin
Abhinav S3-Feb-13 19:12
mvpAbhinav S3-Feb-13 19:12 
QuestionWhy is my windows chart so small, I cant change the size Pin
raymond leadingham3-Feb-13 2:47
memberraymond leadingham3-Feb-13 2:47 
AnswerRe: Why is my windows chart so small, I cant change the size Pin
Dave Kreskowiak3-Feb-13 5:06
mvpDave Kreskowiak3-Feb-13 5:06 
GeneralRe: Why is my windows chart so small, I cant change the size Pin
raymond leadingham3-Feb-13 5:30
memberraymond leadingham3-Feb-13 5:30 
GeneralRe: Why is my windows chart so small, I cant change the size Pin
Dave Kreskowiak3-Feb-13 9:05
mvpDave Kreskowiak3-Feb-13 9:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.170424.1 | Last Updated 24 Apr 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid