Question: what is asmx file in c#?
Answer: The “WebService” directive, indicates this asmx page is a web service. The “Language="C#"”, is to indicate language used for this service. The “CodeBehind” property is nothing to do with ASP.NET or web service, this is completely a Visual Studio property, that is used to map the asmx page with it's code behind page.