ASP.NET Code
  Home arrow ASP.NET Code arrow User Controls and Client Side Scripting
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Dedicated Servers 
Download TestComplete 
Windows Web Hosting
 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
ASP.NET CODE

User Controls and Client Side Scripting
By: JB Reddy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 90
    2004-02-18

    Table of Contents:
  • User Controls and Client Side Scripting
  • Starting Our User Control
  • Utilizing the UserControls

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
     
    ADVERTISEMENT

    Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!

    User Controls and Client Side Scripting
    (Page 1 of 3 )

    If the requirement is for the appearance (ie, styles) of the form we can adopt XML and XSLT to meet the requirements. If the need comes for functionality we must either rewrite the form code or implement the user controls. User controls provide functionality in different scenes. For example, we are not going to write the database connection info in each page or configuration file, due to the confidential nature of that information. In such cases, user controls come in handy. We can write some secured or encrypted files for the confidential information and use the user controls to read and provide the information as necessary. User controls may provide UI (like tables, text boxes, labels if necessary) or without UI (like database connection string, style etc).

    I am going to explain a very simple user control. My user control provides one CheckBox and one TextBox. When I check the checkbox the TextBox background color will be changed. For the sake of explanation I am adding some code to the text box click event also. While writing user controls we must keep in mind the basic principles of creating user controls. Consult your software documentation for more information about those principles.

    More ASP.NET Code Articles
    More By JB Reddy


     

    ASP.NET CODE ARTICLES

    - How to Use the ListBox Control in ASP.NET 2.0
    - How to Load XML Documents in ASP.NET 2.0
    - DataGrid Code
    - ASP.NET Guestbook
    - User Controls and Client Side Scripting
    - ASP.NET Programming with Microsoft's AS...
    - ASP.NET Basics (part 3): Hard Choices
    - ASP.NET Basics (part 2): Not My Type
    - ASP.NET Basics (part 1): Nothing But .Net
    - Directory Tree Browser
    - How to get the confirmation of Yes/No from a...
    - Complete example using custom errors and wri...
    - Paging Certain # records per page .NET style
    - General Methods of formatting and Subtractin...
    - .NET LinkButton web control




    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway