Archive for the ‘ASP.NET’ Category

About Nuget

March 30, 2015 Leave a comment

In Visual studio to add any reference in our project we will use ‘Add Reference Dialogue’, but in last few years apart from .net assemblies, we are started incorporate lots of 3rd party libraries(.NET open source libraries) into our projects.If you manually add any .NET open source assemblies some time it takes too much effort to make it work with the project. We can avoid this manual configuration through Nuget Packages available for VS2010 and from VS2012 this feature is comes by default during installation.

Nuget is type of Open source Package management system and it is a huge repository. Using Nuget we can include required assembly in to out application. we can make use of Package Manager Console window in VS to install any external assembly that is available in Nuget.


List of HTTP response status codes

October 16, 2014 Leave a comment

Application that we developed sometime unexpectedly show error message or some time during debugging need to identify the status of the request. To identify the type of error or response status codes very first thing will see the error code returned by the page. Based on the response status code we can narrow down the error type or identify the status of the request like Success/failure.

Basically we can group the response status code in 4 different types
1) Informational (1XX)
2) Success (2XX)
3) Redirection (3XX)
4) Client (4XX)


Each group have different type of status code for more you can reffer here

ASP.NET Web Configuration Tool missing in VS2013

May 6, 2014 Leave a comment

I’m using Visual Studio 2013 and as you probably know there is no ASP.NET Web Configuration Tool but Just now i came to know about it. Still i want to access it, so first i want to know why they remove this option. While surfing on net i came to know that this is due to removal of Visual Studio Development Server  (or Cassini) from the product.

Now now let see how we will access our Web Configuration Tool
Through your VS2013 console, copy and paste below code

“C:\Program Files\IIS Express\iisexpress.exe” /path:c:\windows\Microsoft.NET\Framework\v4.0.30319\ASP.NETWebAdminFiles /vpath:”/asp.netwebadminfiles” /port:8089 /clr:4.0 /ntlm

Please wait …. don’t exit the command prompt by pressing ‘q’.

Again copy and past the url in a browser and edit ‘[Exact_Project_Path]’ part with your physical application path


That all 🙂

Categories: ASP.NET, VS

EnableViewState=”false” of a page

February 1, 2014 Leave a comment

When I disable ViewState for the page. It does not allow any control in the page to use ViewState even if I set ViewStateMode=”true” property of a control.
This is because I set turn page’s ViewState off, then there is no way for you to enable ViewState for specific components. This is because ViewState is serialized recursively, so when if the Page is not allowing ViewState, it will not serialize the ViewState for any of it’s child controls.


Regular expression validation for email

November 29, 2013 Leave a comment

Normally if you use ‘RegularExpressionValidator’ control to validate the E-Mail, you will select ‘Internet Email address’. By default it will return ‘\w+([-+.’]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*’

Above expression will accept like ‘’, But in my scenario it should accept only two sub domain as ‘’


Difference between Eval() and Bind()

October 22, 2013 Leave a comment

|<%# Eval(“”) %>                | <%# Bind(“”)%>
1   |OneWay Binding               | Bind is two-way
2   |Readonly databinging     | Read/write databinding

Normally Bind() method is used inside the Gridview or other datacontrol to extract the data back to the datasource from the child controls in the template. Normally
the Bind() used inside the EditItemTemplate and InsertItemTemplate of databound countrol.

Categories: ASP.NET

Date Formatting

June 20, 2013 Leave a comment


Categories: ASP.NET Tags:
%d bloggers like this: