Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Panel controls in ASP.NET

Panel control is works as a container for static text and other controls or we can say that it acts as a parent for other controls in a web page. It displays or hides the other controls as per the need of the program. Uses of panel control:- 1...

Validation Group in asp.net

Try to understand it with an Example:consider the image below. Here the problem is that whenever I'll click on Login button, only textboxes of the Login section(UserName and Password) needs to be validated. And whenever I'll click on the "...

UpdatePanel Control

UpdatePanel Control 1)UpdatePanel Control is available in ASP.NET AJAX package. 2)This control allows partial rendering of the page i.e.it AJAX'ify controls contained within it. This control allows to refresh selected parts of the page inst...

Types of validation controls in ASP.NET

Validation is an essential part of any web application. It is used to validate user input data. Before sending the user's input to different layers it must be validated. Validation is of two types:- 1. CLIENT SIDE- client side validation is c...

Asp.net calendar control properties and events

These are the following Useful Properties and the events of the Calendar control: DayNameFormat: style of the days of the week. Possible values are FirstLetter, FirstTwoLetters, Full, Short, and Shortest. ...

Difference between Convert.ToString() and ToString()

The ToString() method, expects that the object which you invoke in your program should not be Null. If the object is taking null value,then user will get the Null Reference Exception at run time and program will not be executed completely.  ...

Datatype conversions in c#

These are the following Data Type Conversion in c# Implicit conversion Explicit Conversions Difference between Parse() and TryParse() Implicit conversion is done by the compiler: 1.When there is no loss of information if the conver...

CompareValidator control in asp.net

CompareValidator control is used to compare the value of one control with the value of another control or a constant value. The comparison operation can be any of the following. Equal GreaterThan GreaterThanEqual LessThan LessThanEqual ...

RegularExpressionValidator control in asp.net

RegularExpressionValidator is very useful and powerful validation control in asp.net We can check the value of an associated input control that matches the pattern specified by a regular expression or not. The Property which is specific to Regula...

Server.Transfer vs response.Redirect

Server.Transfer vs response.Redirect Server.Transfer The sequence of transfer in Server.Transfer: 1)The transfer is done by the server. 2)Suppose there are two asp.net pages Webform1.aspx and Webform2.aspx. The navigation from Webform...

State management in ASP.NET

State Management: State management is the process used to manage the state of an object. There are two types of state management process which is important and used by every web applications. These two states are: Client Side Server Side...

Enumeration in C#

Enumeration is a named value which is used to allocate various constant values to a single variable. This makes the program more easier to understand and maintain. Enumeration is also having better error checking techniques which additional secur...

C# : How to post data to specific URL using C# ?

Many times in application development using C# it is required to to post some data to a specific URL. In this article I will show two options for implementing this : 1) Using WebClient string url = "http://www.url.com/post.aspx"; string...

C# : How to create a folder if it does not exist ?

Many times in application development using C# it is required to create a folder if it does not exist. We can use the below method of C# to accomplish the same: System.IO.Directory.CreateDirectory(folderPath); Following is the code for c...

C# : What's the difference between String and string.txt ?

string is an alias in C# for System.String. Hence internally, there is no difference. It's like int vs. System.Int32. Even though both are same it's generally recommended to use string any time you're referring to an object. e.g. string place...

C# : How do I get the directory from a file's full path ?

Many times in application development using C# it is required to get the directory from a file's full path. Let us say we need to find the directory for the following path: string path = @"C:\Directory\File.txt"; If the requirement ...

ASP.NET Page Life Cycle

ASP.NET Page Life Cycle ASP.NET Page Life Cycle determines series of processing steps which can be categorised as:- 1) Initialization of the page 2) Creation of instance of the controls 3) Restoration and Maintenance of the state 4) Event ...

Triggers in UpdatePanel

While using pop-up in your code you need to use update panel for that.   So if you have server side controls inside that pop-up sometimes these events are not triggered as usual because of update panel.   What you need to do...

Maintain Session in Home Page

While using sessions user must have to be cautious while invoking and destroying it When user login into the page session gets created from the database details Ex : session["userid"]=obj.getsessionid(); While logout we mus...

Executing a parameterised bat file in C#

In one of my recent projects, I had to execute a bat file which was expecting one argument before execution. Content of bat file was like this : "%~dp0phantomjs.exe" "%~dp0..\examples\rasterize.js" "%1" "%~dp0twingle.jpg" If you Analise t...

Maintaining scroll after postback

While handling postback if we have pages with large data it should scrolls. So when doing that postback occurs and the position where last scroll is done gets lost by the browser. So for doing that we can use the page property which can make t...

Razor in .NET

Razor is a syntax which add server-based code to web pages. Razor engine in .NET is used in place of ASP engine for running applications.   The page contains ordinary HTML markup, with one addition the @marked Razor code. See the ex...

Bootstrap

Bootstrap is the framework in which responsive designs can be made. Responsive design means which can be fit to any device of any resolution Bootstrap is a free front-end framework for faster and easier web development Bootstrap inc...

Token in User Management

Token Is the unique identification assigned to every registered user on the time of creation. Each user is maintained in that portal or site using this token id. Token are also used for resetting user password in .NET application W...

