Per-requirement to Understand this application If you are a beginner and you need to understand what a web service is then you can read the article of the author Vidya Vrat Agarwal sir; the article is . I hope you read it if you are unfamiliar with web services. A "web service is the communication platform between two different or same platform applications that allows to use their web method." In the preceding definition you observed that I used the two main points in the definition of web service; they are different or same platform application and the second is web let us learn some basic about it .
What does different or same application and platform mean It means that I can create a web service in any language, such as Java or other languages and that the language web service can be used in a . Net web service or in another application to exchange the information.
So let us start using a different way to add a web service using a template Select Web Service Template and click on add button.
then after that the Solution Explorer look like as follows.
Then after that I created an object of date time and ed the those variables that I get from the users.
I declared another variable in the method that is age today to store the number of days remaining from the user's input date to the current date and finally I return that variable..
In my next article we will learn how to implement this web service in a web application so click here to learn Consuming Web Service In an ASP. I hope this article is useful for all students and beginners.
If you have any suggestion related to this article then please contact me.The output will be as follows In the screen above you see that the output is 8671,that is the days from the input date.Summary From all the examples above we see how to convert a date into days.Such custom controls can be used across multiple Web applications and Visual Studio 2013 projects. NET uses a "visited composites" rendering technique.During compilation, the template (.aspx) file is compiled into initialization code that builds a control tree (the composite) representing the original template. NET Web Pages (a platform using only Razor pages) have merged into a unified MVC 6.