Click here to Skip to main content
15,885,366 members
Home / Discussions / C#
   

C#

 
QuestionPaging in ASP.NET C# Pin
HarshaKN3-Feb-13 22:51
HarshaKN3-Feb-13 22:51 
AnswerRe: Paging in ASP.NET C# Pin
Simon_Whale4-Feb-13 0:10
Simon_Whale4-Feb-13 0:10 
Questionform don't respond immiditly Pin
mohammadkaab3-Feb-13 21:52
mohammadkaab3-Feb-13 21:52 
AnswerRe: form don't respond immiditly Pin
OriginalGriff3-Feb-13 22:09
mveOriginalGriff3-Feb-13 22:09 
AnswerRe: form don't respond immiditly Pin
DaveyM694-Feb-13 2:20
professionalDaveyM694-Feb-13 2:20 
GeneralRe: form don't respond immiditly Pin
mohammadkaab5-Feb-13 22:50
mohammadkaab5-Feb-13 22:50 
GeneralRe: form don't respond immiditly Pin
DaveyM697-Feb-13 8:00
professionalDaveyM697-Feb-13 8:00 
QuestionCannot access string in System.String[] Pin
AmbiguousName3-Feb-13 21:06
AmbiguousName3-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
professionalJibesh3-Feb-13 21:19 
GeneralRe: Cannot access string in System.String[] Pin
AmbiguousName3-Feb-13 21:21
AmbiguousName3-Feb-13 21:21 
GeneralRe: Cannot access string in System.String[] Pin
Jibesh3-Feb-13 21:29
professionalJibesh3-Feb-13 21:29 
GeneralRe: Cannot access string in System.String[] Pin
BobJanova5-Feb-13 4:52
BobJanova5-Feb-13 4:52 
QuestionC# samples Pin
Nard you3-Feb-13 20:33
Nard you3-Feb-13 20:33 
AnswerRe: C# samples Pin
Wayne Gaylard3-Feb-13 20:48
professionalWayne Gaylard3-Feb-13 20:48 
GeneralRe: C# samples Pin
Nard you3-Feb-13 21:00
Nard you3-Feb-13 21:00 
GeneralRe: C# samples Pin
Wayne Gaylard3-Feb-13 21:07
professionalWayne Gaylard3-Feb-13 21:07 
AnswerRe: C# samples Pin
Abhinav S3-Feb-13 21:33
Abhinav S3-Feb-13 21:33 
GeneralRe: C# samples Pin
Nard you3-Feb-13 21:47
Nard 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
ankul kumar from sharanpur3-Feb-13 17:37 
AnswerRe: oops Pin
Abhinav S3-Feb-13 19:12
Abhinav S3-Feb-13 19:12 
QuestionWhy is my windows chart so small, I cant change the size Pin
raymond leadingham3-Feb-13 2:47
raymond 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
mveDave 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
raymond 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
mveDave 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.