Category - ASP.Net
Results 161 - 170 of 646
31 Aug 2013
1 Comments   10598 Views
Here Mudassar Ahmed Khan has explained with example how to use ASP.Net CustomValidator OnServerValidate Event and perform validation Server Side in ASP.Net using C# and VB.Net.
In this example I will validate TextBox data and make sure that the entered text is strictly numeric i.e. only numbers using ASP.Net Custom Validator and its OnServerValidate Server Side Event.
31 Aug 2013
0 Comments   6831 Views
Here Mudassar Ahmed Khan has explained how to use ASP.Net XmlDataSource control and populate results from XML file and bind it to ASP.Net GridView Control.
29 Aug 2013
1 Comments   6321 Views
Here Mudassar Ahmed Khan has explained how to use ASP.Net XmlDataSource control and populate results from XML file and bind it to ASP.Net GridView Control.

This article also explains how to filter results from XmlDataSource using XPath Query at runtime in two ways
1. Filtering XmlDataSource based on data in XML Tag.
2. Filtering XmlDataSource based on data in XML Attribute.
27 Aug 2013
0 Comments   6354 Views
Here Mudassar Ahmed Khan has explained, how to clear (reset) the selected date of AJAX Control Toolkit CalendarExtender control in ASP.Net using JavaScript through Client Side scripting.
25 Aug 2013
3 Comments   36456 Views
Here Mudassar Ahmed Khan has explained, how to dynamically add BoundField and TemplateField column to GridView in ASP.Net using C# and VB.Net.

Dynamic BoundField and TemplateField columns will be created and then added to GridView after that the GridView will be populated from database. At runtime using the OnRowDataBound event of GridView, controls like TextBox, Button, etc. will be added to the Dynamic TemplateField columns.

This article also covers the problem of dynamic columns disappearing on PostBack and describes the necessary solution to retain the dynamic columns on PostBack.

Finally this article explains how to handle click events of dynamic Button, LinkButton or ImageButton that will be added to the dynamic TemplateField columns and also explains how to fetch values from the dynamic BoundField and TemplateField columns when thee Buttons are clicked.
24 Aug 2013
0 Comments   16336 Views
Here Mudassar Ahmed Khan has explained, how to add Meta Tags in Master Page, Child Content Pages (ASPX).

The Title and Meta Tags like Keywords from and Description are dynamically populated from database and programmatically added to head section of the Master Page in ASP.Net.
21 Aug 2013
1 Comments   6888 Views
Here Mudassar Ahmed Khan has explained, explain how to create and delete folder or directory in ASP.Net using C# and VB.Net. On many occasions we have requirement to create and delete folder or directory in ASP.Net Website Root Folder or Directory thus this article explains how we can achieve the same.

This article also covers the precautions to be taken while creating or deleting delete folder or directory in ASP.Net such as check whether the Folder (Directory) to be created exists, if yes then it cannot be recreated and a notification is displayed to the user. Same way if the Folder (Directory) to be deleted does not exists, if yes then it cannot be deleted and a notification is displayed to the user.
21 Aug 2013
0 Comments   13970 Views
Here Mudassar Ahmed Khan has explained, how to dynamically create DataTable and bind to GridView in ASP.Net using C# and VB.Net
21 Aug 2013
1 Comments   13501 Views
Here Mudassar Ahmed Khan has explained, how to change TextBox Background color on Focus CSS and without any JavaScript or jQuery i.e. Highlight TextBox on focus using CSS and without any JavaScript or jQuery and set it back to default on blur
20 Aug 2013
6 Comments   29349 Views
Here Mudassar Ahmed Khan has explained how to use / apply / set / enable / implement paging in Repeater control in ASP.Net.

Repeater control by default does not have paging (pagination) enabled hence we need to write custom stored procedure as well as developer a custom pager control in order to use / apply / set / enable / implement paging in Repeater control in ASP.Net