Can we bind a DropDownList using List<> in Asp .Net

Can we bind a DropDownList using List<> in Asp .Net The Answer is : Yes, we can bind a DropDown in Asp .Net using List<>. Please go through the following code for Example:- Let's create a Class say DropdownClass, in the class ...

cshtml file in MVC

In MVC projects you have to create views inside controller class for performing tasks.   While creating views you also have to create their HTML designs for separate views in a single controller or in different controllers.   ...

Use of VIewBag and ViewData in MVC

Like we have state management in ASP.NET, ViewBag and ViewData are also used for providing the state management in MVC Use of ViewBag and ViewData: 1 It helps to maintain data when you move from controller to view. 2 It is used to...

Use of Repository in MVC

Repository in MVC project is used to store and perform the crud database operations.   It is folder in which there is class file that contains definitions of functions performing the operations   So we are explaining the fun...

Use of FormCollection in MVC

FormCollection class in MVC is used to send or retrieve form data from one view to another. Using this you can access every element of your form means all the controls   Form collection is the collection of all the object that we use ...

MVC styling and Scripting

In the design page if you want to add libraries for script files and CSS files so for doing that in MVC architecture you need to use two tags : 1 Styles.Render 2 Scripts.Render   Style.Render is used to add bundle of CSS files. S...

Use of TimeStamp while reset password

While resetting password there is a need to prevent links to reopen again. For doing that you need an expiration check to validate whether link is in used state or not So you need to store the current date time while sending the link to the us...

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...

Setting Div property from code behind

While programming we have used division tags many times and it is the best method to store and display data in an HTML page. Setting up div values can be done from front page as well as from the code page Ex: <div id="maindiv" runat...

How to get the name of Controller and Action method in View using Asp.Net MVC

Get the name of Controller and Action method in View using Asp.Net MVC In one of my Asp. Net MVC project, I needed the name of the Controller and the Action Method in the View page. For this I used the following code:- @{ var acti...

Error Code HTTP 451 : Unavailable For Legal Reasons

Nowadays it has become very common for Internet providers to be ordered by courts or governments to partially or completely block access to inappropriate contents on websites.The Internet Engineering Task Force (IETF) has approved a special HTT...

Bound Services - Xamarin

Hello all, In this blog we will discuss about Bound service in Xamarin.Android. A Bound service at its core is just a service like a started service and a Bound service allows you to get a reference to that service which is within your acti...

Parsing in .NET

Parsing values in .NET While converting or parsing values we need to provide the variable to convert and datatype to be converted into String We will see here the difference between 1 Convert.ToString() 2 .ToString() While handli...

Comparison of using File System vs Database for storing large amount of files

In the below artice we disucss the pros and cons of using File System vs Database for storing large amount of files: Following are the problems associated with storing files on file system: 1) Using file system for storage leads to fragmen...

c# : How to use ThreadPool.QueueUserWorkItem ?

In this post we will see a simple code example which illustrates how to use the ThreadPool to queue up tasks in a multi-threaded environment. We first need to create an object that contains information required for the task. This object will be ...

SQL Server : How to fetch records in one table that are not present in another table?

In this article we will see how to fetch records in one table that are not present in another table. First let us create two tables which will be used for illustration purpose: CREATE TABLE Table1 ( ID INT ) GO CREATE TABLE Tab...

Call Server Side Methods Using Page Method

We all know about the jquery Ajax which is a most popular and widely used methods to make server side calls from client side. ASP.NET provides an easier approach to make server side calls from client side using Page Methods. Below is the d...

Services in Xamarin

Hi All, In this blog we will discuss about another one of the most important part of the Xamarin, and that is Service. Service in Xamrin.Android is actually very smiler to concept of service in windows and by that i mean a service is really...

Route Config File in MVC

In MVC project whenever we run the application we have default form to be run. To setting up or changing up the startup view in MVC project we have entry in the Route.config file for the default view associated with the controller For Ex: ...

Sessions in Javascript

Hi All, SessionStorage is something we can use to store values in session in Javascript. Below I will demonstrate how we can use it in our project. To set Session Value: var valueKey = "Value"; function setSession(value) { ...

Intent - Xamarin

Hello all, I this blog we will discuss about another very important part of the building blocks of Xamarin.Android, that is Intent class. The easiest way to understand the Intent is really an messaging object that you are to create and pass...

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...

Bundle Class in Xamarin.Android

Hello All, In this we will discuss about one of the most important part of the building blocks of Xamarin.Android, and that is Bundle class. A Bundle class. in nothing but a mapping from values of String types to various other types that c...

Tabbing & Accordion in Angular Material

Hi All, We Often need tabbing & Accordion functionality in our project and what if we need it via angular material. Her is a quick guide of doing it simply and accurately. Angular Material CSS references <!-- Angular Materia...

Determine Height & Width of browser window in JavaScript

Hi All, We most of the time in web development get stuck with responsive designs, the best way to handle that now a days is to use Bootstrap classes which take cares of your site but that helps you to achieve responsiveness width wise. What...

IIS : Http Status Codes

The HTTP response consists of the status line, which is the first line of the response to the request and it contains a code along with a human readable phrase. The code is intended to be used by the user agent or the software agent for handlin...
1 9 16
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: