Many of us have faced issues while sharing a URL with others because it's too long to be shared in its original form. Such long URLs affect the readability and flow of your message. URL shortening is a technique by which a Uniform Resource Locator (URL) is made substantially shorter in length, which is easily shareable and it redirects the user to the required page.
Tuesday, July 10, 2018
Creating an HTML Helper in ASP.NET MVC
HTML Helper is just a method that returns the HTML content in a view. Developers can use HTML helpers to render standard HTML tags such as HTML ,
Best Practices for Improving Web Application Performance
Improving Web application performance is critical. Users wants a more lightweight application which runs quicker and gives a better response time. In this article, I will suggest a few tips to improve the performance of an ASP.NET Web application by taking advantage of the following components.
Friday, May 25, 2018
Passing Data in an MVC Application (ViewBag, ViewData, and TempData)
Maintaining the state of a Web application is very important when passing the data between multiple requests. In an ASP.NET application, we use different techniques or ways to pass the data from one page to other. ASP.NET provides Session, ViewState, QueryString, Cross Page Posting, and so forth. Most of the time, developers find difficulties understanding and using ViewData, ViewBag, and TempData in an ASP.NET MVC application. In this article, I will explain ViewData, ViewBag, and TempData with examples, and show you how to pass data in an MVC application in different scenarios.
Understanding Action Filters in ASP.NET MVC
To understand MVC Action Filters, we have to know how ASP.NET MVC routing works. When a user types an ASP.NET MVC application URL in the browser, it lands at the UrlRoutingModule. The routing module parses the requested URL and then invokes the corresponding controller and action. Finally, the controller renders the appropriate view and the response is sent to the user. Now assume, a developer wants to inject some additional processing logic which could be reused across multiple controllers and actions in the request response life cycle. MVC custom filters allow developers to inject additional processing logic in the request-response life cycle.
Team Project Using Visual Studio Team Services
Microsoft Visual Studio Team Services (VSTS) is a Cloud-based platform that provides an integrated, collaborative environment that supports Git, Team Foundation Version Control (TFVC), Agile Tools, Continuous Integration, Tools for Java, Reporting, Release Management, Package Management, DevOps, Testing Tools, and many more. Because VSTS services are available on the Cloud, that easily can be used by teams that are distributed across different geographical locations.
Tuesday, April 17, 2018
Comparing Two Complex Objects in C#
Often, developers encounter a common problem of comparing two complex objects or classes created in code. Most of the time, developers prefer to use the IEquatable approach to actually create an IComparer so that he can define what determines that two of your objects are equal.
But, it's difficult to compare objects that contain nested elements. An objects comparer NuGet package will solve such kinds of complex object comparison problems. By using the NuGet framework, a developer can perform an object-to-object comparer that allows us to compare objects recursively, member by member. An objects comparer can be considered a ready-to-use framework or as a starting point for similar solutions.
More
Subscribe to:
Posts (Atom)
Mocking API Responses in Azure API Management Portal
A mock API imitates a real API call by providing a realistic JSON or XML response to the requester. Mock APIs can be designed on a developer...
-
Microsoft Azure has multiple services for hosting HTTP-based web applications. Visual Studio developers can directly publish web application...
-
A mock API imitates a real API call by providing a realistic JSON or XML response to the requester. Mock APIs can be designed on a developer...
-
Microsoft Azure Cosmos DB is an abstraction level over data stores like Azure DocumentDB and Table Storages, which is a globally distribut...