30 Jun 2015
0 Comments   4 Views
Here Mudassar Ahmed Khan has explained how to solve the following exception (error) that occurs while implanting paging in ASP.Net GridView control.
The GridView 'GridView1' fired event PageIndexChanging which wasn't handled.
30 Jun 2015
0 Comments   156 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement DetailsView control in ASP.Net using SqlDataSource. This article will also explain how to implement paging when DetailsView controls is populated using SqlDataSource.
29 Jun 2015
0 Comments   275 Views
Here Mudassar Ahmed Khan has provided an example to animate jQuery ScrollTop function i.e. how to implement jQuery ScrollTop with animation.
29 Jun 2015
0 Comments   246 Views
Here Mudassar Ahmed Khan has explained with an example, how to insert (save) multiple rows (records) from DataGridView to database in Windows Forms (WinForms) Application using C# and VB.Net.
26 Jun 2015
0 Comments   315 Views
Here Mudassar Ahmed Khan has explained with example, how to use the AngularJS ng-bind-html directive to display HTML content in AngularJS using ng-bind-html.
25 Jun 2015
0 Comments   341 Views
Here Mudassar Ahmed Khan has explained a simple tutorial with example, how to use the ng-show and ng-hide directives in AngularJS.
AngularJS directives ng-show and ng-hide are used to show and hide elements.
25 Jun 2015
0 Comments   245 Views
Here Mudassar Ahmed Khan has explained with simple example, how to use ng-bind and templates in AngularJS.
Both ng-bind directive and templates are used to display data in AngularJS.
25 Jun 2015
0 Comments   388 Views
Here Mudassar Ahmed Khan has explained how to return Identity value from Stored Procedure in SQL Server.
The Identity value (ID value) of the newly (last) inserted record can be determined using @@IDENTITY, SCOPE_IDENTITY() and IDENT_CURRENT functions.
This article is applicable to SQL Server 2000, 2005, 2008, 2008R2, 2012 and 2014 versions.
25 Jun 2015
0 Comments   297 Views
Here Mudassar Ahmed Khan has explained the difference between @@IDENTITY, SCOPE_IDENTITY() and IDENT_CURRENT in SQL Server.
The @@IDENTITY, SCOPE_IDENTITY() and IDENT_CURRENT functions return the Identity value (ID value) of the newly (last) inserted record but still there exists a difference.
This article is applicable to SQL Server 2000, 2005, 2008, 2008R2, 2012 and 2014 versions.
25 Jun 2015
0 Comments   278 Views
Here Mudassar Ahmed Khan has explained with an example, how to dynamically populate (bind) DataGridView without using Database in Windows Forms (WinForms) Application using C# and VB.Net
24 Jun 2015
0 Comments   314 Views
Here Mudassar Ahmed Khan has explained with an example, how to remove (delete) Last Blank (Empty) Row from DataGridView in Windows Forms (WinForms) Application using C# and VB.Net.
This article will explain two ways to remove (delete) Last Blank (Empty) Row from DataGridView.
1. Using Properties Window.
2. Using Code.
24 Jun 2015
0 Comments   329 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement Paging DataGridView in Windows Forms (WinForms) Application using C# and VB.Net.
DataGridView control in Windows Forms (WinForms) Application does not have paging capabilities and hence Custom Paging using Stored Procedure needs to be implemented.
24 Jun 2015
0 Comments   304 Views
Here Mudassar Ahmed Khan has explained with an example, how to populate (bind) DataGridView using DataReader (SqlDataReader) in Windows Forms (WinForms) Application using C# and VB.Net.
Windows Forms DataGridView does not support DataReader (SqlDataReader) and hence when we try to bind DataGridView to DataReader (SqlDataReader), the DataGridView does not show any records.
23 Jun 2015
0 Comments   373 Views
Here Mudassar Ahmed Khan has explained how to solve the following error in ASP.Net WCF Service when aspNetCompatibilityEnabled attribute is set to true in Web.Config file.
The service cannot be activated because it does not support ASP.NET compatibility. ASP.NET compatibility is enabled for this application. Turn off ASP.NET compatibility mode in the Web.Config or add the AspNetCompatibilityRequirements attribute to the service type with RequirementsMode setting as 'Allowed' or 'Required'.
23 Jun 2015
0 Comments   318 Views
Here Mudassar Ahmed Khan has explained how to access and use HttpContext.Current in WCF Service in ASP.Net using C# and VB.Net.
When HttpContext.Current is used in a WCF Service in ASP.Net, the value of HttpContext.Current is always NULL.
23 Jun 2015
0 Comments   532 Views
Here Mudassar Ahmed Khan has explained how to change color of selected item depending on selection in ASP.Net Menu control.
22 Jun 2015
0 Comments   571 Views
Here Mudassar Ahmed Khan has explained with an example, how to show and hide HTML DIV with TextBox based on DropDownList (HTML SELECT) selected value (selection) using JavaScript and jQuery.
When an option is selected in DropDownList then based on its selected value (selection), the HTML DIV with TextBox will be shown or hidden.
21 Jun 2015
0 Comments   505 Views
Here Mudassar Ahmed Khan has explained with an example and attached sample code, how to find GPS Coordinates i.e. Latitude and Longitude for a given location using its address by making use of Google Maps API V3 (Version 3) and JavaScript.
21 Jun 2015
0 Comments   495 Views
Here Mudassar Ahmed Khan has explained with an example, how to check whether a CheckBox is checked (selected) or not selected (unchecked) using JavaScript and jQuery.
20 Jun 2015
0 Comments   665 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement mutually exclusive CheckBoxList (CheckBoxes) inside GridView in ASP.Net using JavaScript and jQuery.
Mutually exclusive CheckBoxList means when one CheckBox is checked, all other CheckBoxes present in the CheckBoxList will be unchecked.
20 Jun 2015
0 Comments   545 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 i.e. Latitude and Longitude co-ordinates using JavaScript.
These Location coordinates i.e. Latitude and Longitude can be used to display the User’s current location in Google Maps in our website using JavaScript.
19 Jun 2015
0 Comments   515 Views
Here Mudassar Ahmed Khan has explained how to display (show) Current Server Time using JavaScript in ASP.Net
The Current Server Time will be displayed by calling a JavaScript function from Code Behind (Server Side) and passing the value of Current Server Time as parameter using ClientScript RegisterStartupScript method.
19 Jun 2015
0 Comments   415 Views
Here Mudassar Ahmed Khan has explained with an example, how to delete (remove) all rows from an HTML Table except First and Second row using JavaScript and jQuery.
18 Jun 2015
0 Comments   428 Views
Here Mudassar Ahmed Khan has explained with an example, how to delete (remove) all rows from an HTML Table except First (Header) row using JavaScript and jQuery.
17 Jun 2015
0 Comments   562 Views
Here Mudassar Ahmed Khan has explained with an example, how to automatically detect Browser Language and Culture in ASP.Net using C# and VB.Net.
Once the Browser Language and Culture is detected, the website will display content in the User’s language using Globalization and Localization.
17 Jun 2015
0 Comments   810 Views
Here Mudassar Ahmed Khan has explained with an example, how to create a multilingual website in ASP.Net using Globalization and Localization i.e. a website that supports and displays multiple languages such as English and French in ASP.Net using C# and VB.Net.
16 Jun 2015
0 Comments   758 Views
Here Mudassar Ahmed Khan has explained how to show ASP.Net AJAX UpdateProgress in ASP.Net AJAX ModalPopupExtender Modal Popup style.
Just like the ASP.Net AJAX ModalPopupExtender Modal Popup, the ASP.Net AJAX UpdateProgress control is displayed in the center or middle of page with a modal background covering the whole screen and until the AJAX call is in progress, the screen will freeze and user will not able to perform any action.
15 Jun 2015
0 Comments   930 Views
Here Mudassar Ahmed Khan has explained how to find, access, get value and validate TextBox and DropDownList controls in GridView row using JavaScript in ASP.Net.
This article will explain how to find and validate TextBox and DropDownList controls inside the ASP.Net GridView row using JavaScript when it is being edited.
15 Jun 2015
0 Comments   611 Views
Here Mudassar Ahmed Khan has explained how to build a simple Windows Service that repeats a Task periodically at N intervals and as well as once a day at specific (certain) time of day using C# and VB.Net.

