30 Jul 2015
0 Comments   19 Views
Here Mudassar Ahmed Khan has explained with an example, how to populate ASP.Net Repeater client side by fetching DataSet or DataTable from server as XML using jQuery AJAX.
Using jQuery AJAX and WebMethod, the records will be fetched using DataSet received as XML string and then the XML string will be used to populate the ASP.Net Repeater on Client Side using jQuery.
30 Jul 2015
0 Comments   56 Views
Here Mudassar Ahmed Khan has explained with an example, how to prevent / disable / hide adding of New Row to DataGridView in Windows Forms (WinForms) Application using C# and VB.Net.
This article will explain two ways to prevent / disable / hide addition (creation) of New Row in DataGridView.
1. Using Properties Window.
2. Using Code.
30 Jul 2015
0 Comments   99 Views
Here Mudassar Ahmed Khan has explained with an example, how to perform Select, Insert, Edit, Update and Delete operations using LINQ to SQL Framework in ASP.Net GridView using C# and VB.Net.
This process is also known as CRUD i.e. Create, Read, Update and Delete in GridView using LINQ to SQL Framework in ASP.Net.
29 Jul 2015
0 Comments   202 Views
Here Mudassar Ahmed Khan has explained with an example, how to perform Select, Insert, Edit, Update and Delete operations using LINQ to SQL Framework in ASP.Net using C# and VB.Net.
This process is also known as CRUD i.e. Create, Read, Update and Delete in GridView using LINQ to SQL Framework in ASP.Net.
29 Jul 2015
0 Comments   182 Views
Here Mudassar Ahmed Khan has explained with an example, how to perform select, insert, edit, update, delete using Entity Framework in ASP.Net GridView using C# and VB.Net.
This process is also known as CRUD i.e. Create, Read, Update and Delete in GridView using Entity Framework in ASP.Net.
29 Jul 2015
0 Comments   200 Views
Here Mudassar Ahmed Khan has explained with an example, how to perform select, insert, edit, update, delete using Entity Framework in ASP.Net using C# and VB.Net.
This process is also known as CRUD i.e. Create, Read, Update and Delete in GridView using Entity Framework in ASP.Net.
28 Jul 2015
0 Comments   268 Views
Here Mudassar Ahmed Khan has explained with an example, how to use trustAsHtml method of $sce service for displaying HTML content using AngularJS.
28 Jul 2015
0 Comments   175 Views
Here Mudassar Ahmed Khan has explained with an example, how to use ngSanitize module to display HTML content in AngularJS.
28 Jul 2015
0 Comments   277 Views
Here Mudassar Ahmed Khan has explained with an example, how to show hide (toggle) HTML DIV on CheckBox click i.e. checked – unchecked or selected – unselected using ng-show and ng-change directives.
27 Jul 2015
0 Comments   345 Views
Here Mudassar Ahmed Khan has explained with an example, how to use the AngularJS to save and retrieve data from HTML5 LocalStorage and SessionStorage objects.
27 Jul 2015
0 Comments   315 Views
Here Mudassar Ahmed Khan has explained with an example, how to Call (Trigger) Button Click event on Enter Key Press in ASP.Net.
There is no server side key press event for an ASP.Net TextBox, hence using a Panel and its Default Button trick we can achieve the same.
26 Jul 2015
0 Comments   390 Views
Here Mudassar Ahmed Khan has explained with an example, how to use populate HTML Select DropDownList with selected option using AngularJS.
26 Jul 2015
0 Comments   289 Views
Here Mudassar Ahmed Khan has explained with an example, how to use AngularJS ng-repeat directive to populate Key Value pairs in HTML Select DropDownList.
26 Jul 2015
0 Comments   301 Views
Here Mudassar Ahmed Khan has explained with an example, how to use AngularJS ng-options directive to populate Key Value pairs in HTML Select DropDownList.
25 Jul 2015
0 Comments   538 Views
Here Mudassar Ahmed Khan has explained with an example, how to create dynamic ASPX Page on the Fly in ASP.Net using C# and VB.Net.
25 Jul 2015
0 Comments   261 Views
Here Mudassar Ahmed Khan has explained with an example, how to populate (fill) DataTable and DataSet using DataReader (SqlDataReader) in C# and VB.Net.
The DataTable and DataSet will be populated with records from the DataReader using Load method of the DataTable.
24 Jul 2015
0 Comments   401 Views
Here Mudassar Ahmed Khan has explained a tutorial with an example, how to use the ASP.Net AJAX Timer control.
The ASP.Net AJAX Timer control will be used to automatically refresh ASP.Net AJAX UpdatePanel at regular intervals.
24 Jul 2015
0 Comments   379 Views
Here Mudassar Ahmed Khan has explained with an example, how to do Partial PostBack using JavaScript in ASP.Net.
Partial PostBack using JavaScript is achieved by making an ASP.Net AJAX UpdatePanel do a Partial PostBack using the following two ways.
1. Using Hidden Button
2. Using __doPostBack
24 Jul 2015
0 Comments   442 Views
Here Mudassar Ahmed Khan has explained with an example, how to delete (Remove) row from GridView on Button (LinkButton) click in ASP.Net using C# and VB.Net.
The GridView Row will be deleted (removed) using CommandField column and it can be displayed as Button as well as LinkButton by setting the ButtonType property to Button or LinkButton respectively.
21 Jul 2015
0 Comments   696 Views
Here Mudassar Ahmed Khan has explained with an example, how to upload file without clicking Submit Button when using the FileUpload control in ASP.Net using C# and VB.Net.
The Submit Button will be hidden and as soon as File is selected using FileUpload control, the Submit Button click event is triggered using JavaScript which will do PostBack and file is uploaded.
21 Jul 2015
1 Comments   582 Views
Here Mudassar Ahmed Khan has explained with an example, what is Globalization and Localization in ASP.Net and the differences between Globalization and Localization in ASP.Net.
20 Jul 2015
0 Comments   705 Views
Here Mudassar Ahmed Khan has explained with an example, how to perform Select, Insert, Update and Delete operations using a single Stored Procedure in SQL Server.
Performing Select, Insert, Update and Delete operations using a single Stored Procedure is supported in SQL Server versions i.e. 2005, 2008, 2008R2, 2012, 2014 or higher.
19 Jul 2015
0 Comments   685 Views
Here Mudassar Ahmed Khan has explained with an example, how to display and change image in Image control based on DropDownList selection in ASP.Net using C# and VB.Net.
When DropDownList selection is changed, the images stored as Binary data will be fetched as BYTE Array and then the BYTE Array will be converted to BASE64 string and then assigned to the ASP.Net image control.
19 Jul 2015
0 Comments   486 Views
Here Mudassar Ahmed Khan has explained with an example, how to load / fill/ populate DataTable from Stored Procedure in ASP.Net using C# and VB.Net.
The records returned from the Stored Procedure will be loaded into the DataTable using ADO.Net SqlDataAdapter in C# and VB.Net
17 Jul 2015
0 Comments   465 Views
Here Mudassar Ahmed Khan has explained with an example, how to bind / fill/ populate DataTable from Database in ASP.Net using C# and VB.Net.
17 Jul 2015
0 Comments   523 Views
Here Mudassar Ahmed Khan has explained with an example, how to display (bind) data from DataTable in GridView in ASP.Net using C# and VB.Net.
15 Jul 2015
0 Comments   625 Views
Here Mudassar Ahmed Khan has explained with an example, how to get count (number) of rows in HTML Table using JavaScript and jQuery.
This article will explain how to get the total count of the number of rows in HTML Table and also how to get the count of the number of all rows except the First (Header) row in HTML Table using JavaScript and jQuery.
15 Jul 2015
0 Comments   506 Views
Here Mudassar Ahmed Khan has explained with an example, how to get count (number) of rows in ASP.Net GridView using jQuery.
This article will explain how to get the total count of the number of rows in ASP.Net GridView and also how to get the count of the number of all rows except the First (Header) row in ASP.Net GridView using jQuery.
15 Jul 2015
0 Comments   441 Views
Here Mudassar Ahmed Khan has explained with an example, how to get count (number) of rows in ASP.Net GridView using JavaScript.
This article will explain how to get the total count of the number of rows in ASP.Net GridView and also how to get the count of the number of all rows except the First (Header) row in ASP.Net GridView using JavaScript.
14 Jul 2015
0 Comments   721 Views
Here Mudassar Ahmed Khan has explained with an example, how to use IF ELSE condition in BoundField column in ASP.Net GridView using C# and VB.Net.
IF ELSE statement is not supported in BoundField column in ASP.Net GridView, hence RowDataBound event of GridView is used to serve the purpose.
14 Jul 2015
0 Comments   665 Views
Here Mudassar Ahmed Khan has explained with an example, how to use IF ELSE condition in TemplateField (ItemTemplate) column in ASP.Net GridView using C# and VB.Net.
IF ELSE statement is not supported in TemplateField (ItemTemplate) column in ASP.Net GridView, but using Inline Expressions, a simple IF ELSE condition can be used in TemplateField (ItemTemplate) column in ASP.Net GridView.
14 Jul 2015
0 Comments   407 Views
Here Mudassar Ahmed Khan has explained with an example, how to assign (set) result value of EXEC function to Variable in SQL Server.
The capturing and assigning result value from EXEC function to a variable is supported in SQL Server versions i.e. 2000, 2005, 2008, 2008R2, 2012, 2014 or higher.
14 Jul 2015
0 Comments   537 Views
Here Mudassar Ahmed Khan has explained with an example, how to use IF ELSE condition with EVAL function in ASP.Net controls such as GridView, DetailsView, DataList, Repeater, etc. using C# and VB.Net.
13 Jul 2015
0 Comments   804 Views
Here Mudassar Ahmed Khan has explained with an example, how to display the details of the GridView Row in JavaScript alert message box when the Button inside the GridView Row is clicked in ASP.Net using C# and VB.Net.
13 Jul 2015
0 Comments   389 Views
Here Mudassar Ahmed Khan has explained with an example, the similarities and differences between LEN and DATALENGTH functions in SQL Server.
Both LEN and DATALENGTH functions as the name suggest are used to determine lengths, though they have some similarities they are still different from each other and have their own specific usage.
This article is applicable to SQL Server versions 2005, 2008, 2008R2, 2012, 2014 and higher.