Click here to Skip to main content
15,920,688 members
Home / Discussions / C#
   

C#

 
GeneralRe: Dependency injection - Static properties Pin
N a v a n e e t h27-May-08 2:11
N a v a n e e t h27-May-08 2:11 
GeneralRe: Dependency injection - Static properties Pin
Pete O'Hanlon27-May-08 3:00
mvePete O'Hanlon27-May-08 3:00 
GeneralRe: Dependency injection - Static properties Pin
N a v a n e e t h27-May-08 3:07
N a v a n e e t h27-May-08 3:07 
QuestionRe: Dependency injection - Static properties Pin
mr_lasseter27-May-08 6:08
mr_lasseter27-May-08 6:08 
AnswerRe: Dependency injection - Static properties Pin
N a v a n e e t h27-May-08 6:13
N a v a n e e t h27-May-08 6:13 
GeneralRe: Dependency injection - Static properties Pin
mr_lasseter27-May-08 6:30
mr_lasseter27-May-08 6:30 
GeneralRe: Dependency injection - Static properties Pin
N a v a n e e t h27-May-08 6:38
N a v a n e e t h27-May-08 6:38 
Questionhow to a a object array parameter of a WebService/WebMethod to accept DBNull ? Pin
AlbertEiki27-May-08 1:47
AlbertEiki27-May-08 1:47 
I have a WebService/WebMethod that has a object array parameter. On of the elements of this array might contain a DBNull. When i try to pass a array with a DBNull element, I get the folllowing message:

The type System.DBNull was not expected. Use the XmlInclude or SoapInclude attribute to specify types that are not known statically.

I have tried XmlInclude and SoapInclude with no success.

Web Service:
[WebMethod]
[System.Xml.Serialization.XmlInclude(typeof(DBNull))]
public string HelloWorld(object[] x) {
return "Hello World";
}

Consumer (Web Site):
object[] myarray = new object[1];
myarray[0] = DBNull.Value;
ServiceWS.Service serv = new ServiceWS.Service();
serv.HelloWorld(myarray);
AnswerRe: how to a a object array parameter of a WebService/WebMethod to accept DBNull ? Pin
leppie27-May-08 1:52
leppie27-May-08 1:52 
QuestionC# Browser Back Button recognition. Pin
imnotso#27-May-08 0:35
imnotso#27-May-08 0:35 
AnswerRe: C# Browser Back Button recognition. Pin
leppie27-May-08 1:35
leppie27-May-08 1:35 
GeneralRe: C# Browser Back Button recognition. Pin
imnotso#27-May-08 1:43
imnotso#27-May-08 1:43 
GeneralRe: C# Browser Back Button recognition. Pin
leppie27-May-08 1:51
leppie27-May-08 1:51 
GeneralRe: C# Browser Back Button recognition. Pin
imnotso#27-May-08 2:19
imnotso#27-May-08 2:19 
AnswerRe: C# Browser Back Button recognition. Pin
GuyThiebaut27-May-08 2:31
professionalGuyThiebaut27-May-08 2:31 
GeneralRe: C# Browser Back Button recognition. Pin
imnotso#27-May-08 2:34
imnotso#27-May-08 2:34 
AnswerRe: C# Browser Back Button recognition. Pin
The Nightcoder27-May-08 13:16
The Nightcoder27-May-08 13:16 
AnswerRe: C# Browser Back Button recognition. Pin
neelchauhan28-May-08 2:22
neelchauhan28-May-08 2:22 
GeneralRe: C# Browser Back Button recognition. Pin
imnotso#28-May-08 2:46
imnotso#28-May-08 2:46 
QuestionThread abortion before closing form Pin
DeepOceans27-May-08 0:34
DeepOceans27-May-08 0:34 
AnswerRe: Thread abortion before closing form Pin
leppie27-May-08 1:37
leppie27-May-08 1:37 
GeneralRe: Thread abortion before closing form Pin
DeepOceans28-May-08 1:46
DeepOceans28-May-08 1:46 
GeneralRe: Thread abortion before closing form Pin
leppie28-May-08 5:55
leppie28-May-08 5:55 
GeneralRe: Thread abortion before closing form Pin
DeepOceans29-May-08 0:26
DeepOceans29-May-08 0:26 
Questionlog4net FileAppender -> Logging to File Pin
stephan_00727-May-08 0:24
stephan_00727-May-08 0:24 

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.