Choose a location:
Sign up today >
5 days ago 1 Comments
I have seen many programmers having confusion between PUT vs POST while making REST API It is not mandatory that you have to use both PUT and POST in our application, it depends on what is the requirement. If you want to use "POST" you must have a reason why you opted for "POST" ...
12/31/2011 1 Comments
The State pattern allows an object to change its behaviour when its internal state changes. This pattern comes under Behavioral Patterns section. This pattern is used to represent the state of an object. By "internal state changes" it means, the object will appear to change its type at run...
9/22/2011 4 Comments
This pattern enables to build agile software architecture by decoupling items/objects which produce information and items/objects which consume it. The publisher/subscriber pattern is a software design pattern in which an object, called the subject, maintains a list of its observers, and notifies th...
9/10/2011 3 Comments
The Apache log4net library is a means to help the programmers output assertions or logs to a variety of output targets. It is very helpful in the cases where you are facing problems with an application and want to log statements to locate the problem. The statements are logged with the help og log4N...
7/21/2011 1 Comments
Recently one of my developers asked me regarding the overflow property of CSS. He was having some confusion regarding various options (visible, hidden, scroll and auto) provided in overflow property. Therefore I decided to write an article on same which will put some light on the overflow property o...
6/26/2011 3 Comments
In this article I will show how to insert, update and delete data with SQLDataSource control. The SqlDataSource control makes use of ADO.NET classes (System.Data.Odbc, System.Data.OleDb, System.Data.SqlClient, System.Data.OracleClient) to connect to any DB which ADO.NET supports. SqlDataSource contr...
1/23/2011 11 Comments
In this article I will explain how to use jqGrid with ASP.NET. jqGrid is one of the most popular jquery grid and it is one of the best grid component. With the help of jqGrid wecan represent and manipulate tabular data for representing and manipulating tabular data . The grid is Ajax enabled JavaScr...
1/21/2011 16 Comments
In this article I will explain how to reorder list using jQuery and ASP.NET and the saving the item's updated order in the database. The advantage of reordering list with jQuery is that it is light weight, saving of bandwidth and good from user prespective. I have used jQuery UI Sortable List to sor...
1/14/2011 8 Comments
In this article I will show how to check username with jQuery and ASP.NET. This will let the users know if a particular username is available or not during the process when they are filling out the registration form. In tradtional way if you are going with normal postback , that will irritates the u...
12/25/2010 1 Comments
In this article I will show how to shorten url with jQuery. I am going to use bit.ly api to shorten the urls. I have made a custom jQuery plugin which will use bit.ly API to shorten the longurl. URL shortening is a technique on the World Wide Web in which a URL is made shorter in length. An HTTP Red...
11/21/2010 5 Comments
In this article I will show how to call ASP.NET webservice using jQuery. Webservice call using jQuery will let you to prevent the re-rendering the entire content of the page. The request is made partially and you can replace the content of the page without postback. Thus increasing usability and lea...
11/5/2010 7 Comments
In this article I will show how to implement jQuery cascading dropdownlist using jQuery and ASP.NET. Cascading drodpdownlist means when one dropdownlist is dependent on other dropdownlist. Let's take a common example of Country, State and Metro. Each country has its own states and each state has its...
10/31/2010 18 Comments
In this article I will show how to use jQuery Autcomplete in ASP.NET application. Autocomplete is one of the most needed feature while making applications where user demands the auto predicting feature when he types something in the input textbox.
11/1/2009 4 Comments
In this article I will explain how to import data from EXCEL to SQL in ASP.NET . In many situations we have data in the form of excel sheet but we have the requirement to have that data in SQL SERVER DB. I have explained importing data both from Excel 97-2003 as well as Excel 2007 format.
9/17/2009 3 Comments
In this article I will explain how to get readonly textbox value in codebehind file. I am writing this article to resolve these issues: • ASP.NET Ready Only TextBox lose client side changes, values across post back? • Why Readonly Text box values are empty in code behind ? • Issue in Retrieving text...
20 hours ago 0 Comments
Sometimes it is useful to display IPv4 address in binary to compare it with subnet mask
yesterday 0 Comments
ASP.NET FormsAuthentication Login cookie not working in Internet Explorer 10
Using devenv.exe /SafeMode allows you to run any version of visual studio (devenv.exe) in SafeMode with 3rd party plugins disabled.
5 days ago 0 Comments
We shifted one of our sites to new server today. While accessing the new site (which was running on new IP now) I started getting 404 error. I did the ping for that site and it was still whoing the old ip. I tried "ipconfig /flushdns" and it didn't work. I was still seeing the same res...
16 days ago 0 Comments
Today, I was trying to add line breaks in one of the anchors on my page, I tried various solutions like adding "" or "\n" to my title text but none of these solutions was working consistent across different browsers. Then I tried the line separator as " &...
18 days ago 0 Comments
To detect the http or https scheme in ASP.NET in server side code we can use Uri.Scheme property. Below is the sample code to do the same: string url = "https://www.yourwebsite.com/"; Uri uri = new Uri(url); string scheme = uri.Scheme; Response.Write(scheme); The output of above code is &q...
21 days ago 0 Comments
We were getting the following error while trying to access a url from server side code. It was working without any issue locally but after deploying it to remote server we started getting the error: "Navigation error. The remote host name was not found Details" Solution: The solution for t...
27 days ago 0 Comments
If you are using ReSharper and want to change CLR types to built-in C# type aliases (i.e. Int32 to int, String to string etc.) in an existing file, this blog will help you. I am writing the steps which will help you to change CLR types to built-in C# type aliases
If you are using ReSharper and want to sort your properties in an existing file, this blog will help you. I am writing the steps which will help you to sort the properties alphabetically
29 days ago 0 Comments
While resotring one of my db backup I was getting the following error: TITLE: Microsoft SQL Server Management Studio ------------------------------ Restore failed for Server 'WIN-LGFVOMLC8S4'. (Microsoft.SqlServer.SmoExtended) For help, click: http://go.microsoft.com/fwlink?ProdName=Microsof...
I would say excuses by lazy, having no goal kind of programmers: It is a hardware problem. RAM must be increased to make the program fast. My code has been edited by someone. I have to find out who did that. Virus has corrupted the application. It worked yesterday. This was new to me, no big deal if...
4/24/2013 0 Comments
I was facing a weird issue where I was putting a valid set of credentials in login prompt of Firefox and was getting login prompt again and again i.e it was not accepting the credntials. I was using Windows Server 2008 R2. Solution : I am writing the settings which I turned on which was set to off i...
4/19/2013 0 Comments
If you are using Windows Authentication and want to avoid the login prompt which comes when you try to access the application this blog will help you. The solution I am writing below is only for IE. In order to avoid that and let IE use the same credentials by which you are logged in into the Window...
4/16/2013 0 Comments
If you want to save few clicks to start Visual Studio with a particular project|solution opened at Windows Start, this blog will help you. Below are the steps which will help you to do the same: Copy the Visual Studio shortcut. Select the "StartUp" folder from "AllPrograms" Right...
4/15/2013 0 Comments
Lets say we have two classes Person1 and Person2. Below is the code for it: public class Person1 { public int ID { get; set; } public string Name { get; set; } public string FirstName { get; set; } public string Age { get; set; } } public class Person2 { public string Name { get; set; } public strin...
What kind of email newsletter would you prefer to receive from CodeAsp.Net? 18