23 Jul 2014
0 Comments   159 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
0 Comments   105 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   346 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   378 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   456 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   395 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   179 Views
Here Mudassar Ahmed Khan how to add multiple line breaks (<BR />) to JavaScript Alert message box.
18 Jul 2014
0 Comments   284 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   398 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   425 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   807 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   339 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   483 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   692 Views
Here Mudassar Ahmed Khan has explained the different (<% %>) Embedded code blocks and its use in ASP.Net.
11 Jul 2014
0 Comments   619 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   455 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   581 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   499 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   588 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   941 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   1113 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.
05 Jul 2014
0 Comments   1402 Views
Here Mudassar Ahmed Khan has explained how to display ASP.Net AJAX UpdateProgress control in center or middle of page with a modal background covering the whole screen.

Until the AJAX call is in progress, the screen will freeze and user will not able to perform any action.
04 Jul 2014
0 Comments   697 Views
Here Mudassar Ahmed Khan has explained what is Parallel LINQ (PLINQ) and a simple example how to write a PLINQ Query in C# and VB.Net .Net 4.0 and .Net 4.5.

Parallelism can be achieved in two ways
1. Parallel class
2. PLINQ (Parallel LINQ)

Here he has explained how to achieve parallelism using Parallel LINQ (PLINQ).
04 Jul 2014
0 Comments   738 Views
Here Mudassar Ahmed Khan has explained with a simple example how to use Parallel ForEach Loop in C# and VB.Net using .Net 4.0 and .Net 4.5.

Parallelism can be achieved in two ways
1. Parallel class
2. PLINQ (Parallel LINQ)

Here he has explained how to achieve parallelism using Parallel ForEach Loop.
04 Jul 2014
1 Comments   953 Views
Here Mudassar Ahmed Khan has explained how to create / generate / export PDF file using Crystal Reports dynamically in ASP.Net using C# and VB.Net.