18 Apr 2015
0 Comments   1 Views
Here Mudassar Ahmed Khan has explained how to get and then validate (check) dimensions (Height and Width) of Image file before upload using HTML5, JavaScript and jQuery.
HTML5 allows developers to access the file details such as Height and Width using JavaScript and jQuery.
17 Apr 2015
0 Comments   162 Views
Here Mudassar Ahmed Khan has explained how to open (show) InfoWindow without using Markers on Google Map in Google Maps API V3 and JavaScript.
17 Apr 2015
0 Comments   165 Views
Here Mudassar Ahmed Khan has explained with example, how to open (show) only one InfoWindow at a time i.e. When one InfoWindow is opened then automatically close the other opened InfoWindows on the Google Map.
17 Apr 2015
0 Comments   149 Views
Here Mudassar Ahmed Khan has explained with example, how to add multiple markers with InfoWindow to Google Map.
17 Apr 2015
0 Comments   142 Views
Here Mudassar Ahmed Khan has explained with example, how to add (attach) click event listener to Google Map markers using Google Maps API V3.
The click event listener will be added (attached) to Google Maps using JavaScript.
16 Apr 2015
0 Comments   213 Views
Here Mudassar Ahmed Khan has explained how to center and zoom Google Map on markers in such a way that all markers can be fitted using Google Maps API V3.
The map is centered and the zoom is adjusted based on the markers and their positions and the best possible view of Google Map is shown to the user.
16 Apr 2015
0 Comments   247 Views
Here Mudassar Ahmed Khan has explained how to populate Google Maps from an array of markers of different geographic address locations in JavaScript using Google Maps API V3.
Each marker in the array of marker contains the Latitude and Longitude information which will be used to add the marker to the Google Map.
15 Apr 2015
0 Comments   335 Views
Here Mudassar Ahmed Khan has explained how to validate (check) ASP.Net DropDownList using JavaScript and jQuery.
15 Apr 2015
0 Comments   324 Views
Here Mudassar Ahmed Khan has explained how to get Text and Value of selected Item (Option) of ASP.Net DropDownList on Button click using JavaScript and jQuery.
13 Apr 2015
0 Comments   397 Views
Here Mudassar Ahmed Khan has explained how to validate (check) HTML Select DropDownList using JavaScript and jQuery.
13 Apr 2015
0 Comments   349 Views
Here Mudassar Ahmed Khan has explained how to get selected Text and Value of HTML Select DropDownList on Button click using JavaScript and jQuery.
12 Apr 2015
0 Comments   467 Views
Here Mudassar Ahmed Khan has explained how to get selected Text and Value of HTML Select DropDownList in OnChange event using JavaScript and jQuery.
11 Apr 2015
0 Comments   447 Views
Here Mudassar Ahmed Khan has explained how to populate ASP.Net DropDownList control using SqlDataReader (DataReader) in C# and VB.Net.
10 Apr 2015
0 Comments   481 Views
Here Mudassar Ahmed has explained how to get the selected Text of HTML Select DropDownList in ASP.Net Code Behind (Server Side) using C# and VB.Net.

There are two ways we can access the HTML Select DropDownList selected Text in ASP.Net Code Behind (Server Side)
1. Using Request Form collection and name property.
2. Using runat = “server” property.
10 Apr 2015
0 Comments   493 Views
Here Mudassar Ahmed Khan has explained how to call JavaScript Client Side function from Code Behind (Server Side) in ASP.Net using C# and VB.Net.
The JavaScript Client Side function will be called from Code Behind (Server Side) using ClientScript RegisterStartupScript method.
09 Apr 2015
0 Comments   548 Views
Here Mudassar Ahmed Khan has explained how to call Code Behind (Server Side) methods or functions using Client Side JavaScript code in ASP.Net using C# and VB.Net.
The Code Behind (Server Side) function will be called using AJAX PageMethods and JavaScript.
09 Apr 2015
0 Comments   703 Views
Here Mudassar Ahmed Khan has explained how to populate and display JSON data in HTML Table using jQuery.
The HTML Table will be dynamically created by looping through the JSON array elements on Button click using jQuery.
09 Apr 2015
0 Comments   467 Views
Here Mudassar Ahmed Khan has provided a tutorial with simple example that explains

- What are Cursors in SQL Server?
- What is the syntax for writing Cursors in SQL Server?
- How to write and use Cursors in SQL Server?
- Disadvantages of a Cursor in SQL Server.

Cursor is supported in all SQL Server versions i.e. 2000, 2005, 2008, 2008R2, 2012 and 2014.
08 Apr 2015
0 Comments   547 Views
Here Mudassar Ahmed Khan has explained how to resolve the error The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required in ASP.Net Application.
08 Apr 2015
0 Comments   731 Views
Here Mudassar Ahmed Khan has explained how to display daily Weather Forecast using Weather API web service in ASP.Net using C# and VB.Net.
The Weather API web service accepts City Name or Zip Code and it returns data in JSON format which will be displayed on the ASP.Net Web page.
06 Apr 2015
0 Comments   830 Views
Here Mudassar Ahmed Khan has explained how to add and show Serial number in First Column of GridView in ASP.Net using C# and VB.Net.

