20 Aug 2014
0 Comments   77 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   175 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   269 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   529 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   424 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   617 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   369 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   547 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   437 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   648 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   691 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   1185 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   580 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   539 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   596 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   652 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   585 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   741 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   1217 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   1046 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   832 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   992 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.
23 Jul 2014
1 Comments   1621 Views
Here Mudassar Ahmed Khan has explained how to login with Google Plus Account API in ASP.Net Website using C# and VB.Net by making use of the free ASPSnippets.GoogleAPI.

After the account is verified, the user’s Google Plus Profile details such as Google Plus Profile ID, Google Plus Profile Image, Name, Email Address and Gender are fetched and displayed in the website.
23 Jul 2014
1 Comments   918 Views
Here Mudassar Ahmed Khan has explained how to get Google API Key (Client ID) and API Secret (Client Secret) from Google Developer Console.

In order to access Google APIs using OAUTH, we need to create a Project in Google Developer Console and generate the Google API Key (Client ID) and API Secret (Client Secret). The generated API Key and API Secret will then be used for making OAUTH calls to the Google APIs.
21 Jul 2014
0 Comments   935 Views
Here Mudassar Ahmed Khan has explained how to find the Address of a location using its Geographical position coordinates i.e. Latitude and Longitude using the Google Maps Geocoding API.

The process of finding the address of a location using the Geographical position coordinates i.e. Latitude and Longitude is known as Reverse Geocoding.