Click here to Skip to main content
15,899,754 members
Home / Discussions / C#
   

C#

 
QuestionIs there any way i can make sure the length of a string is dicisable by 9? Pin
Anthony Mushrow21-Aug-06 8:24
professionalAnthony Mushrow21-Aug-06 8:24 
AnswerRe: Is there any way i can make sure the length of a string is dicisable by 9? [modified] Pin
Dave Kreskowiak21-Aug-06 8:31
mveDave Kreskowiak21-Aug-06 8:31 
GeneralRe: Is there any way i can make sure the length of a string is dicisable by 9? Pin
Anthony Mushrow21-Aug-06 9:01
professionalAnthony Mushrow21-Aug-06 9:01 
QuestionDLL and Web Service Problem Pin
Phoen2521-Aug-06 7:05
Phoen2521-Aug-06 7:05 
QuestionRe: DLL and Web Service Problem Pin
Vitaliy Tsvayer21-Aug-06 7:45
Vitaliy Tsvayer21-Aug-06 7:45 
AnswerRe: DLL and Web Service Problem Pin
Phoen2521-Aug-06 8:06
Phoen2521-Aug-06 8:06 
GeneralRe: DLL and Web Service Problem Pin
Phoen2521-Aug-06 10:10
Phoen2521-Aug-06 10:10 
GeneralRe: DLL and Web Service Problem Pin
Vitaliy Tsvayer21-Aug-06 10:58
Vitaliy Tsvayer21-Aug-06 10:58 
Well, first let me explain the reason of this problem.
When you add WebReference to the WebService, proxy class is created with all the types that come from WSDL(generated by ASP.NET for your WebService). BUT, although generated classes have the same fields as your original class from DLL, they are abolutely different entities, that is why you cannot cast from WS.Person to DLL.person for instance.

One of the solutions would be to modify the generated proxy class so that return type of the WebService method is the class from your shared DLL and not generated one. You need to modify Reference.css under Web References.

Another solutions is to write code that takes WS.Person class and creates new DLL.person class by copying all the fields, etc. You could use reflection to shorten the code as all field names are the same in both types.

Maybe there are more elegant solutions, but hope this helps.

Vitaliy Tsvayer
Tikle

QuestionFonts - name/filepath Pin
Gomac21-Aug-06 6:34
Gomac21-Aug-06 6:34 
AnswerRe: Fonts - name/filepath Pin
stancrm21-Aug-06 6:51
stancrm21-Aug-06 6:51 
QuestionSplitContianer. How to customize splitter Pin
Bob_Tasa21-Aug-06 6:23
Bob_Tasa21-Aug-06 6:23 
QuestionDatagridView Custom Column Events Pin
Itanium21-Aug-06 6:19
Itanium21-Aug-06 6:19 
AnswerRe: DatagridView Custom Column Events Pin
Nader Elshehabi21-Aug-06 6:26
Nader Elshehabi21-Aug-06 6:26 
QuestionRegex to fix img tags Pin
Stephen Adam21-Aug-06 6:02
Stephen Adam21-Aug-06 6:02 
AnswerRe: Regex to fix img tags Pin
User 665821-Aug-06 6:33
User 665821-Aug-06 6:33 
GeneralRe: Regex to fix img tags Pin
Stephen Adam22-Aug-06 2:34
Stephen Adam22-Aug-06 2:34 
QuestionDeleting a directory with files and subdirectories Pin
Dan Neely21-Aug-06 5:58
Dan Neely21-Aug-06 5:58 
AnswerRe: Deleting a directory with files and subdirectories Pin
stancrm21-Aug-06 6:07
stancrm21-Aug-06 6:07 
AnswerRe: Deleting a directory with files and subdirectories Pin
Judah Gabriel Himango21-Aug-06 7:01
sponsorJudah Gabriel Himango21-Aug-06 7:01 
QuestionPassword saving. Pin
orentuil21-Aug-06 5:54
orentuil21-Aug-06 5:54 
AnswerRe: Password saving. Pin
stancrm21-Aug-06 6:07
stancrm21-Aug-06 6:07 
QuestionApplication Running Setup Pin
orentuil21-Aug-06 5:52
orentuil21-Aug-06 5:52 
AnswerRe: Application Running Setup Pin
mav.northwind21-Aug-06 6:54
mav.northwind21-Aug-06 6:54 
QuestionAnimated gif in DataGridView Pin
e_LA21-Aug-06 4:20
e_LA21-Aug-06 4:20 
Questioncode for finding the square root of a number? Pin
diddy3421-Aug-06 4:18
diddy3421-Aug-06 4: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.