The Serial Number can be auto generated in the following two ways.
1. Using DataItemIndex.
2. Using RowDataBound event.
06 Apr 2015
0 Comments   831 Views
Here Mudassar Ahmed Khan has explained how to write (insert) data to Excel file Sheet (.xls and .xlsx) in ASP.Net using C# and VB.Net.
The data from database will be written (inserted) into the Excel file Sheet (.xls and .xlsx) and the file will be downloaded in ASP.Net.
06 Apr 2015
0 Comments   444 Views
Here Mudassar Ahmed Khan has explained how to automatically start a Windows Service after installation is completed using C# and VB.Net.
The Windows Service will be started automatically after the installation is completed by making use of the AfterInstall event handler.
05 Apr 2015
0 Comments   645 Views
Here Mudassar Ahmed Khan has provided a tutorial with example to encrypt and decrypt section in Web.Config file using aspnet_regiis.exe Command Line Utility of the Visual Studio.
This article explains encryption and decryption of Connection String section of the Web.Config file using aspnet_regiis.exe Command Line Utility of the Visual Studio.
05 Apr 2015
0 Comments   726 Views
Here Mudassar Ahmed Khan has explained SQL Injection attack and some examples of SQL Injection in SQL Server.
04 Apr 2015
0 Comments   611 Views
Here Mudassar Ahmed Khan has explained how to solve the problem of dynamic control disappearing after PostBack in ASP.Net i.e. Persists dynamic controls after PostBack in ASP.Net using C# and VB.Net.
Dynamically created controls have to be recreated on PostBack in order to persist dynamic controls across PostBacks.
04 Apr 2015
0 Comments   560 Views
Here Mudassar Ahmed Khan has provided code to disable / restrict / prevent mouse right click in web page using JavaScript and jQuery.

The code has to be copied in your web page HEAD section and it will disable / restrict / prevent mouse right click using JavaScript and jQuery.
04 Apr 2015
0 Comments   596 Views
Here Mudassar Ahmed Khan has explained how to pass (send) value from child popup window to parent page window using JavaScript.
The child popup window must be opened using JavaScript window.open function. The window.open function returns the reference of the opened Child popup window using which the elements and controls of the Child popup window will be accessed.
03 Apr 2015
0 Comments   596 Views
Here Mudassar Ahmed Khan has explained with an example how to return value from a Stored Procedure in SQL Server. SQL Server allows to return a single integer value from a Stored Procedure using the RETURN keyword.
The Return keyword is supported in Stored Procedures of all SQL Server versions i.e. 2000, 2005, 2008, 2008R2, 2012 and 2014.
03 Apr 2015
0 Comments   419 Views
Here Mudassar Ahmed Khan has explained with example the syntax to drop a Stored Procedure in SQL Server i.e. how to delete a Stored Procedure in SQL Server.
Using this tutorial you can easily delete (Drop) an existing Stored Procedure in all SQL Server versions i.e. 2000, 2005, 2008, 2008R2, 2012 and 2014.
03 Apr 2015
0 Comments   402 Views
Here Mudassar Ahmed Khan has explained a tutorial with example on how to modify (Alter) an existing Stored Procedure in SQL Server.
Using this tutorial you can easily modify (Alter) an existing Stored Procedure in all SQL Server versions i.e. 2000, 2005, 2008, 2008R2, 2012 and 2014.
03 Apr 2015
0 Comments   998 Views
Here Mudassar Ahmed Khan has explained how to zoom (enlarge) images on MouseOver in ASP.Net DataList using jQuery ElevateZoom Image Zoom plugin.
02 Apr 2015
0 Comments   442 Views
Here Mudassar Ahmed Khan has explained how to use Enumeration in JavaScript i.e. define and use Enum in JavaScript. JavaScript does not have any Enum data type but still we can create an array of key value pair and use it as Enum.
02 Apr 2015
0 Comments   769 Views
Here Mudassar Ahmed Khan has explained how to bind and display images in DataList from folder in ASP.Net using C# and VB.Net.
The images will be uploaded and saved into some folder on disk using ASP.Net FileUpload control and finally the images will be populated and displayed in ASP.Net DataList control.
01 Apr 2015
0 Comments   538 Views
Here Mudassar Ahmed Khan has explained how to get scalar value return from a Stored Procedure in ADO.Net using ExecuteScalar method of the SqlCommand class in C# and VB.Net.
SqlCommand ExecuteScalar is a handy function when you want to just need one Cell value i.e. one column and one row.