29 Jul 2014
0 Comments   304 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   445 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   329 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   425 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
0 Comments   827 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   401 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   523 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.
20 Jul 2014
0 Comments   518 Views
Here Mudassar Ahmed Khan has explained how to get the Geographical position coordinates of a location i.e. Latitude and Longitude when user clicks anywhere on Google Maps using the Google Maps V3 OnClick event handler.
19 Jul 2014
0 Comments   594 Views
Here Mudassar Ahmed Khan has explained how to display Alphabets (Letters) or Numbers in markers of Google Maps V3.
In order to display Alphabets (Letters) or in Google Maps V3 markers, the Google Maps Chart API is used to generate custom markers.
18 Jul 2014
0 Comments   636 Views
Here Mudassar Ahmed Khan how to show loading progress indicator using GIF Image when ASP.Net AJAX UpdatePanel is updating or when ASP.Net AJAX UpdatePanel is doing PostBack.
18 Jul 2014
0 Comments   306 Views
Here Mudassar Ahmed Khan how to add multiple line breaks (<BR />) to JavaScript Alert message box.
18 Jul 2014
0 Comments   521 Views
Here Mudassar Ahmed Khan has explained how to preview image before upload using FileUpload control in ASP.Net using jQuery, CSS and HTML5.
16 Jul 2014
0 Comments   537 Views
Here Mudassar Ahmed Khan has explained with an example, how to pass Table Valued Parameters to SQL Server Stored Procedure from .Net Code Behind using ADO.Net, C# and VB.Net.
16 Jul 2014
0 Comments   535 Views
Here Mudassar Ahmed Khan has explained how to solve the issue JavaScript window.event.keyCode not working in Internet Explorer (IE), Mozilla FireFox, Chrome, Safari and Opera browsers.

He has also shown how to get the ASCII keyCode on JavaScript KeyPress, KeyUp and KeyDown events.
15 Jul 2014
0 Comments   1026 Views
Here Mudassar Ahmed Khan has explained how to bind (load) GridView asynchronously after Page Load is completed using ASP.Net AJAX UpdatePanel and Timer control in ASP.Net.
15 Jul 2014
0 Comments   400 Views
Here Mudassar Ahmed Khan has shared the following Regular Expressions (Regex) for validating decimal numbers in TextBox.

1. Regular Expressions (Regex) to allow both decimals as wells as integers numbers.
2. Regular Expressions (Regex) to allow any decimal number starting from 1 upto N decimal places.
14 Jul 2014
0 Comments   554 Views
Here Mudassar Ahmed Khan has shared the following Regular Expressions (Regex) for validating decimal numbers in TextBox.

1. Regular Expressions (Regex) to match number with decimal precision of exact 1 decimal place.
2. Regular Expressions (Regex) to match number with decimal precision of exact 2 decimal places.
3. Regular Expressions (Regex) to match number with decimal precision of upto 2 decimal places.
11 Jul 2014
1 Comments   810 Views
Here Mudassar Ahmed Khan has explained the different (<% %>) Embedded code blocks and its use in ASP.Net.
11 Jul 2014
0 Comments   731 Views
Here Mudassar Ahmed Khan has explained how to find and access controls in Content Page using JavaScript when using Master Page using JavaScript document.getElementById function in ASP.Net.
11 Jul 2014
0 Comments   569 Views
Here Mudassar Ahmed Khan has explained how to display preview of image locally without uploading to server using jQuery.
The local image preview without server upload is shown using the DXImageTransform filter CSS property and HTML5 FileReader API.
11 Jul 2014
0 Comments   690 Views
Here Mudassar Ahmed Khan has explained how to call JavaScript function from code behind using ClientScript.RegisterStartupScript before redirect to another page in ASP.Net using C# and VB.Net.

Since JavaScript function will get called only when the page is rendered while Response.Redirect will end the page response and hence we need to make use of JavaScript redirection using window.location method.
10 Jul 2014
0 Comments   597 Views
Here Mudassar Ahmed Khan has explained how to display the error messages and details of error exceptions caught inside the Error and Failure event handlers of jQuery AJAX call.
The error messages and details are displayed using jQuery UI Dialog Popup.
10 Jul 2014
0 Comments   677 Views
Here Mudassar Ahmed Khan has explained how to open page in new Tab from code behind when using Response.Redirect or Server.Transfer in ASP.Net.
To open a page in new Tab is a browser property and newer browsers will automatically open pages on new tab using this code but older browsers will still open it new window unless the default settings are changed.
10 Jul 2014
4 Comments   1044 Views
Here Mudassar Ahmed Khan has explained how to show image preview in a DIV before the image is actually uploaded to server using jQuery.

The live preview is shown using the DXImageTransform filter CSS property in browsers that do not support HTML5 i.e. Internet Explorer 8 and 9.

While for the browsers that support HTML5 i.e. Internet Explorer 10 and 11+, Mozilla FireFox, Google Chrome and Opera, the image preview is displayed using HTML5 FileReader API.
08 Jul 2014
1 Comments   1337 Views
Here Mudassar Ahmed Khan has explained how to Insert, Update, Edit and Delete record in GridView using SqlDataSource control in ASP.Net.

In order to perform Insert, Update, Edit and Delete operations, the GridView will be populated form SQL Server database table using SqlDataSource control.