Category - ASP.Net
Results 161 - 170 of 585
30 Jun 2013
0 Comments   4558 Views
Here Mudassar Ahmed Khan has explained with an example and attached sample code, how to check or uncheck all checkbox or checkboxes in GridView using JavaScript in ASP.Net.
The check and uncheck of Checkboxes us controlled from Header Row CheckBox, when Header CheckBox is checked all the CheckBoxes are selected and when unchecked then all the CheckBoxes are unselected or deselected using JavaScript
29 Jun 2013
0 Comments   8286 Views
Here Mudassar Ahmed Khan has explained with an example and attached sample code, how to make use of ASP.Net AJAX Control Toolkit CascadingDropDown control in ASP.Net Website.

Three AJAX Cascading Dropdowns along with the three corresponding ASP.Net DropDownLists will be populated from SQL Server database with values of Country State City using Web Service and Web Methods.

On Page Load list of Countries is populated, when Country is selected, the list of States will be populated, and when a State is chosen list of Cities will be populated, thus at the end we get a Country, State and City Cascading DropDownLists implemented using ASP.Net AJAX CascadingDropDown control and SQL Server database.

Finally the article also explains how to access the values of the ASP.Net AJAX CascadingDropDown DropDownList Server Side on button click.
28 Jun 2013
0 Comments   16522 Views
Here Mudassar Ahmed Khan has explained with an example and attached sample code, how to filter GridView records using TextBox in ASP.Net. To accomplish the task I have made use of SqlDataSource with FilterExpression along with FilterParameters to filter records and bind the ASP.Net GridView control.
The TextBox will be specified as ControlParameter in the SqlDataSource FilterParameters, so that when text or value is entered in the TextBox and the Search Button is clicked, it will filter the GridView Records based on Starts with LIKE Search.
28 Jun 2013
1 Comments   9765 Views
Here Mudassar Ahmed Khan has explained with an example and attached sample code, how to make use of SqlDataSource FilterExpression with FilterParameters to filter records in ASP.Net GridView control. In order to filter the GridView records, I am making use of a DropDownList control that will be used to select the filter records in GridView. The DropDownList will be specified as ControlParameter in the SqlDataSource FilterParameters, so that when a Value is selected in the DropDownList it will filter the GridView Records.
28 Jun 2013
1 Comments   8907 Views
Here Mudassar Ahmed Khan has explained with an example and attached sample code, how to merge GridView Header Column Cells by adding an additional Header Row, thus grouping Multiple GridView Columns under Single Column in ASP.Net.
The above change results in a GridView with multiple header rows, one with the grouped header fields and other with the actual GridView fields.
27 Jun 2013
0 Comments   2445 Views
Here Mudassar Ahmed Khan has explained with an example and attached sample code, how to highlight GridView Row when clicked.
Here using jQuery and JavaScript, a client side click event handler is attached to the GridView Row and when the row is clicked its background color is changed so that it looks highlighted.
27 Jun 2013
0 Comments   2389 Views
Here Mudassar Ahmed Khan has explained with an example and attached sample code, how to Highlight GridView Row when the GridView Row is Selected using Select Command Button.
When the Select Command Button is clicked, the Background color of the Selected Row is changed thus making it look Highlighted.
27 Jun 2013
0 Comments   18774 Views
In this article it has been explained how to dynamically generate add a new Row in GridView with TextBoxes when clicking a Button that is residing inside a GridView Footer in ASP.Net
27 Jun 2013
0 Comments   7742 Views
Here Mudassar Ahmed Khan has explained with an example and attached sample code, how to select ASP.Net GridView Row without using Select Command button. The concept is that instead of using Button, LinkButton or ImageButton for triggering Select Command and selecting the GridView Row, we would attach click OnSelectedIndexChanged event handler to the GridView Row using the OnRowDataBound event handler, this makes the GridView Row clickable and when it is clicked the Row is selected.
27 Jun 2013
0 Comments   8538 Views
Here Mudassar Ahmed Khan has explained with an example and attached sample code, how to set or change the Background Color of the Selected Row of ASP.Net GridView programmatically. When the Select Command Button is clicked on the OnSelectedIndexChanged event of the GridView the Background Color of the Selected Row is changed.