Click here to Skip to main content
15,907,493 members
Home / Discussions / C#
   

C#

 
GeneralRe: multiple inheritance Pin
seeitsharper23-Aug-07 1:16
seeitsharper23-Aug-07 1:16 
AnswerRe: multiple inheritance Pin
Christian Graus22-Aug-07 23:28
protectorChristian Graus22-Aug-07 23:28 
AnswerRe: multiple inheritance Pin
Colin Angus Mackay22-Aug-07 23:40
Colin Angus Mackay22-Aug-07 23:40 
GeneralRe: multiple inheritance Pin
Christian Graus22-Aug-07 23:59
protectorChristian Graus22-Aug-07 23:59 
GeneralRe: multiple inheritance Pin
kalyan_241623-Aug-07 0:44
kalyan_241623-Aug-07 0:44 
GeneralRe: multiple inheritance Pin
Christian Graus23-Aug-07 0:51
protectorChristian Graus23-Aug-07 0:51 
GeneralRe: multiple inheritance Pin
Martin#23-Aug-07 0:57
Martin#23-Aug-07 0:57 
GeneralRe: multiple inheritance Pin
kalyan_241623-Aug-07 1:28
kalyan_241623-Aug-07 1:28 
GeneralRe: multiple inheritance Pin
Martin#23-Aug-07 1:30
Martin#23-Aug-07 1:30 
GeneralRe: multiple inheritance Pin
Colin Angus Mackay23-Aug-07 6:47
Colin Angus Mackay23-Aug-07 6:47 
Questioninputs Pin
htonivt22-Aug-07 19:32
htonivt22-Aug-07 19:32 
QuestionNeed suggestion regarding Dataview Pin
Exelioindia22-Aug-07 19:02
Exelioindia22-Aug-07 19:02 
AnswerRe: Need suggestion regarding Dataview Pin
Giorgi Dalakishvili22-Aug-07 20:55
mentorGiorgi Dalakishvili22-Aug-07 20:55 
QuestionInvalidOperationException :--Could not connect to the remote machine Pin
abhishek.mumbai22-Aug-07 18:55
abhishek.mumbai22-Aug-07 18:55 
AnswerRe: InvalidOperationException :--Could not connect to the remote machine Pin
Eduard Keilholz22-Aug-07 20:22
Eduard Keilholz22-Aug-07 20:22 
GeneralRe: InvalidOperationException :--Could not connect to the remote machine Pin
abhishek.mumbai22-Aug-07 23:02
abhishek.mumbai22-Aug-07 23:02 
GeneralRe: InvalidOperationException :--Could not connect to the remote machine Pin
Eduard Keilholz23-Aug-07 21:05
Eduard Keilholz23-Aug-07 21:05 
QuestionCustom Save/Load Dialogs and Select Folder Dialogs Pin
Rafferty Uy22-Aug-07 17:31
Rafferty Uy22-Aug-07 17:31 
AnswerRe: Custom Save/Load Dialogs and Select Folder Dialogs Pin
J$22-Aug-07 18:55
J$22-Aug-07 18:55 
AnswerRe: Custom Save/Load Dialogs and Select Folder Dialogs Pin
Giorgi Dalakishvili22-Aug-07 21:00
mentorGiorgi Dalakishvili22-Aug-07 21:00 
Questioncant fix this error, need some help.... Pin
kb1ibh22-Aug-07 16:33
kb1ibh22-Aug-07 16:33 
AnswerRe: cant fix this error, need some help.... Pin
Christian Graus22-Aug-07 16:45
protectorChristian Graus22-Aug-07 16:45 
GeneralRe: cant fix this error, need some help.... Pin
kb1ibh22-Aug-07 17:51
kb1ibh22-Aug-07 17:51 
GeneralRe: cant fix this error, need some help.... Pin
Christian Graus22-Aug-07 18:44
protectorChristian Graus22-Aug-07 18:44 
QuestionList over a web service Pin
Yitzchok Dev22-Aug-07 16:16
Yitzchok Dev22-Aug-07 16:16 
[Serializable]
public class SpecialOccasionsItem
{
    private int id;
    private string mediafile;
    public int ID
    {
      get{return id;}
      set{ id = value;}
    }
    public string MediaFile
    {
        get {return mediafile;}
        set{mediafile = value;}
    }
    public SpecialOccasionsItem()
    {}
    public SpecialOccasionsItem(int itemID, string mediaFile)
    {
        mediafile = mediaFile;
        id = itemID;
    }
}



in the webservice there is the methed
[WebMethod]
    public List<SpecialOccasionsItem> GetSpecialOccasionsCollection()
    {
        List<SpecialOccasionsItem> il = new List<SpecialOccasionsItem>();

        // here I add the stuff in to the list  "not shown"

        return il;
    }


In the application that requests this web methed
*I get a can't cast exception*

public List<SpecialOccasionsItem> GetSpecialOccasionsCollection()
        {
            try
            {
                List<SpecialOccasionsItem> il = new List<SpecialOccasionsItem>();
                Array Gsoc = se.GetSpecialOccasionsCollection();

                for (int i = 0; i < Gsoc.Length; i++)
                {
                    il.Add((SpecialOccasionsItem)Gsoc.GetValue(i));
                }
                return il;
            }
            catch { }
        }

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.