06 Jul 2015
0 Comments   310 Views
Here Mudassar Ahmed Khan has explained with an example, how to make the HTML5 Placeholder attribute Cross Browser supported using jQuery i.e. make the HTML5 Placeholder attribute also work in browsers that do not support HTML5 using jQuery.
Earlier versions of browsers such as Internet Explorer versions IE7, IE8, IE9, etc. do not support HTML5 and hence the Placeholder attribute does not work even if specified.
Thus in browsers that do not support HTML5 Placeholder attribute, the functionality of HTML5 Placeholder attribute is mimicked with the help of jQuery ASPSnippets Placeholder plugin.
06 Jul 2015
0 Comments   306 Views
Here Mudassar Ahmed Khan has explained with an example, how to display default Text Label in Input TextBox using JavaScript in HTML
The process to display default Text Label in HTML Input TextBox is known as Watermarking.
05 Jul 2015
0 Comments   344 Views
Here Mudassar Ahmed Khan has explained how to upload bulk data (records) in SQL Server Database using XML file in ASP.Net using C# and VB.Net.
04 Jul 2015
0 Comments   385 Views
Here Mudassar Ahmed Khan has explained how to add (insert) Default Item (Initial Value) to DataBound DropDownList populated from Database in ASP.Net Code Behind using C# and VB.Net.
Generally we want to have a default selected item such as Please Select. This article will explain how to add such default item in Code Behind when DropDownList is populated from database.
04 Jul 2015
0 Comments   452 Views
Here Mudassar Ahmed Khan has explained with an example, how to display after the file is selected (selecting file name) in HTML Input FileUpload.
The image will be displayed directly from the HTML Input FileUpload using the DXImageTransform filter CSS property and HTML5 FileReader API.
04 Jul 2015
0 Comments   298 Views
Here Mudassar Ahmed Khan has explained with an example, how to hide (close) ASP.Net AJAX ModalPopupExtender Modal Popup when clicked outside i.e. clicking any region on the page outside the Modal Popup.
The ASP.Net AJAX ModalPopupExtender Modal Popup will be hidden using JavaScript by attaching click event handler to the Modal Background element.
03 Jul 2015
0 Comments   366 Views
Here Mudassar Ahmed Khan has explained with an example, how to open (show) ASP.Net AJAX ModalPopupExtender Modal Popup on Page Load in ASP.Net using C# and VB.Net.
03 Jul 2015
0 Comments   276 Views
Here Mudassar Ahmed Khan has explained with an example, how to open (show) ASP.Net AJAX ModalPopupExtender Modal Popup from Code Behind (Server Side) in ASP.Net using C# and VB.Net.
03 Jul 2015
0 Comments   246 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   339 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   305 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   508 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   418 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   403 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   406 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   343 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   426 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   446 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   540 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   512 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   482 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   447 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   363 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   542 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   425 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   418 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   427 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   499 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   408 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   493 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   414 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   743 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   813 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   643 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   664 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.