Category - ASP.Net
Results 1 - 10 of 650
31 Jul 2014
0 Comments   194 Views
Here Mudassar Ahmed Khan has explained how to solve the problem of RequiredFieldValidator not working when OnCientClick event is added to the Button in ASP.Net.

Thus in order to make the RequiredFieldValidator work with OnClientClick we need to make use of Page_ClientValidate JavaScript function of ASP.Net Validators to perform validation explicitly.
29 Jul 2014
0 Comments   482 Views
Here Mudassar Ahmed Khan has explained how to populate (bind) TreeView control with Nodes having Parent Child relationship from database in ASP.Net using C# and VB.Net.

The TreeView will be populated using recursion.
27 Jul 2014
0 Comments   517 Views
Here Mudassar Ahmed Khan has explained how to find and access a control such as TextBox, Button, DropDownList, RadioButton, etc. placed inside a UserControl or in other words WebUserControl (ASCX) from Parent Page (ASPX) using JavaScript in ASP.Net.

When a Control is placed inside a UserControl its ID changes when it is rendered as an HTML element and hence we need to first find the control and then determine its ClientID in order to access the control using JavaScript.
27 Jul 2014
0 Comments   402 Views
Here Mudassar Ahmed Khan has explained how to use and access Session variables in Generic Handler in ASP.Net using C# and VB.Net.

By default Session is disabled inside the Generic handler and hence in order to use and access Session variables we need to inherit the IRequiresSessionState interface.
23 Jul 2014
0 Comments   901 Views
Here Mudassar Ahmed Khan has explained how to login with Google Plus Account API in ASP.Net Website using C# and VB.Net by making use of the free ASPSnippets.GoogleAPI.

After the account is verified, the user’s Google Plus Profile details such as Google Plus Profile ID, Google Plus Profile Image, Name, Email Address and Gender are fetched and displayed in the website.
18 Jul 2014
0 Comments   692 Views
Here Mudassar Ahmed Khan how to show loading progress indicator using GIF Image when ASP.Net AJAX UpdatePanel is updating or when ASP.Net AJAX UpdatePanel is doing PostBack.
15 Jul 2014
0 Comments   1074 Views
Here Mudassar Ahmed Khan has explained how to bind (load) GridView asynchronously after Page Load is completed using ASP.Net AJAX UpdatePanel and Timer control in ASP.Net.
15 Jul 2014
0 Comments   415 Views
Here Mudassar Ahmed Khan has shared the following Regular Expressions (Regex) for validating decimal numbers in TextBox.

1. Regular Expressions (Regex) to allow both decimals as wells as integers numbers.
2. Regular Expressions (Regex) to allow any decimal number starting from 1 upto N decimal places.
14 Jul 2014
0 Comments   569 Views
Here Mudassar Ahmed Khan has shared the following Regular Expressions (Regex) for validating decimal numbers in TextBox.

1. Regular Expressions (Regex) to match number with decimal precision of exact 1 decimal place.
2. Regular Expressions (Regex) to match number with decimal precision of exact 2 decimal places.
3. Regular Expressions (Regex) to match number with decimal precision of upto 2 decimal places.
11 Jul 2014
1 Comments   834 Views
Here Mudassar Ahmed Khan has explained the different (<% %>) Embedded code blocks and its use in ASP.Net.