I need to know the technical difference of those files. Which one is the best option? When and why should we use it? I need a human answer, not the MSDN links.
What is the difference between ashx, asmx, axd + cs(handler), webmethod(in aspx) and async methods in asp.net framework 4.5?
12k views Asked by Juan David Nicholls Cardona At
1
There are 1 answers
Related Questions in ASP.NET
- Implementing Azure AD B2C Authentication in .NET 8 Blazor Project (RenderMode: InteractiveAuto)
- Azure Application Insights Not Displaying Custom Logs for Azure Functions with .NET 8
- IIS Rewrite Module exclude bots but allow GoogleBot
- Angular 16 sending null values to API
- I am the domain admin, newbie, how do I connect youtube.com on my domain?
- Dropdown list showing SQLServer2005SQLBrowserUser$DONSERVER instead of Active Directory group name in ASP.NET MVC C#
- ASP.NET Identity, Losing Ability to Login until Application Pool Recycles
- How to unprotect ASP.NET FormAuthentication cookie
- How does it work using ASP.NET FormAuthentication
- What is the purpose of a completely standalone 'this'?
- Is there a way to read .csproj PropertyGroup variable in c#
- MSBuild trying to copy different dll with similar name into project sporadically
- Minimizing IdentityServer4 Round Trips in Microservice Architecture with Ocelot
- Azure AD guest account in web app authentication user claims data
- Receiving 400 bad request on post when customer auth handler is used
Related Questions in ASMX
- Migrate ASMX web method to WCF which accepts string array
- Good Ol' CORs question, ASP.Net, asmx, soap
- Modify WSDL Output Schema on ASMX .net
- Not able to find ASP.NET Web Service in Visual Studio 2022
- Application Cache in .asmx page gets cleared on each function call
- Value of datetime in DataTable object is getting changed when consuming ASMX service
- WCF clients to connect to ASP.NET Web services
- Future of WSE3.0 webservice/ASMX project and C# desktop client consuming ASMX proxy webservice
- Calling asmx web service by input parameters from VBA macro but SoapClient30 is missing
- SoapCore service always returns WSDL
- How can I migrate QB ASP.NET ASMX Web Service code to a SoapCore
- Change the default namespace of a SOAP service entry xml in C#
- XML Webservice won't handshake with consumer application in same VS2019 solution
- Using NServiceBus with an ASMX web service
- xerox machine deployed screen - html dropdown is flickering on tab selection
Related Questions in ASHX
- preventing caching of 200 responses from calls to IIS ashx using web.config location path
- Error response rewritten in Azure App Services even after disabling all custom errors
- Rich Text Editor Image Upload Handler
- Error using ASP.NET application with Mono
- Can I deploy an .ashx file on Linux?
- How do I handle a .ashx Generic Handler page in Blazor?
- How to deploy proxy.ashx in Azure app Service
- url aspx in composent ascx
- Is it possible to create a Nuget package of ASP.NET Website?
- Is it possible to reuse/call a handler in C# Website from C# WebApi?
- Can I use .ashx files inside .NET Core project?
- I'm getting 403 – Forbidden: Access is denied on IIS v10 ashx files
- Adding Connection: keep-alive header is not returned to client in ASP.net
- Get reference to instance of the calling aspx from ashx in ASP.NET WebForm
- 401 Unauthorized when doing POST request to local ASHX handler from local web service
Related Questions in WEBMETHOD
- Terracotta-server-not-starting-after-restart-activity
- Page Method returns undefined response
- Access Web Page User Control from a Public Shared Function
- The time it takes for PageMethod to be received by code behind is not consistent
- how to use queryXMLNode in webmethod?
- Getting Error: 500 error when using AJAX POST to C# Webmethod
- Refused to connect to ‘http://localhost:5555/’ because it violates the following Content Security Policy directive: “connect-src ‘self’ https:”
- Parse Razer form after an ajax post
- Get All row value of specfic columns on datatable
- Getting error from web service method after publish "Maximum response size reached"
- Print a odd number using webmethods
- An asynchronous operation cannot be started at this time in webservice
- Different sessions created when page is called by external application as a return URL
- WebService answer in c#
- send string from c# windows form application to asp.net web server
Related Questions in AXD
- Mixed-content Issue on my ASP.NET Umbraco website
- 404 error when load FineUI axd file on IIS7
- Change .asp file style (css)
- Failed to load resource: net::ERR_INCOMPLETE_CHUNKED_ENCODING in IE & ASP.NET
- httphandler cannot find axd of Highcharts
- Two .axd handlers, one is working and the other one returns 404
- null session in .axd on Azure web site
- Android Webview unable to load Sharepoint Website
- What is the difference between ashx, asmx, axd + cs(handler), webmethod(in aspx) and async methods in asp.net framework 4.5?
- Dynamic memory (heap) usage in AXD(ADS 1.2)
- How can I get a custom error page for trace.axd in MVC3?
- Hyphens in .axd path
- ASP.Net Webforms and MVC3 global.asax/routes being ignored
- Devexpress aspx controls not styling after publish to different server
- Embedded Resources accessed by WebResource.axd links not working in production environment
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
.ashxfiles are used for handling HttpRequests and modifying HttpResponses; you can pretty much make them do whatever you want. I have seen them used for things like serving PDFs and doing server-side processing and then redirecting. See here for more info..svcfiles (which were not mentioned in your question) are part of MS's new Windows Communication Foundation which is for SOA development. WCF supports SOAP, REST and a lot of other cool stuff..asmxfiles are an older means to host SOAP services. They are often accompanied byasmx.csfiles (or .vb) which contain the actual methods behind the service. See here for more info. This is a legacy technology and I would recommend using WCF instead in new development.[WebMethod]attribute is used to denote the methods surfaced in a SOAP service hosted by anasmx. See here for more info.The
.axdextension is used by generated web services used for many different things. (E.g. MVC3 usesaxdweb services to serve MS specific javascript) I don't think you would ever create anaxdfile, but I could be wrong... at least I never have. See here for more info.They are different tools used to solve different problems. When and why you should use each one depends on the job you are trying to accomplish. Lower level handling of your web application's behaviours can be achieved with
ashxfiles. If you want to provide more standardized services, I would recommend using WCF andsvcfiles. Please provide us with more information about the task you are doing so we can help you pick one.