Asp.Net Blog

ASP.NET blog to share the technologies like Asp.net, Sql Server,jquery, MVC, javascript, c#, Angular JS and many more.

  • Benefits of Static Classes and Static Class Members in C sharp explained with example
    A static class is basically the same as a non-static class, but there is one difference: a static class cannot be instantiated. In other words, you cannot use the new keyword to create a variable o ...
    29 Apr 2018
  • Run a Web application without web.config file?
    Yes, we can run an asp.net application without the WEB.CONFIG file. If we are not setting any configuration in WEB.CONFIG file then it will take MACHINE.CONFIG file for default configurations. Th ...
    28 Feb 2018
  • Throw and Throw ex in C# difference explained
    many people do not pay much attention to these two common terms being used in exception handling, in interviews, interviewers frequently ask this difference. So let's see the difference between the t ...
    28 Feb 2018
  • Features and benefits of AngularJs
    Following are the key features of AngularJS ---------------------------------------- **Cross Platform** - Progressive Web Apps Use modern web platform capabilities to deliver app-like expe ...
    07 Jan 2018
  • Dependency injection in MVC controller explained step by step
    ASP.NET Core MVC controllers should request their dependencies explicitly via their constructors. In some instances, individual controller actions may require a service, and it may not make sense to ...
    07 Jan 2018
  • Using Ng-grid in AngularJS Pages with example
    It is a common requirement for any project to display data in a tabular format. The easiest way to do this is by using HTML tables, but soon this gets complex, you need a way to support sorting (sing ...
    26 Nov 2017
  • Learn AngularJS With Practical Examples
    On a high level, AngularJS is a framework that binds your HTML (views) to JavaScript objects (models). When your models change, the page updates automatically. The opposite is also true - a model, as ...
    26 Nov 2017
  • ASP.NET MVC - Model Binding explained with example
    ASP.NET MVC model binding allows you to map HTTP request data with a model. It is the process of creating .NET objects using the data sent by the browser in an HTTP request. The ASP.NET Web Forms dev ...
    29 Oct 2017
  • Use of Is and As operators in C# with example
    **Introduction** Type casting is one of the unavoidable things in software development. In many situations we need to convert one object (Type) to another object (Type) and some times we get an ex ...
    20 Oct 2017
  • Difference between IEnumerable VS IQueryable in c#
    In LINQ to query data from database and collections, we use IEnumerable and IQueryable for data manipulation. IEnumerable is inherited by IQueryable, Hence IQueryable has all the features of IEnumera ...
    20 Oct 2017
  • Asp.Net MVC page life cycle quick overview simplified way
    **There are seven main steps that happen when you make a request to an Asp.net MVC web applications. these steps are illustrated step by step below.** - **Routing** Asp.net Routing is the f ...
    19 Oct 2017
  • Working with JSON in Asp.Net web form
    In Asp.Net we can use the JSON for various operation like showing grid data, insert opration, Update operation, And delete operation. Using this methods application can be faster and we can avoid asp ...
    19 Oct 2017
  • Using HtmlHelper Extension Methods for ASP.NET MVC
    Using Asp.net MVC, we can having total control over what and how your code is rendered in the browser. When you create the HTML for your page, a class that is very helpful is the HtmlHelper class. Th ...
    19 Oct 2017
  • Use of TempData in MVC
    This post will gives more clarity about effective use of TempData in MVC. TempData used to transfer data between controllers or data between actions. There is one point to note that TempData is only ...
    19 Oct 2017
  • System.Web.HttpRequestValidationException: A potentially dangerous Request.Form value was detected from the client Asp.Net MVC
    This article will show you that how to get rid of the error `A potentially dangerous Request.Form value was detected from the client` Note that a "<" could also come from other outside sources, l ...
    19 Oct 2017
  • session variables not accessible in web service in asp.net
    When I tried to get the values of session objects in web service then the session variable returns null value. I have tried different way to solve this glitch but after searching on google and msdn ...
    19 Oct 2017
  • Send bulk Emails using excel file in asp.net
    To send the mails to multiple person from the website and your data exists in the excel file like email address and his name. you can use asp.net and c# to send the bulk emails from your webapplicati ...
    19 Oct 2017
  • Number validation on textbox on keydown event using JQuery
    This is simple way to implement the numeric validation on textbox or input control using jquery. Firstly you need to use jquery selector for binding the keydown event to input control. Once you bind ...
    19 Oct 2017
  • Highlight gridview row in asp net
    When user selects particular row of `GridView` then that row should be highlighted. but in asp.net you do not have mechanism to to this task automatically. For this purpose you need to write some cus ...
    19 Oct 2017
  • Fill Dropdownlist/Select using jquery in asp.net mvc
    In this article i am going to demonstrate how to fill the dropdownlist with jquery in asp.net mvc. To achieve this task we need to write the following javascript code in view (.cshtml page). In Be ...
    19 Oct 2017