how we Creating a Web Service



how we Creating a Web Service..

Answer / merinkmathew

We are going to use C# to create a Web Service
called "SecurityWebService." A Web Service file will have
an .ASMX file extension.
The first line of the file will look like

<%@ WebService Language="C#" class="SecurityWebService" %>

This line will instruct the compiler to run on Web Service
mode and the name of the C# class. We also need to access
the Web Service namespace. It is also a good practice to
add a reference to the System namespace.
using System;
using System.Web.Services;

The SecurityWebService class should inherit the
functionality of the Web Services class. Therefore, we put
the following line of code:
public class SecurityWebService : WebService

Is This Answer Correct ?    0 Yes 4 No

Post New Answer

More ASP.NET Interview Questions

What is the < machinekey > element and what two ASP.NET technologies is it used for ?

1 Answers  


How does viewstate work?

0 Answers  


List the asp.net validation controls?

0 Answers  


How do you handle session management in ASP.NET and how do you implement them. How do you handle in case of SQLServer mode ?

0 Answers   Microsoft,


How do you enable tracing? a) Set the Trace property of the Web Form to True b) Set the Trace property of the server object to True c) Set the Session variables Trace to True d) Set the Applications Variable Trace to True.

2 Answers   Syntax Softtech,






How can u deifne the benefits and limitation of using Viewstate for state management?

0 Answers   QuestPond,


asp.net page is a object or not?

5 Answers  


Briefly describe different techniques for ASP.NET State Management?

6 Answers   Deloitte, Syntax Softtech,


What is the difference between client-side and server-side validations in ASP.NET?

0 Answers   Sans Pareil IT Services,


In ViewState How much lifespan items stored?

0 Answers   Siebel,


Is asp.net core faster?

0 Answers  


What is custom tag in Web.Config?

0 Answers   Accenture,


Categories