Click here to Skip to main content
15,918,808 members
Home / Discussions / C#
   

C#

 
GeneralRe: String formatting? Pin
Luc Pattyn30-Apr-10 4:22
sitebuilderLuc Pattyn30-Apr-10 4:22 
AnswerRe: String formatting? Pin
V.30-Apr-10 3:47
professionalV.30-Apr-10 3:47 
GeneralRe: String formatting? Pin
Luc Pattyn30-Apr-10 4:50
sitebuilderLuc Pattyn30-Apr-10 4:50 
GeneralRe: String formatting? Pin
Not Active30-Apr-10 5:22
mentorNot Active30-Apr-10 5:22 
AnswerRe: String formatting? Pin
PIEBALDconsult30-Apr-10 6:40
mvePIEBALDconsult30-Apr-10 6:40 
QuestionGridvIewCell Click Pin
jitendra sandu30-Apr-10 1:57
jitendra sandu30-Apr-10 1:57 
AnswerRe: GridvIewCell Click Pin
Richard MacCutchan30-Apr-10 2:21
mveRichard MacCutchan30-Apr-10 2:21 
QuestionReturning an object from a web service Pin
JohnLBevan30-Apr-10 0:17
professionalJohnLBevan30-Apr-10 0:17 
Hi Folks,

I currently have an issue where I'm trying to write some code to allow me to return an object from a web service. When this object is based on a Struct, all's good. However, when I replace the Struct with a [Serializable]Class, compile, and run the service, on invoking the method which is to return the class object, I receive the below error:

======================================================================================================
Server Error in '/' Application.
--------------------------------------------------------------------------------
This type of page is not served.
Description: The type of page you have requested is not served because it has been explicitly forbidden. The extension '.asp' may be incorrect. Please review the URL below and make sure that it is spelled correctly.
Requested URL: /default.asp
======================================================================================================

The reason I'd like to move from using a Struct to a Class is this would allow me to take advantage of interfaces and generics, to move the code which currently populates the Struct's properties from a DbDataReader's values into a delegate function, which can take a reader and a list of each field's type, and convert each record to an instance of the Struct.

Thanks in advance.

JB
AnswerRe: Returning an object from a web service [modified] Pin
Peace ON30-Apr-10 1:13
Peace ON30-Apr-10 1:13 
AnswerRe: Returning an object from a web service Pin
Pete O'Hanlon30-Apr-10 1:22
mvePete O'Hanlon30-Apr-10 1:22 
QuestionList of SQL error codes Pin
Yosh_29-Apr-10 23:27
professionalYosh_29-Apr-10 23:27 
AnswerRe: List of SQL error codes Pin
Peace ON29-Apr-10 23:34
Peace ON29-Apr-10 23:34 
AnswerRe: List of SQL error codes Pin
PIEBALDconsult30-Apr-10 5:01
mvePIEBALDconsult30-Apr-10 5:01 
QuestionRemoving special characters from collection of string Pin
dashingsidds29-Apr-10 23:18
dashingsidds29-Apr-10 23:18 
AnswerRe: Removing special characters from collection of string Pin
sanforjackass29-Apr-10 23:26
sanforjackass29-Apr-10 23:26 
GeneralRe: Removing special characters from collection of string Pin
dashingsidds29-Apr-10 23:33
dashingsidds29-Apr-10 23:33 
AnswerRe: Removing special characters from collection of string Pin
Peace ON29-Apr-10 23:39
Peace ON29-Apr-10 23:39 
GeneralRe: Removing special characters from collection of string Pin
dashingsidds30-Apr-10 0:09
dashingsidds30-Apr-10 0:09 
AnswerRe: Removing special characters from collection of string Pin
Peace ON2-May-10 23:16
Peace ON2-May-10 23:16 
AnswerRe: Removing special characters from collection of string Pin
OriginalGriff29-Apr-10 23:48
mveOriginalGriff29-Apr-10 23:48 
QuestionCross-thread operation not valid (Custom .NET Marquee Control) Pin
Aaron Radich29-Apr-10 19:35
Aaron Radich29-Apr-10 19:35 
AnswerRe: Cross-thread operation not valid (Custom .NET Marquee Control) Pin
Abhinav S29-Apr-10 19:53
Abhinav S29-Apr-10 19:53 
AnswerRe: Cross-thread operation not valid (Custom .NET Marquee Control) Pin
OriginalGriff29-Apr-10 21:18
mveOriginalGriff29-Apr-10 21:18 
AnswerRe: Cross-thread operation not valid (Custom .NET Marquee Control) Pin
Alan N29-Apr-10 21:32
Alan N29-Apr-10 21:32 
AnswerRe: Cross-thread operation not valid (Custom .NET Marquee Control) Pin
Luc Pattyn30-Apr-10 1:18
sitebuilderLuc Pattyn30-Apr-10 1:18 

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.