Featured
-
How Regression Testing Detects Integral Errors In Business Processes
Humans are forever changing and evolving and so to
by kristina.rigina -
Get Display Banner Advertising Opportunity on FindNerd Platform
“Do you have a product or service that nee
by manoj.rawat -
Android O Released with Top 7 New Features for App Developers
Android was founded by Andy Rubin, Rich Miner, Nic
by sudhanshu.tripathi -
Top 5 Features That Make Laravel the Best PHP Framework for Development
Laravel is a free open source Web Framework of PHP
by abhishek.tiwari.458 -
Objective C or Swift - Which Technology to Learn for iOS Development?
Swift programming language is completely based on
by siddharth.sindhi
Tags
How to read XML file
1. XML stands for an Extensible Markup Language.
2. XML is used to store or transport the data.
3. XML stores the information inside the XML tags in an XML file.
We can read a XML file by using following ways:
1. XmlDataDocu...
Best practices Asp.net MVC
There are several points which we have to keep in mind while developing Asp.Net MVC application.
Some of them are given below:
1. Remove unnecessary references- When we create a project there are many references which are added au...
Best Practices : Asp.Net Application Performance.
Performance tuning of Asp.Net application can be a complex task because multiple components are involved. In the list below we will go through best practices to improve ASP.Net Web application performance.
1) We should disable ViewSt...
Best practices for error handling and logging
In this blog I have summarized the best practices for error handling and logging.
1) Appropriate use of try/catch.
2) Log sufficient contextual information. All exceptions are logged(with userid , page or proc name, timestamps ,inner except...
Improve flexibility of ASP.Net application with the help of AppSettings in Web.config file
In asp.net application, we Web.config file by default when we create an application. This file is used for keeping various configuration setting related to application i.e. Framework Version, Entity framework settings etc. Other than these config...
Reset Password without taking old password as parameter in Asp.Net Identity
Reset password is a part of forgot password functionality in ASP.Net identity. When a user forgets his/her password and want to change his password without using old password, then we use reset password functionality.
In Asp.Net identity, we h...
Change Password using ASP.Net Identity
Change password is a common functionality which is used in almost every app that takes user credentials to login.
In ASP.Net Identity, we have the inbuilt method to change the password of currently logged in user.
Here is the sample code fo...
Link Button in asp.net
Link Button is a hyperlink style button control in asp.net which implements <a></a> anchor that uses Asp.net Post back Mechanism to post the data on server.
LINK BUTTON EXAMPLE:- In this example we will have two link butt...
Properties of the GridView Control
Behavior Properties of the GridView Control
AllowPaging
Property sets to true/false. It is used to support the paging in gridview control.
AllowSorting
This property supports sorting in gridview control and...
Pasword Reset Link in .NET
While resetting password of users you need to email link to the registered user for changing their passwords
For doing that you have to perform the following line of codes
/* To send mail function is being c...
Image Upload using Dropzone
Hi All,
This Blog will help you to use dropzone js and css to upload files in your project.
You can get dropzone package from NUGET. Once Installed get the reference of it in your project, Below example will show it used in MVC Project.
Yo...
HOW TO USE DELEGATE IN C# and ASP.NET
Delegate is a type which holds the method(s) reference in an object. It is also referred to as a type safe function pointer. Delegates concept will match with function pointer concept of c++ language.
We use delegate keyword when we need to c...
Asp .Net MVC HTML Helpers
Asp .Net MVC HTML Helpers :--
HTML helpers helps to render HTML controls (Like TextBox, label,Checkbox etc) in the view.Suppose you want to display a TextBox and Label on the view,you need to write below html helper code in view:--
@Html.T...
Difference between ViewBag, ViewData, or TempData in MVC
Difference between ViewBag, ViewData, or TempData in MVC:-
In Asp.Net MVC you have three ways to pass data from controller to view and in the next request. They are ViewData, ViewBag and TempData.
ViewData:- Viewdata helps to maintains da...
MVC Action Results
MVC Action Results:-
ActionResult is a return type of a controller method,it's also called an action method. In MVC by default the controller actions will return the ActionResult Object. You can return various types of...
Entity Lifecycle
Entity Lifecycle in EntityFrame Work:--
Before working on entity framework on asp.net, It's important to know the entity (like any table, list etc.) life cycle and how it is managed by the entity framework. During entitys lifetime, each entity...
Customizing Routes In MVC
Customizing Routes :-
In MVC application we are using routing for mapping the URL structure. But sometimes we have situation to change the URL structure according to the requirement. For achieving the requirement,...
Select an item in dropdownlist by text programmatically
To understand this, consider the following code:
//Dummy DataTable
DataTable dt = new DataTable();
dt.Columns.Add("EmployeeName");
dt.Columns.Add("EmployeeId");
for (int i = 1; i <= 10; i++)
...
http To https Redirection In ASP.NET
Hello Friend,
Many times we need to implement SSL (Secure Socket Layer|) certificate on website for data security. After SSL implementation you don't want to allow page access through http://.
If any one try to access website using http://...
Implementing Singleton in C#
Hello Friends,
This blog explains how to implement singleton design pattern in c#. So lets start with few basic things:--
What is Singleton ?
A singleton is a class which only allows one instance of itself to be created - and gives s...
ASP.NET MVC Do's and Dont's or Best Practices
Hello Friends, Asp.net MVC is now getting more popular day by day, So before dealing with MVC we need to understand some Do's and Dont's of it. This blog will help you to understand Do's and Dont's of ASP.NET MVC.
ASP.NET MVC Do's and Dont's ...
The server response was: 5.5.1 Authentication Required
"Error - The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required."
While I was integrating Email functionality using Gmail SMTP Server in ...
How to reset or clear all asp.net controls/fields on web page/form ?
Tweaking overall user experience in C#.net project, a very effective trick you use to clear or reset all the controls placed on the web form or control. While building a form intensive site, page or control comprises number of text boxes, drop do...
ASP.Net membership provider Implementation:
ASP.Net membership provider Implementation:
Before we start with, let us have a brief introduction about Asp.Net Membership:
Introduction:
ASP.NET membership provides an implicit way to validate and store user credentials and helps
t...
Issue while parsing string into DateTime:
Issue while parsing string into DateTime:
Before starting lets have a look on the following code block.
Example:
string temp = DateTime.Now.Date.ToString("dd/MM/yyyy"); //( let the value be "20/05/2015")
DateTime dt = Convert.ToDateT...
Role Management Providers Configuration:
Role Management Providers Configuration:
Role management providers are used by the role management services in order to separate the functionality of role management from the data store that contains the role information, however roles can use...
Caching with Data Source Controls:
Caching with Data Source Controls:
Why do we need caching..?
In a Website majority of the pages are dynamic that provide dynamic content, customized
for the user requesting the page. Dynamic pages also help provide dynamic content fetch...
How ASP.Net Role management Works
"How ASP.Net Role management Works"
Role Management helps us to manage the roles of the different users (i.e. what will be the role of a particular user in the application),we can restrict some users to access any reso...
Control View State and Controls that do not Depend View State
What is View State?
View State is a client side state management mechanism. It can store the page value at the time of post back (i.e Sending and Receiving information from Server) of the page.
&n...
How to resolve error - Operation is not valid due to the current state of the object
Hi all,
While working with large data bind on a page and whenever an event "page.postback" is done, an exception "Operation is not valid due to the current state of the object." occurs due to the very large number of form fields. The stack trace...
How to set Session Timeout in ASP.Net
In ASP.Net, we are having three modes to manage the session:-
1. InProc
2. OutProc or StateServer
3. SQLServer
Where the session to be stored? You can decide on the basis of given definition:-
InProc - In this mode, Session is maintain...
How to resolve error "A potentially dangerous Request.Form value was detected from the client"
Error :- "A potentially dangerous Request.Form value was detected from the client"
To resolve this, we are having following solutions:-
1. Set validateRequest="false" in page directives, e.g.
<%@ Page Language="C#" MasterPageFile="Ma...
What is the life cycle of a ASP.Net page and control?
Hello coder's world,
This article is regarding ASP.Net page and control's life cycle. I would like to start this with few basic questions, which should come in everyone's mind who wants to know about this.
Why we need to know about ASP.Ne...
ASP.NET Login Controls
Using Login control, we can have a ready to use interface. We integrate login controls with ASP.Net membership and form authenticate to automate user authentication for a website.
When a user click on Login button of Login control, Control val...
Script Manager Control
What is Script Manager?
ScriptManager control is used to provide support for client-side features AJAX. It manages the client script for AJAX enabled web page. It support partial-page rendering.
Features of script Manager
1. Handling Part...
Web API Routing
Basics for Web API Routing
The Web API framework maps incoming requests to the appropriate action based upon the HTTP verb of the request.
The Web API route URLs to a controller, and then to the action which matches the HTTP verb of the re...
Changing Windows Hosting Account's Default File
If you want to make your website's default file you can do this by using Windows hosting accounts running IIS 7, hence you only have to specify your website's default file using a web.config file.
To change your website's default file, include...
Installing Clean Windows Web Server 2008 R2 64-bit with IIS 7.5
While Installing Clean Windows Web Server 2008 R2 64-bit with IIS 7.5, If you receive the following errors when opening .NET 2.0 / .NET 4.0 application:
1. Managed handler is used; however, ASP.NET is not installed or is not installed completel...
Basic understanding of MVC application
In the MVC application we have architecture with three main directories Model, View and controller. These sections are as follows:
Model: It contains the models or classes that we are going to use in our application. For eq. Person.cs class wi...