Click here to Skip to main content
14,302,993 members

ASP.NET

Great Reads

by Graeme_Grant
Working with simple JSON objects & collections to Custom Converters and Transformations into .Net classes.
by Steve Krile
Fully AJAX-enabled user control used to select names from a database in a drop-down format.
by Jeremy Likness
Wisej is a powerful platform that abstracts away the nuances of client/server interactions while embracing all the web has to offer, including third-party HTML5-based solutions, it is the perfect tool for building enterprise web applications.
by Arthur V. Ratz
In this article we'll demonstrate the implementation of k-means clustering algorithm to produce recommendations.

Latest Articles

by Shweta Lodha
In this article, we will see how to utilize docker for ASP.NET Core application.
by Sean Ewington
Web development beginner tutorials. A compilation of web development tutorials that serve as a beginner's walk to web development
by Michael Gledhill
A cheatsheet for getting your Web APIs up and running as quickly and painlessly as possible
by Igor Krupitsky
This application shows how to search Windows Index in ASP.NET.

All Articles

Sort by Score

ASP.NET 

23 Aug 2012
Vitaly Tomilov
Simplest and quickest way to automatically bind array of image bytes to asp:Image object.
21 Jul 2014
Cristian Moldovan
1 alternative  
jQuery unobtrusive validation plugin with Twitter Bootstrap 3 showing error messages as tooltips.
3 Nov 2013
Hovhannes Bantikyan
This is a simple infinite scroll with Ajax post and JSON. Have fun :)
16 Jun 2011
Wonde Tadesse
The other option will be to use Update Panel ASP.NET control as much as possible. It helps to retain the current position on the page whenever a postback happens to the page.
15 Jul 2017
dsuryd
SignalR is great for building real-time web functionality. MVVM is great for developing your front-end. What if they can be used together? This tip will show how to do just that, using as example a simple project to do live chart on a web browser.
1 Oct 2013
Erika Chinchio
In this article I will explain how to automate the process of downloading files with the open/save dialog box, protected by authentication.
6 Aug 2011
Sunasara Imdadhusen
MVC Logging series
4 Apr 2015
Jean Carlo S. Passos
CRUD over Association Entity that maps to association tables
22 Oct 2014
Mathew Soji
This tip guides through implementing a basic REST based Web API service with multiple GET methods and its consumption using JQuery client
3 Dec 2013
bbirajdar
How to embed an image in email body
29 Nov 2017
Danny Chu
Learn how to detect if client has JavaScript enabled or disabled at your backend webserver
2 Jan 2013
Sergey Alexandrovich Kryukov
How to abate the CodeProject spam crisis.
11 Jun 2016
TheForceIsSharp
ASP.NET Core Web API, Multiple Get or Post methods with single controller
12 Jan 2019
akshay_zz
This article will provide you the alternative way to navigate page in a crystal report viewer, as default paging looks broken
29 Mar 2011
Sunasara Imdadhusen
4 alternatives  
Load all the Country Names of the World in DropDown
19 Jul 2013
Mannava Siva Aditya
Uploading a file and creating a Zip file in ASP.NET with C#.
10 Feb 2014
harleydk
Image Orientation of Images Uploaded via ASP.NET fileupload Control
14 Sep 2014
Afzaal Ahmad Zeeshan
How to use the keyboard events of the user and use them to dynamically change the User Interface or to perform some actions
11 Jan 2015
Muhammad Hassan Tariq
Glimpse Extension for server side debugging and diagnostic information of ASP.NET applications
8 Feb 2011
OriginalGriff
When I add a log reader, the size of the log can be huge, and get very slow to view. This makes the GridView do all the work of paging the data for you.
8 Dec 2011
thatraja
Error Message:Crystal Report - Load Report FailedThis error occurs in the following scenarios.Permission issueThe application must have access to the Temp folder. You have two choices to solve this (Choose any one).How to Assign Permissions for the Windows Temporary Folder on the Web...
16 Dec 2013
Amey K Bhatkar
How to create TreeView in MVC
16 Jan 2014
Tom Glick Philadelphia, US
POC to demonstrate passing of collections of complex objects to ASP.NET Web API Controllers.
9 Apr 2015
Royston Malcomber
Setting up Google reCaptcha version 2 with MVC5
15 Jun 2011
PSK_
1 alternative  
How to maintain scroll position of a long page with vertical scrollbar in browser other than IE.
22 Oct 2014
Kalvin Lawrence Ernst
Generate a web app instantly, directly from a database(SQL Server)
7 Jun 2017
Gunaprasad Shetty
1 alternative  
The tip provides you the code for implementing Search in your gridview using Jquery.
26 Feb 2015
Shridhar Gowda
This tip will explain how to sort a table / GridView on an ASP.NET or MVC(AngularJs) application. I am demonstrating both client side and server side sorting. I am sure you will have a great knowledge on this topic after reading it.
18 Nov 2016
winsonet
Create and download the file with Ajax call in ASP.NET MVC
3 Oct 2016
Shamim Uddin
In this tip, we will learn how to return list of custom type (JSON) data using ASP.NET Web API.
29 Jul 2011
Monjurul Habib
Specific directories rather than entire application: For individual uploader:int maxSize = 2097151;if (FileUpload1.HasFile &&...
27 Dec 2011
Nigam Patel
Here is a really simple code for a numeric text box and it will work in all browsers. Only works for web applications. function CheckNumeric(e) { if (window.event) //...
4 Jan 2012
thatraja
Check this jQuery alternativejqlog - A logging framework plugin for jQuery[^]
15 Nov 2014
Member 3531622
Create a Rules Engine in less than 50 lines of code which is extremely powerful, extensible and adaptable
30 Nov 2015
Mohammad Dayyan, VahidJafari
A library for creating .Net Serializable Expressions to send via WCF services
16 Aug 2011
Damian Flynn
Here's a couple of gems...From IList to DataTable.From DataTable to array of T.// DataTable: from IListpublic static DataTable ToDataTable(this IList iList){ DataTable dataTable = new DataTable(); PropertyDescriptorCollection propertyDescriptorCollection = ...
18 Sep 2011
Monjurul Habib
How to add namespaces for Razor pages
13 Jul 2012
Manas Bhardwaj
How to access the variables/properties from C# in JavaScript?
17 Aug 2013
Prince Tegaton
Building a Custom User Control for Messagebox
25 Mar 2014
Saineshwar Bageri
I am going to resolve Issue of Font Displaying Box or Junk While Exporting Crystal report.
25 Dec 2014
Prince Tegaton
This entails how to easily add mobile website feature to your ASP.NET website/app
15 Jul 2017
dsuryd
Application of "MVVM over SignalR" library described in a previous CodeProject tip, combined with Dynamic LINQ library to do incremental web search by typing the query
2 Jul 2014
Chakravarthi Elchuri
Display data in Multi nested gridview using C# in ASP.NET
12 Oct 2010
Ahsan Murshed
Single Sign on (SSO) Using Cookie in asp.netThere are various ways to use Single Sign on(SSO) in asp.net web application. We can use cookies, session (state server), SAML and web services etc. Now we would like to give a brief overview of how to use cookie to implement Single Sign on(SSO) in...
14 May 2010
Magnus_
public static void RemoveSelected(this ListControl source){ foreach (var item in source.Items.Cast().Where(li => li.Selected).ToList()) source.Items.Remove(item);}protected void btnRemove_Click(object sender, EventArgs e){ lstCity.RemoveSelected();}
5 Aug 2010
Vinayaka Krishna Shenoy
1 alternative  
Probable leak while using SqlDataReader in ADO.NET
19 Oct 2010
Ziv Nitzan
There is also a Visual Studio extention called CodeMaid that has a lot of cleaning options http://bit.ly/diMTaR
22 Jul 2011
Muthu Nadar
You can set the default button on your form tag as below code.ORyou can set the default button on a panel as below.And you can place your...
6 Nov 2011
M I developer
Try catch block around "A potentially dangerous Request.Form"
16 Mar 2012
UberGeoff
This tip explains how to display a jQuery modal pop-up message using server side events.
1 May 2013
Nasser Malik
Split comma separated IDs to get batch of records through Stored Procedure.
18 Jul 2013
Mannava Siva Aditya
Uploading multiple files and creating a Zip file in ASP.NET with C#.
16 Aug 2013
Moudud Hassan
Fix to COM component retrieving error:80040154 in web application running in IIS
6 Nov 2013
VICK
This simple Tip/Trick is focused on providing a simple and cross browser compatible solutio.
14 Nov 2013
Ahmed Alaa El-Din
Useful and simple tutorial to add Amazon SES service inside your ASP.NET web application in order to send bulk-emails better and faster.
24 Dec 2013
Sitang Ruan
How to display a spinner with disabled background when doing postback or Ajax call
25 Mar 2014
Karthik Chintala
The tip just gives a brief on what iterators are in C#
14 Apr 2014
Maninder Singh Puhi
Appropriate query to fetch required no of results from DB instead of getting all at on time for binding controls like Gridview, listview etc
28 May 2014
Debabrata_Das
In this tip, we are going to create a project to see how many-to-many relationship can be implemented in ASP.NET.
13 Jun 2014
Terrence Sheflin
Optimizing ASP.NET MVC HTTP responses to remove unnecessary and possibly dangerous information when using IIS
19 Mar 2015
Hrvoje Batrnek
Easy and seamless caching implementation of any virtual method in any class
21 Mar 2015
Amit Singh Baghel
A useful tip to export a Div to PDF (with Unicode support) with the help of NReco-PDF Generator for .NET (C#), JQuery and Handler in ASP.NET
28 Apr 2015
Hassan Alrehamy
JSON Deserialization in depth concept and Dictionary mapping. Special Thanks to Dr. Coral Walker
20 Dec 2015
ryanba29
This is a multi day project using ASP.NET Web API for the server and WPF MVVM for the client.
30 Dec 2015
ryanba29
First Draft. This is day three of a multi day project using ASP.NET Web API for the server and WPF MVVM for the client.
28 Dec 2015
Dhruti90
MVC functionalities with web service with simple integration
21 Jun 2017
M.M.Mohseni
In this sample code, we are going to upload a file via a web method asynchronously.
2 Nov 2017
Silvia Campo
How to configure Swagger for web services using token authentication
14 Feb 2018
Apurba pan
Creating dynamic object from XML using ExpandoObject and put Intellisense using C#
27 Dec 2018
Alessio Aronica
Generate forms from MVC models in one simple line of code
18 May 2012
deeptibansal
Adding event to Microsoft Outlook through Web Application
5 Aug 2010
Vinayaka Krishna Shenoy
Setting the best value for Application pool Queue length limit
26 Dec 2010
#realJSOP
Can't you just call Enum.GetNames(), and then bind to the collection returned by that method?
7 Jan 2011
OriginalGriff
2 alternatives  
Supporting Development and Release web.config in ASP.NET
20 Mar 2011
Adel Refaat
DotNetNuke Resources keys
30 Mar 2011
thatraja
DescriptionW...
12 Jul 2011
RaisKazi
Walkthrough of Asp.Net Core Ajax
27 Jun 2012
Technoses
The above code will slow down the browser and the browser can hang when Rows in Grid will be 10000 or above.Please view the below suggestion:CS Codeprotected void grvGroups_RowDataBound(object sender, GridViewRowEventArgs e){ if (e.Row.RowType == DataControlRowType.DataRow) { ...
17 Apr 2012
abhinavshastri
How to Call WebService Dynamically and Read WebService Definition
16 Jul 2012
StianSandberg
Make sure your website with and without www redirects to the same page.
13 Sep 2012
mparvez
An open-source free Flash charting component that can be used to render data-driven animated charts.
1 Feb 2013
S. M. Ahasan Habib
.NET TransactionScope and its default Transaction Isolation level issue.
2 Jul 2013
Abhimanyu vij
How to send an email with app setting in the web config file.
4 Jul 2013
sumit_kapadia
Create and Bind gridview at client side with Jquery Template and ajax in asp.net
2 Aug 2013
Zhuyun Dai
Introduce how to recover IIS when it is broken by bad editing to applicationHost.config
8 Nov 2018
Nikfazan
This article shows how you can easily make hyperlinks for exploring a folder on server and its sub-directories and downloading the files, using ASP.NET Core MVC.
17 Dec 2013
Adittya Gupta
Table Value Parameters in SQL Server 2008 with ASP.NET.
2 Apr 2014
Mishra Sourabh
This tip explains how to submit your form with HTML content in MVC.
30 May 2014
Thang Believe
Deep dive into cookies generation to support Remember Me at login
29 Jun 2014
PSK_
Unit testing the MVC controller actions which are using Global or Local resources. As this is not straight forward to Mock the static properties of the resource files.
10 Oct 2014
Gerardo Recinto
Virtualization of RAM & Disk for high-speed, low-footprint & scalable data caching
21 Nov 2014
ManojKumar19
Learn how to configure dynamic compression in IIS 7.5 to improve performance
9 Jan 2015
Er. Puneet Goel
This tip implements the TreeView like DropDownList with Search Functionality using Telerik Kendo.
4 Feb 2015
Md. Shariful Islam (Adil)
Alignment and sorting icon in WebGrid header
6 Feb 2015
Miller Nguyen
This article will show you how to implement a complete solution of electronic signature by using HTML5 canvas in ASP.NET (VB).
13 Apr 2015
JIANGWilliam
This article discusses some potential pitfalls with Telerik based automation test development.
23 Nov 2015
Anil Sharma1983
Postback event not working colorbox in ASP.NET
26 Jan 2016
yehia2amer
This method will use jQuery Ajax to POST and GET Handsontable JSON data from/to Controller in ASP.NET MVC.
28 Oct 2016
Deepraj Thuraka
Tweaking of the Bouncy Castle library to make it work with SecP128r1 curve1251
10 Mar 2017
Sujeet Bhujbal
 In this article, I will tell you how to create a cross-browser session expiration popup box using jQuery easily
18 Dec 2018
Brady Kelly
How to deserialize objects from a web application"s config file
6 Jul 2017
Atlapure Ambrish
Solution to disable request validation for single control - clean approach and without much effort
27 Feb 2010
Sandeep Mewara
This is an easy way to clear all input fields in the form.
8 Jun 2010
Abhijit Jana
Get list of all active HttpMoudles in ASP.NET
5 Aug 2010
Vinayaka Krishna Shenoy
.Net memory tuning
6 Aug 2010
Vinayaka Krishna Shenoy
Scaling options for ASP.NET Sessions
20 Aug 2010
Steve Maier
Microsoft has posted some posters that can be printed out with this information in table form for each language. The newest ones are for VS2010, but they have others as well.VS2010 Keyboard Shortcuts for C# VB C++ F#[^]
26 Oct 2010
Ludmal de silva
This is a Gmail style user message control I have written and its part of the XWT Toolkit.
19 Dec 2010
PIEBALDconsult
How about loading it into an XmlDocument and getting the InnerText? (Provided the HTML is well-formed XML, of course.)
21 Dec 2010
JHoye
Consider using the open source HTML Agility Pack library (htmlagilitypack.codeplex.com).It lets you use XPATH queries to access very specific parts of an HMTL document, and the HTML does not have to be valid, well-formed XML. In addition to accessing the raw inner text of an element you can...
3 Feb 2011
_impostor_
Initializing is great... unless you have no control over the contents.Consider this:String strTmp = String.Empty;strTmp = SomeRandomMethod();//Suppose SomeRandomMethod returns null under some circumstances...Now anything you try to do with strTmp (other than compare to null) will...
16 Jul 2011
tsdragon
Application[“P...
11 Sep 2011
brunofer2007
Easy way to sort nodes in a TreeView using a recursive function.
17 Dec 2012
AshishChaudha
This article discusses a simple way of rearranging the ASP.NET ListView Items using JavaScript.
18 Jul 2013
Mehul M Thakkar
Compare Validator is not working with latest jQuery lib while using with ViewModel in MVC
1 Jan 2013
Hasham Ahmad
How to submit a new blog post in WordPress using ASP.NET
19 Apr 2013
Amogh Natu
This tip discusses the method to allow the uploading of large size files in ASP.NET
18 Jul 2013
ketan italiya
A quick overview of some of the most frequently used features of the GridView control.
26 Jul 2013
Mannava Siva Aditya
Reading XML data into a DataTable.
26 Nov 2013
Dusara Maulik
Error notification service which helps make application more error free
30 Dec 2013
Afazal MD 3104209
VC 4 Display Mode. Different view selected based on Desktop or Mobile browser request
17 Jun 2014
Mahdi Ataollahi
Implementing Microsoft.AspNet.SignalR 2 and Microsoft.AspNet.SignalR.Client 2 in Silverlight
24 Nov 2014
Dushmantha Baranige
HTTP respond data content length compression in MVC web application by an ActionFilter attribute to improve performance in web requests.
26 Nov 2014
Faisal Jawaid
This tip will address the issue of expiring the page when browser buttons are used for navigation of application.
4 Feb 2015
Richard Roe
Example to show how to update an ASP.NET GridView control using Ajax JQuery client side script
14 Mar 2015
Aman Thakur
The tip explains how to make recurring payments using the Stored Credit Cards in the Paypal Vault.
27 Mar 2015
Muhammad Rashed Otahbashi
How to implement Drag and drop files and Images feature in ASP.NET MVC App
10 Oct 2016
Jatinath
This tip will help developers to generate DrillDown chart using HighChart and ASP.NET
7 Nov 2015
mnguyen88
This is an alternative for "Using the jQuery unobtrusive validator with Twitter Bootstrap tooltips"
23 Nov 2015
Anil Sharma1983
Internet Explorer 8/9 jsonresult method treats response as downloadable json result
27 Dec 2015
MarcusCole6833
A basic way to make a grid of Pictures
14 Apr 2010
marc9889
2 alternatives  
This is an example of one way to parse an HTML document by using a recursive function. In this example, an html document is loaded from a text file, but the code also demonstrates (in remarks) using a web page as a source file.When the recursive function is called, a conditional statement...
14 Apr 2010
Martin Jarvis
Whilst uploading a large (70MB) file to an IIS 7 website I got a 404 error….which was odd, uploading a file in a postback shouldn’t give me that. I know that file exists!On further investigation it turns out it was actually a 404.13 error from the Request Filtering feature of the Integrated...
23 Aug 2010
Vinayaka Krishna Shenoy
Best Strategy for deploying ASP.NET application and application Pool
18 Apr 2011
nit_singh
2 alternatives  
This is an example to make a "Select All" check box using JQuey
1 Aug 2011
Keith Barrow
3 alternatives  
When running an ASP.NET application under 64-bit Win7/2008 you get jet 4.0 not registered error
13 Aug 2011
Vano Maisuradze
Very nice!I've modified ToCollection(this DataTable dt) extension function, so if DataTable column names and class property names are different, then you can use this alternative:public static List ToCollection(this DataTable table, Dictionary dic){ List lst = new...
10 Oct 2011
Gregory Gadow
Configure your IIS site to serve custom error pages for all your file types: .html, .aspx, .pdf, whatever.
24 Oct 2011
AlexCode
1 alternative  
Adding support for IHttpHandler on ASP.NET Routing
10 Nov 2011
#realJSOP
How about this?public static class ExtendDateTime{ public int CountWeekDays(this DateTime thisdate, DateTime thatDate) { int days = Math.Abs((thisDate - thatDate).Days) + 1; return = ((days/7) * 5) + (days % 7); }}Usage would be like this:DateTime...
9 Mar 2012
Rahul Rajat Singh
How to prevent Leeching of resources like images and documents from our website.
11 Mar 2012
SERokon
Increase debugging idle time in visual studio configuring IIS
17 Apr 2012
RobertDinaro
GridView paging takes two clicks (solved).
7 Jun 2012
AmitGajjar
An efficient extended search API to search from a text file.
28 Feb 2013
David Zenou
Simple and easy to use jQuery matrix 2D.
25 Sep 2012
Pablo Oropin
This article aims to explains how to implement functions to deliver data via HTTP POST or HTTP GET in ASP.NET to an specified link.
3 Oct 2012
Nilesh Patil Kolhapur
How to solve web service call failed error
17 Dec 2012
AshishChaudha
This tip describes the working of DetailsView for inserting a new record, updating and deleting the existing details of the user.
18 Feb 2013
S. M. Ahasan Habib
.NET exe file run inside asp.net and catch exception from .exe.
21 Feb 2013
mimtiyaz
Insert and bind records from a dropdownlist using AJAX UpdatePanel
21 Jun 2013
Chirag B
ASP.NET page events not firing.
29 Apr 2013
ChienVH
This article will show you how to implement Asp.Net membership into a new database
1 May 2013
Abhishek Kumar Goswami
This helps to make a visible date field in Chrome native datepicker while it will bind from the Model in ASP.NET MVC 4.
9 May 2013
Bibhu Dutta
The tip describes about the IController interface and the ControllerBase class.
16 May 2013
ortund
Allow purchases via PayPal on your website
15 May 2013
Manikandan Sekar
Loading Data from Excel
18 Jul 2013
Mehul M Thakkar
Dynamic version number in query string of file reference in link tag for CSS
4 Aug 2013
S.Sathik Ali
This tip contains the basic introduction to the JSONP, Same-Origin and Cross-Origin Resource Sharing concepts and quick get started with JSONP in ASP.NET Web API.
9 Sep 2013
Praveen Maniyath
A SOAP WebService communication sample.
10 Sep 2013
josh-jw
This tip will give you a better idea of how to setup a KoGrid in Knockout.js.
17 Nov 2013
Hazem Torab
Generate reasonable sample data for you GridView without using databases.
6 Mar 2014
Adel Refaat
A SharePoint WebPart that hosts Razor files (.cshtml, .vbhtml)
8 Mar 2014
SanSkun
How to bind holiday list and information about those holidays from database
21 Mar 2014
Super Lloyd
Some ideas to bring LINQ goodness to JavaScript array
13 Apr 2014
Edson_Ferreira
This tip will demonstrate how to create a SPA using an MVC Application, AJAX and History.js
14 Apr 2014
Arjun Singh Faguda
How to call cross domain Webserver(asmx) service from jquery and bind the Json result with Jqgrid
25 Apr 2014
Frankxcid
Class that allows you to programmatically create an Open XML Excel spreadsheet
3 Jul 2014
Narotam Gediya
How to create an internet shortcut
31 Dec 2014
Praveen_Kumar Gupta
Manage Unique page id for sessions on each browser tab
19 Jan 2015
Thinira
In this tip, we discuss how to pass report parameters from web page to Telerik report programmatically.
20 Jan 2015
bitzblitz
A way to manage Website settings in a web farm environment
16 Feb 2015
Bajirao_
Are you facing Issues on mobile device debugging? Try this and debug site on mobile.
8 Sep 2015
Rojalin Sahoo
Register Itemtemplate control of Gridview inside UpdatePanel to trigger collection for whole page postback
11 Sep 2015
Rohit Nanda
The easiest way to send form data to Google Docs/Spreadsheet from your web page, using your own form and AJAX. Nowadays, Google Docs/Drive is a widely used service for data storage and documents sharing.
25 Nov 2015
Firnas
An easy way to implement jQuery Datatables server-side pagination in ASP.NET MVC with Entity Framework
20 Dec 2015
JoaoSousa23
This article walks you through the steps for create a report in Excel using EPPlus (ExcelPackage)
1 Mar 2016
Yogesh Jamkhindikar
This tip will help you achieve a graceful termination of your spawned threads in your ASP.NET application.
1 Jul 2016
Vincent Maverick Durano
A quick example on how to implement GridView row highlighting and retain selected row on postbacks.
5 Jul 2016
senthill
This article describes how to create deployment package for sharepoint 2013 project using using visual studio
29 Jul 2016
Akshay Dangore
Validate ASP.NET Fileupload control file type and size by using jQuery validation
13 Feb 2017
Mike Hankey
Highlighting the current menu item in MVC using the MvcSiteMapProvider turned out to be somewhat of a challenge but with a little head scratching and several cups of coffee, this is what emerged.
16 Mar 2017
Robert Bettinelli
Easy JSON Recursion in VB.NET with nested levels
29 Sep 2017
Kannan Ar
Implement an online HTML to Word converter using CKEditor and MariGold.OpenXHTML
9 Feb 2018
Ivan Yakimov
In this short article, I'll describe how to configure JSON serializer error handling differently for each request.
29 Jan 2010
CARPETBURNER
Are you too lazy to do a proper tip or a proper article?
20 Apr 2010
e.bonavero-miller
1 alternative  
Not much on this one that was helpful so I thought I'd put what worked for me.Cntrl + Alt + Del > Processes > end all iexplore.exe and WebDev.WebServer.exe processes.Since devs generally debug with the dev webserver end those processes first and retest. Although iexplore handles stay...
18 Sep 2010
Member 4532519
Stopping the multiple postbacks of ASP.NET linkbutton using simple JavaScript
18 Sep 2010
Ahmed R El Bohoty
13 Nov 2010
jarvisa
public void ControlStatus(Control control, bool isDisable){ foreach (Control c in control.Controls) if (c.HasControls()) ControlStatus(c, isDisable); else { WebControl wc = c as WebControl; if (wc != null) ...