Click here to Skip to main content
16,004,653 members
Home / Discussions / C#
   

C#

 
AnswerRe: Switch vs If-else Pin
Scott Dorman13-Jul-08 2:24
professionalScott Dorman13-Jul-08 2:24 
AnswerRe: Switch vs If-else Pin
Joe Woodbury13-Jul-08 6:54
professionalJoe Woodbury13-Jul-08 6:54 
AnswerRe: Switch vs If-else Pin
Guffa13-Jul-08 9:13
Guffa13-Jul-08 9:13 
GeneralRe: Switch vs If-else Pin
Luc Pattyn13-Jul-08 12:14
sitebuilderLuc Pattyn13-Jul-08 12:14 
AnswerRe: Switch vs If-else Pin
Alan Balkany14-Jul-08 5:02
Alan Balkany14-Jul-08 5:02 
AnswerRe: Switch vs If-else Pin
PIEBALDconsult14-Jul-08 13:26
mvePIEBALDconsult14-Jul-08 13:26 
Questionbasic questions about web services development Pin
George_George12-Jul-08 23:24
George_George12-Jul-08 23:24 
AnswerRe: basic questions about web services development Pin
Scott Dorman13-Jul-08 2:29
professionalScott Dorman13-Jul-08 2:29 
George_George wrote:
1. What is the function of a code hehind file? Any benefits of have a separate asmx and asmx.cs file?


The code behind file allows you to separate the code from the presentation (UI). You generally want to do this so you can make changes to the logic without affecting the UI and/or allow a graphics designer to work with the UI and not affect the logic.

George_George wrote:
2. When we press F5 to debug, I it is not running on IIS. If IIS is not hosting the web services, which party hosts the web services when we use F5 to debug?


I'm not 100% sure on this, but I believe it will be running on an internal web service that is started by Visual Studio.

George_George wrote:
3. I am always confused what is the function and why we need [WebService]? I think [WebMethod] is enough since we expose web service through a public function, not through a class (marked with WebService attribute).


From MSDN[^]:
The WebServiceAttribute is not required for an XML Web service to be published and executed. You can use the WebServiceAttribute to specify a name for the XML Web service that is not restricted by the rules for a common language runtime identifier, which is used in the service description and the Service help page for the XML Web service.

An XML Web service should change its default XML namespace before it is made public. Each XML Web service needs a unique XML namespace to identify it so that client applications can distinguish it from other services on the Web. http://tempuri.org/ is available for XML Web services that are under development, but published XML Web services should use a more permanent namespace.


Scott Dorman
Microsoft® MVP - Visual C# | MCPD
President - Tampa Bay IASA

[Blog][Articles][Forum Guidelines]
Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai

GeneralRe: basic questions about web services development Pin
George_George13-Jul-08 2:37
George_George13-Jul-08 2:37 
GeneralRe: basic questions about web services development Pin
Scott Dorman13-Jul-08 2:56
professionalScott Dorman13-Jul-08 2:56 
GeneralRe: basic questions about web services development Pin
George_George13-Jul-08 3:00
George_George13-Jul-08 3:00 
GeneralRe: basic questions about web services development Pin
Scott Dorman13-Jul-08 4:05
professionalScott Dorman13-Jul-08 4:05 
GeneralRe: basic questions about web services development Pin
George_George13-Jul-08 19:12
George_George13-Jul-08 19:12 
GeneralRe: basic questions about web services development Pin
Scott Dorman14-Jul-08 3:00
professionalScott Dorman14-Jul-08 3:00 
GeneralRe: basic questions about web services development Pin
George_George14-Jul-08 16:20
George_George14-Jul-08 16:20 
GeneralRe: basic questions about web services development Pin
Scott Dorman15-Jul-08 2:15
professionalScott Dorman15-Jul-08 2:15 
GeneralRe: basic questions about web services development Pin
George_George15-Jul-08 22:04
George_George15-Jul-08 22:04 
GeneralRe: basic questions about web services development Pin
Scott Dorman16-Jul-08 1:04
professionalScott Dorman16-Jul-08 1:04 
GeneralRe: basic questions about web services development Pin
George_George16-Jul-08 1:10
George_George16-Jul-08 1:10 
GeneralRe: basic questions about web services development Pin
N a v a n e e t h13-Jul-08 17:07
N a v a n e e t h13-Jul-08 17:07 
GeneralRe: basic questions about web services development Pin
George_George13-Jul-08 19:13
George_George13-Jul-08 19:13 
QuestionSending mail Pin
hadad12-Jul-08 22:05
hadad12-Jul-08 22:05 
QuestionClient Server Communication Remoting question Pin
Christo888812-Jul-08 17:20
Christo888812-Jul-08 17:20 
QuestionInsert image to RichText Box Pin
SHINOJK12-Jul-08 12:44
SHINOJK12-Jul-08 12:44 
AnswerRe: Insert image to RichText Box Pin
Luc Pattyn12-Jul-08 13:13
sitebuilderLuc Pattyn12-Jul-08 13:13 

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.