The Windows service will support two modes
1. Interval mode: where Windows Service execute a task at regular intervals after some delay
2. Daily mode: where the Windows Service will execute a task at specific (certain) time of day.
15 Jun 2015
0 Comments   950 Views
Here Mudassar Ahmed Khan has explained with an example, how to detect Session Timeout and redirect to Login Page in ASP.Net using C# and VB.Net.
14 Jun 2015
0 Comments   641 Views
Here Mudassar Ahmed Khan has explained with an example, how to make a Column (Cell) non editable (ReadOnly) in ASP.Net GridView set with AutoGenerateColumns property to true using C# and VB.Net.
14 Jun 2015
0 Comments   691 Views
Here Mudassar Ahmed Khan has explained with an example, how to use the AutoGenerateDeleteButton property in ASP.Net GridView with AutoGenerateColumns property set to true using C# and VB.Net.
This article will also explain how to show JavaScript Confirmation message while deleting record when AutoGenerateDeleteButton is set to true in ASP.Net GridView.
14 Jun 2015
0 Comments   740 Views
Here Mudassar Ahmed Khan has explained with an example, how to perform edit, update and delete operations in ASP.Net GridView with AutoGenerateColumns property set to true using C# and VB.Net.
This article will also explain how to show Edit, Update and Delete Buttons in ASP.Net GridView with AutoGenerateColumns property set to true using the AutoGenerateEditButton and AutoGenerateDeleteButton properties
12 Jun 2015
0 Comments   650 Views
Here Mudassar Ahmed Khan has explained with an example, how to pass Table as parameter i.e. Table Valued Parameters to Stored Procedure in SQL Server.
The User Defined Table Type has to be created in SQL Server and it must have the same schema as that of the Table Valued parameter that we need to pass to the Stored Procedure.
12 Jun 2015
0 Comments   1207 Views
Here Mudassar Ahmed Khan has explained with an example, how to display (show) GridView inside jQuery Dialog Modal Popup Window in ASP.Net using C# and VB.Net.
This article will also explain how to keep the jQuery Dialog Modal Popup Window when paging in ASP.Net GridView.