Click here to Skip to main content
15,891,906 members
Home / Discussions / C#
   

C#

 
QuestionC#.net with system process Pin
xiaowenjie24-Aug-06 5:17
xiaowenjie24-Aug-06 5:17 
AnswerRe: C#.net with system process Pin
Judah Gabriel Himango24-Aug-06 5:41
sponsorJudah Gabriel Himango24-Aug-06 5:41 
GeneralRe: C#.net with system process Pin
thunderbirdje24-Aug-06 6:30
thunderbirdje24-Aug-06 6:30 
Questionone to many class association Pin
chacimulch24-Aug-06 4:57
chacimulch24-Aug-06 4:57 
AnswerRe: one to many class association Pin
beatles169224-Aug-06 5:26
beatles169224-Aug-06 5:26 
Questionnot working still. Re: one to many class association [modified] Pin
chacimulch24-Aug-06 8:43
chacimulch24-Aug-06 8:43 
AnswerRe: not working still. Re: one to many class association Pin
beatles169224-Aug-06 21:05
beatles169224-Aug-06 21:05 
QuestionHelp with syntax. Re: one to many class association Pin
chacimulch25-Aug-06 2:36
chacimulch25-Aug-06 2:36 
I still can't get it to work. I may be adding these lines in the wrong order.
this is how I tried implementing it:

ArrayList products = new ArrayList();
products.AddRange(this.productField);
products.Add(code);
this.productField = (Product[])products.ToArray(typeof(Product));


At least now I'm getting some sort of error in my browser. It is below. It seems like 'this.productField' is set to null at this point or something like that. I'm just confused. I'm not really following exactly what is happening here. I didn't think it would be this hard when I started. I created this class from an xsd and I thought that i would be able to add multiple sub class items automatically.

Any other ideas to what I'm doing wrong?

someone else said to try using a collection but I've never done that either and I just need to get this working as fast as possible. Thanks.

System.ArgumentNullException: Collection cannot be null.
Parameter name: c
at System.Collections.ArrayList.InsertRange(Int32 index, ICollection c)
at System.Collections.ArrayList.AddRange(ICollection c)
at RepairRequests.AddOpCode(OperationCode code) in c:\Inetpub\wwwroot\ASIAPI\App_Code\RepairOrder.cs:line 515
at Service.GetRepReq() in c:\Inetpub\wwwroot\ASIAPI\App_Code\Service.cs:line 134
at Service.GetRO() in c:\Inetpub\wwwroot\ASIAPI\App_Code\Service.cs:line 62
at Service.GetROData(String RO_ID) in c:\Inetpub\wwwroot\ASIAPI\App_Code\Service.cs:line 30


AnswerRe: Help with syntax. Re: one to many class association Pin
beatles169225-Aug-06 3:03
beatles169225-Aug-06 3:03 
QuestionRe: Help with syntax. Re: one to many class association [modified] Pin
chacimulch25-Aug-06 3:51
chacimulch25-Aug-06 3:51 
AnswerRe: Help with syntax. Re: one to many class association Pin
beatles169225-Aug-06 12:10
beatles169225-Aug-06 12:10 
AnswerRe: one to many class association Pin
Nader Elshehabi24-Aug-06 10:51
Nader Elshehabi24-Aug-06 10:51 
Questionusing Sission by c# Pin
mhattiyah24-Aug-06 4:46
mhattiyah24-Aug-06 4:46 
AnswerRe: using Sission by c# Pin
ToddHileHoffer24-Aug-06 5:10
ToddHileHoffer24-Aug-06 5:10 
Questioninconsistency in virtual dir Pin
Kunal P24-Aug-06 4:31
Kunal P24-Aug-06 4:31 
AnswerRe: inconsistency in virtual dir Pin
Ennis Ray Lynch, Jr.24-Aug-06 9:15
Ennis Ray Lynch, Jr.24-Aug-06 9:15 
GeneralRe: inconsistency in virtual dir Pin
Kunal P24-Aug-06 20:03
Kunal P24-Aug-06 20:03 
GeneralRe: inconsistency in virtual dir Pin
Guffa24-Aug-06 22:42
Guffa24-Aug-06 22:42 
QuestionDoh! Regular Expressions and C# Strings [modified] Pin
Brent Lamborn24-Aug-06 4:24
Brent Lamborn24-Aug-06 4:24 
AnswerRe: Doh! Regular Expressions and C# Strings Pin
Coding C#24-Aug-06 4:38
Coding C#24-Aug-06 4:38 
GeneralRe: Doh! Regular Expressions and C# Strings Pin
User 665824-Aug-06 5:31
User 665824-Aug-06 5:31 
AnswerRe: Doh! Regular Expressions and C# Strings Pin
coolestCoder24-Aug-06 4:42
coolestCoder24-Aug-06 4:42 
GeneralRe: Doh! Regular Expressions and C# Strings Pin
Brent Lamborn24-Aug-06 6:26
Brent Lamborn24-Aug-06 6:26 
GeneralRe: Doh! Regular Expressions and C# Strings [modified] Pin
coolestCoder24-Aug-06 19:52
coolestCoder24-Aug-06 19:52 
GeneralRe: Doh! Regular Expressions and C# Strings Pin
Coding C#24-Aug-06 20:19
Coding C#24-Aug-06 20:19 

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.