Click here to Skip to main content
15,893,644 members
Home / Discussions / C#
   

C#

 
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 { }
        }

AnswerRe: List over a web service Pin
Michael Sync22-Aug-07 17:28
Michael Sync22-Aug-07 17:28 
AnswerRe: List over a web service Pin
Mark Churchill23-Aug-07 20:16
Mark Churchill23-Aug-07 20:16 
GeneralRe: List over a web service Pin
Yitzchok Dev25-Aug-07 15:52
Yitzchok Dev25-Aug-07 15:52 
QuestionHow to upload an image using C# 2003?? Pin
H.Nhu VN22-Aug-07 15:36
H.Nhu VN22-Aug-07 15:36 
AnswerRe: How to upload an image using C# 2003?? Pin
Michael Sync22-Aug-07 15:39
Michael Sync22-Aug-07 15:39 
QuestionClipboard problem Pin
CodeItWell22-Aug-07 11:36
CodeItWell22-Aug-07 11:36 
AnswerRe: Clipboard problem Pin
snorkie22-Aug-07 11:42
professionalsnorkie22-Aug-07 11:42 
GeneralRe: Clipboard problem Pin
CodeItWell22-Aug-07 11:52
CodeItWell22-Aug-07 11:52 
GeneralRe: Clipboard problem Pin
Luc Pattyn22-Aug-07 12:58
sitebuilderLuc Pattyn22-Aug-07 12:58 
GeneralRe: Clipboard problem Pin
CodeItWell22-Aug-07 13:00
CodeItWell22-Aug-07 13:00 
Questionreading a string from a txt file & insert it in a database table? Pin
starist22-Aug-07 11:22
starist22-Aug-07 11:22 
AnswerRe: reading a string from a txt file & insert it in a database table? Pin
snorkie22-Aug-07 11:38
professionalsnorkie22-Aug-07 11:38 
AnswerRe: reading a string from a txt file &amp; insert it in a database table? [modified] Pin
WhiteGirl2322-Aug-07 23:08
WhiteGirl2322-Aug-07 23:08 
QuestionListbox and the groupbox relationship Pin
Blubbo22-Aug-07 10:31
Blubbo22-Aug-07 10:31 
AnswerRe: Listbox and the groupbox relationship Pin
Ravi Bhavnani22-Aug-07 10:44
professionalRavi Bhavnani22-Aug-07 10:44 
AnswerRe: Listbox and the groupbox relationship Pin
Luc Pattyn22-Aug-07 13:03
sitebuilderLuc Pattyn22-Aug-07 13:03 
GeneralRe: Listbox and the groupbox relationship Pin
ChrisKo23-Aug-07 7:23
ChrisKo23-Aug-07 7:23 

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.