29 Aug 2014
0 Comments   2 Views
Here Mudassar Ahmed Khan has explained how to populate (bind) TreeView from SiteMap using SiteMapDataSource in ASP.Net.

The SiteMap file contains navigation information about a website and using the SiteMapDataSource we can easily populate the TreeView control.
28 Aug 2014
0 Comments   269 Views
Here Mudassar Khan has explained how to Clone DropDownList Items i.e. Copy DropDownList Items to another DropDownList using jQuery.

The DropDownList is cloned and its items are copied to another DropDownList along with the Selected Value.
24 Aug 2014
0 Comments   761 Views
Here Mudassar Ahmed Khan has explained how to create text image on the fly with ASP.Net using C# and VB.Net.

The image generation is done dynamically using GDI+ library in ASP.Net.
24 Aug 2014
0 Comments   629 Views
Here Mudassar Ahmed Khan has explained how to edit GridView with BoundField column in ASP.Net using C# and VB.Net.

When the GridView Row enters Edit Mode, the BoundField column gets converted to a TextBox dynamically to allow user modify the values.
23 Aug 2014
0 Comments   260 Views
Here Mudassar Ahmed Khan has explained how to get the address location from Latitude and Longitude using the Google Maps Geocoding API.
23 Aug 2014
0 Comments   337 Views
Here Mudassar Ahmed Khan has explained how to populate or bind TreeView from database in ASP.Net using C# and VB.Net.
22 Aug 2014
0 Comments   264 Views
Here Mudassar Ahmed Khan has explained how to pass XML file as parameter to Stored Procedure in C# and VB.Net.
22 Aug 2014
0 Comments   454 Views
Here Mudassar Ahmed Khan has explained, how to get the selected row of GridView on Button click in ASP.Net.
The GridView Row is selected using the Select Button and then the values are fetched from the Selected Row Columns.
22 Aug 2014
0 Comments   890 Views
Here Mudassar Ahmed Khan has explained how to display Session Timeout message before Session expires in ASP.Net.

The concept behind this approach is to inform the user in advance that his session is about to expire and show him a Session timeout counter.
20 Aug 2014
0 Comments   659 Views
Here Mudassar Ahmed Khan has explained how to validate a dd/MM/yyyy format date string in TextBox in ASP.Net.
The dd/MM/yyyy date format string can be validated in the following possible ways

1. Using RegularExpressionValidator.
2. Using CustomValidator and JavaScript.
3. Using CustomValidator with Server Side validation using C# and VB.Net.
19 Aug 2014
0 Comments   581 Views
Here Mudassar Ahmed Khan has explained how to login with Google Account in ASP.Net Website using C# and VB.Net by making use of the free ASPSnippets.GoogleAPI.
18 Aug 2014
0 Comments   543 Views
Here Mudassar Ahmed Khan has explained how to make the markers Draggable in Google Maps V3 with example i.e. how to drag and drop markers in Google Maps using JavaScript.

In additional to the drag drop functionality, he has also explained how to get the location details i.e. Latitude, Longitude and Address when the marker is dropped using the marker dragend event.
17 Aug 2014
0 Comments   913 Views
Here Mudassar Ahmed Khan has explained how to automatically refresh ASP.Net AJAX UpdatePanel in ASP.Net.

UpdatePanel can be refreshed automatically after specific time or regular interval using the following two techniques.

1. Using AJAX Timer control.
2. Using JavaScript.
16 Aug 2014
1 Comments   667 Views
Here Mudassar Ahmed Khan has explained how to refresh (reload) UpdatePanel from JavaScript in ASP.Net.

Refreshing or reloading is achieved by making an ASP.Net AJAX UpdatePanel do a PostBack using JavaScript. This article will explain the different ways you can refresh or reload an UpdatePanel using JavaScript.

1. Using Hidden Button
2. Using __doPostBack
14 Aug 2014
0 Comments   1061 Views
Here Mudassar Ahmed Khan has explained how to send Bulk (Mass) email in ASP.Net website using C# and VB.Net.

In order to improve the performance using Parallel ForEach Loop to send Bulk (Mass) emails by making use of Multi-Threading in ASP.Net.
14 Aug 2014
0 Comments   622 Views
Here Mudassar Ahmed Khan has explained how to handle errors and exceptions occurring in ASP.Net AJAX UpdatePanel control.

When AJAX UpdatePanel does Partial PostBack (AsyncPostBack) and some exception is thrown on the server side code, then the UpdatePanel will simply stuck and will not refresh and you will not see any error or exception from ASP.Net. Hence it is necessary to handle the ASP.Net AJAX UpdatePanel Exceptions and Errors.
11 Aug 2014
0 Comments   859 Views
Here Mudassar Ahmed Khan has explained how to save image as binary data into SQL Server database and also how to retrieve and convert the image back to their respective formats using C# and VB.Net.
11 Aug 2014
0 Comments   637 Views
Here Mudassar Ahmed Khan has explained how to save file as binary data inside SQL Server database and also how to retrieve them and convert them back to their respective formats using C# and VB.Net.
10 Aug 2014
0 Comments   820 Views
Here Mudassar Ahmed Khan has explained how to dynamically create/generate Zip Files on the fly in ASP.Net using the DotNetZip Library, C# and VB.Net.
10 Aug 2014
0 Comments   906 Views
Here Mudassar Ahmed Khan has explained how to upload and insert XML file data using Stored Procedure in ASP.Net using C# and VB.Net.

SQL Server 2005 onwards we can pass a parameter of XML data type to the Stored Procedure and also we can easily parse the XML and extract its attribute and Inner Text of tags.
06 Aug 2014
0 Comments   1518 Views
Here Mudassar Ahmed Khan has explained how to highlight selected menu item of current page in ASP.Net Menu control.
06 Aug 2014
0 Comments   732 Views
Here Mudassar Ahmed Khan has explained how to enforce character limit with character count feature when text is pasted in HTML TextArea.

The jQuery Character limit Plugin works in both cases, when the text is pasted using CTRL + V keyboard shortcut and also when the text is pasted using the Paste option in Context Menu which opens when TextArea is right clicked.
06 Aug 2014
0 Comments   669 Views
Here Mudassar Ahmed Khan has shared the jQuery plugin for TextArea to implement to limit characters with character count feature.

HTML TextArea control does not have MaxLength property hence I have built a MaxLength jQuery plugin which allows user to enforce character limit validation and optionally display the character count.
05 Aug 2014
0 Comments   782 Views
Here Mudassar Ahmed Khan has explained how to pass multiple records (rows) to a Stored Procedure in SQL Server using C# and VB.Net.
We can pass a Table containing multiple records (rows) to a Stored Procedure by making use of Table Valued parameters in SQL Server.
04 Aug 2014
0 Comments   834 Views
Here Mudassar Ahmed Khan has explained with an example, how to use the HTML5 GeoLocation API in browsers that support HTML5 GeoLocation feature and determine the current location and display in Google Maps.