Choose a location:
Sign up today >
29 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...
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...
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 5 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 4 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...
7 minutes ago 0 Comments
If you want to replace smielys with custom images this blog will help you. Let's say ypu have the following string hello :) :( and you want that to be converted to "hello happy sad", basically you are parsing smileys and are replacing with your custom texst you can do the same via this...
16 minutes ago 0 Comments
Fix: HTTP Error 404.3 - Not Found The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.
5 days ago 0 Comments
I was facing a weird issue today where I one of my css files were not opening and was thoughing a redirect loop: I was trying to access the following URL : "http://mydomain.com/Assets/FontAwesome/css/font-awesome.css" but it was throwing me to: "http://mydomain.com/login.aspx?ReturnUr...
6 days ago 0 Comments
I did Windows Update today and noticed my sites started getting "Unrecognized attribute 'targetFramework'.Note that attribute names are case-sensitive" on running them . I double checked the target framework for the apps in their app pools and it was correct i.e 4.0 . I got my issu...
I was installing the following hotifx http://support.microsoft.com/kb/2600088/en-us today and started getting the following message while installing it: KB2600088 does not apply, or is blocked by another condition on your computer. Cause : Th cause for my case for this issue was that .NET 4.5 framew...
6 days ago 1 Comments
If you are experiencing this issue where Forms authentication is not working in IE10 this blog will help you. Microsoft has rleaseed a hotfix for it http://support.microsoft.com/kb/2600088/en-us After applying it on my machine Forms authentication started working in IE10
12 days ago 0 Comments
I was working with constants variables in one of the files in my application and noticed the variables names was in pascal case instead of all letters in UpperCase. I pressed CTRL + SHIT +U and my work was done.
17 days ago 0 Comments
How often you have to kill processes of a database and run "sp_who2" command and then "kill " to kill each processes? This is a tedious task. I have written a Stored procedure which you can run in your "master" database and can use it to kill all processes o...
25 days ago 0 Comments
Sometimes it is useful to display IPv4 address in binary to compare it with subnet mask
26 days ago 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/19/2013 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...
5/8/2013 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 " &...
5/6/2013 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...
5/3/2013 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...
What kind of email newsletter would you prefer to receive from CodeAsp.Net? 18