Search - Articles
DevASP.NET for ASP.NET, VB.NET, XML and C# (C-Sharp) Developers Tuesday, March 03, 2009
Dev Articles
Search Directory
ASP.NET
VB.Net
C-Sharp
SQL Server
 


Home >Search > Articles & Samples > ASP.Net > Code Management
Search:
What's New - What's Hot
Listings for Code Behind Code Behind (118)
Listings for Tips & Tricks Tips & Tricks (43)
Listings for User Controls User Controls (30)
 


Insulate Your Code with the Provider Model     
Total Hits: 89  |  Today: 0Author: Paul D. Sheriff      Rating:  
Read Reviews | Write Review |  Your Rating: 

Developers constantly face problems brought on by changing technologies. When Microsoft releases a new version of a data provider, or a customer decides to switch databases from Oracle to SQL Server, you may have to rework code you've already written. But you can avoid much of this rework if you take the time to plan and code for such changes. One recommended way to do this is to develop components that take advantage of the Provider Model...

HOW TO: Work with Code-Behind Class Files in an ASP.NET Application by Using Visual C# .NET     
Total Hits: 40  |  Today: 0Author: Microsoft      Rating:  
Read Reviews | Write Review |  Your Rating: 

This article describes how to develop .aspx pages that use code-behind class files in Microsoft ASP.NET applications. The code samples in this article include the requirements for both code-behind class files that are precompiled and code-behind class files that are compiled on demand. For more information about code-behind class files and their deployment, see the REFERENCES section of this article....

Property: Encapsulation     
Total Hits: 103  |  Today: 0Author: juliet      Rating:  
Read Reviews | Write Review |  Your Rating: 

Consider you have a class, call staff.

This is what we consider as BAD programming practice in OOP concept, as the information about the staff class is not well encapsulated, but exposed easily to external classes....

Looping through all controls on a web form     
Total Hits: 306  |  Today: 0Author: Kishore D.G      Rating:  
Read Reviews | Write Review |  Your Rating: 

In this example, I would like to show the actual relation between FORM name in .apsx and relative declaration in .cs file. Using this concept, we can loop through HTML Server controls in web form....

Building up a Page Using User Controls Dynamically Loaded at Runtime     
Total Hits: 328  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

We (at Microsoft) are working on finishing up a new IBuySpy-like application that provides a complete ASP.NET Portal/Digital Dashboard framework that heavily leverages these features (and will be posted in the next days). The samples below provides a simple demonstration of how you can leverage this in the meantime....

Understanding User Controls - Part 1     
Total Hits: 169  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

User controls are basically pieces of ASP.NET functionality, either user interface or logic, that are reusable across a Web application. Of of the advantages of user controls is that they can expose properties and methods like any object in the .NET Framework. In this article I will show you how to expose properties and methods in a user control, and point out some traps to beware of. The downloadable source code for this tutorial is in both Visual Basic.NET and C#....

Raise Events from User Control     
Total Hits: 786  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

Did you know you can raise events from a user control? Controls that fire postback events must implement the IPostBackEventHandler interface -- see the first directive of the user control....

Page Templates: Introduction     
Total Hits: 208  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

Nearly every web site has some type of common layout used for each Page. Classic ASP allowed developers to use Include files to encapsulate reuse. ASP.NET provides many new and better techniques to accomplish the same. This article provides a brief introduction to Page Templates in ASP.NET, which generally refers to the use of inheritance with a base Page class....

Creating a Page Template by inheriting from the System.Web.Page class (V2).     
Total Hits: 197  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

This is a revised tutorial for my page templating technique. The original version (Creating a Page Template by inheriting from the System.Web.Page class) had a few major problems as noted in my second article ( Revisiting the Page Template by inheritance). I've only expanded slightly upon steps 1, 2 and 4 as they did not change. If you have comments on how the code is written please let me know so I can improve upon it in the future (and fix the existing code)....

Use a Script Library     
Total Hits: 96  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

If you have something that you do often, on many pages (like open a database connection, display changing content on your pages etc.) then you should use a script library....

Page Templates: Server Forms     
Total Hits: 146  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

Most examples of ASP.NET Page Templates do not actually include the server Form. This is because it is expected that it will be placed in each Page that needs it. However, sometimes there is a need to include the server Form in the Page Template. This article provides examples with server Forms, although caution is recommended. I decided to write this article due to the number of people that have asked me to, but I feel strongly that a well-designed Page Template will seldom require this. The fa...

Dynamically create Web Forms     
Total Hits: 233  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

A web form is basically a collection of controls. You can manipulate this collection so that you can place server controls on the page dynamically. This article will show you how to do this....

Integrating Ektron eWebEditPro V3.x or Ektron eWebEditPro+XML V3.x into Microsoft ASP.NET     
Total Hits: 72  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

Ektron provides sample code to simplify the integration of Ektron eWebEditPro V3.x with Microsoft ASP.NET. You can insert Ektron eWebEditPro into an ASP.NET page just as easily as you can insert a text area field into an HTML page....

Page Templates Revisited     
Total Hits: 112  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

The trick to getting around this limitation is to embed your Web Form definition in the PageTemplate itself. First, remove all tags from your UserControls. You won't need them anymore. Then, declare an HtmlForm class in your PageTemplate class:...

"Includelets" - or How to Encapsulate ASP layout includes in ASP.NET Web Controls     
Total Hits: 91  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

A common way to build the navigation and layout for an ASP-driven website is to use include files. Most advanced ASP developers know that when you do this, it is best to encapsulate the functionality of the include file in a Sub or Function, and then to call this routine from the page that is including the file. This avoids problems with variable scope, allows parameters to be passed easily to the include file, and makes the code easier to read....

Developing User And Server Controls: Part 2     
Total Hits: 405  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

In this article, you will learn taking advantage of and creating a User control....

Developing User And Server Controls: Part 1 - Overview     
Total Hits: 172  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

In this article, you will learn about the features and differences of User and Server controls....

HOW TO: Implement Nested Web User Controls in ASP.NET by Using Visual Basic .NET (Q319100)     
Total Hits: 1694  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

This step-by-step article demonstrates how to implement nested Web user controls in an ASP.NET application. The concepts are basically the same as when you create Web user controls to include in an .aspx page or in another Web user control, which is typically referred to as nesting....

TripleASP.Net Table Editor UserControl     
Total Hits: 166  |  Today: 0Author: Scott Watermasysk      Rating:  
Read Reviews | Write Review |  Your Rating: 

This is the first beta version of the TripleASP.Net Table Editor. It allows you to edit, add, and remove records from every table in your database....

Your First User Control     
Total Hits: 122  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

This article covers the fundamentals behind implementing Forms Authentication in your .NET project....



Disclaimer - Privacy
© 2002-2017 DevASP.net