03 Jul 2015
0 Comments   3 Views
Here Mudassar Ahmed Khan has explained with an example, how to convert Byte Array to Base64 String using C# and VB.Net.
03 Jul 2015
0 Comments   105 Views
Here Mudassar Ahmed Khan has explained with an example, how to export Image to Excel file in ASP.Net using C# and VB.Net.
03 Jul 2015
0 Comments   118 Views
Here Mudassar Ahmed Khan has explained with an example and attached sample code, how to get Location Coordinates i.e. Latitude and Longitude from Zip Code (Pin Code) by making use of Google Maps API V3 (Version 3) and JavaScript.
02 Jul 2015
0 Comments   337 Views
Here Mudassar Ahmed Khan has with an example, how to use jQuery $(document).ready event handler with ASP.Net AJAX UpdatePanel.
The jQuery $(document).ready event handler works when page loads, but after ASP.Net AJAX UpdatePanel Partial PostBack it does not get called.
02 Jul 2015
0 Comments   264 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement Drag and Drop functionality between two DIVs using jQuery.
The contents of the DIV will be made draggable and Droppable using the jQuery UI Draggable and Droppable plugins.
01 Jul 2015
0 Comments   306 Views
Here Mudassar Ahmed Khan has explained with an example, how to use and set multiple TargetControlIDs to one ASP.Net AJAX ModalPopupExtender Popup
ASP.Net AJAX ModalPopupExtender Modal Popup can be shown using JavaScript using the BehaviorID property and hence the same Modal Popup is shown using multiple Buttons without setting the Button’s ID to the TargetControlID property.
01 Jul 2015
0 Comments   291 Views
Here Mudassar Ahmed Khan has explained with an example, how to use and dynamically display (show) ASP.Net AJAX ModalPopupExtender Modal Popup without setting its TargetControlID property.
ASP.Net AJAX ModalPopupExtender Modal Popup can be shown using JavaScript using the BehaviorID property and hence it can be shown using any Button without setting the Button’s ID to the TargetControlID property.
01 Jul 2015
0 Comments   248 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement DetailsView control without using SqlDataSource control in ASP.Net using C# and VB.Net.
Since SqlDataSource control will not be used, the DetailsView will be populated from code behind.
30 Jun 2015
0 Comments   310 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   349 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   430 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   387 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   410 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   405 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   304 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   446 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   360 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   350 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   369 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   405 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   361 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   426 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   362 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   634 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   688 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   574 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   576 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   770 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   609 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   576 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   466 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   466 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   608 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   878 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   847 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.