22 Aug 2014
0 Comments   67 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   108 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   451 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   469 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   319 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   389 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   664 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   483 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   761 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   448 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   649 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   505 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   705 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   759 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   1304 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   622 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   570 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   652 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   709 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.
04 Aug 2014
1 Comments   618 Views
Here Mudassar Ahmed Khan has explained how to handle the JavaScript error Sys.WebForms.PageRequestManagerParserErrorException when using ASP.Net AJAX UpdatePanel control.

We experience the Sys.WebForms.PageRequestManagerParserErrorException JavaScript error in browser when some exception is thrown on the server side code during UpdatePanel AsyncPostBack.
31 Jul 2014
0 Comments   790 Views
Here Mudassar Ahmed Khan has explained how to solve the problem of RequiredFieldValidator not working when OnCientClick event is added to the Button in ASP.Net.

Thus in order to make the RequiredFieldValidator work with OnClientClick we need to make use of Page_ClientValidate JavaScript function of ASP.Net Validators to perform validation explicitly.
29 Jul 2014
0 Comments   1309 Views
Here Mudassar Ahmed Khan has explained how to populate (bind) TreeView control with Nodes having Parent Child relationship from database in ASP.Net using C# and VB.Net.

The TreeView will be populated using recursion.
27 Jul 2014
0 Comments   1100 Views
Here Mudassar Ahmed Khan has explained how to find and access a control such as TextBox, Button, DropDownList, RadioButton, etc. placed inside a UserControl or in other words WebUserControl (ASCX) from Parent Page (ASPX) using JavaScript in ASP.Net.

When a Control is placed inside a UserControl its ID changes when it is rendered as an HTML element and hence we need to first find the control and then determine its ClientID in order to access the control using JavaScript.
27 Jul 2014
0 Comments   868 Views
Here Mudassar Ahmed Khan has explained how to use and access Session variables in Generic Handler in ASP.Net using C# and VB.Net.

By default Session is disabled inside the Generic handler and hence in order to use and access Session variables we need to inherit the IRequiresSessionState interface.
26 Jul 2014
0 Comments   1049 Views
Here Mudassar Ahmed Khan has explained how to import contacts along with their profile image and email address from Google Gmail account in ASP.Net using C#, VB.Net and the ASPSnippets.GoogleAPI.

The Google Gmail contacts will be fetched using OAUTH2 protocol.