ASP.NET
  Home arrow ASP.NET arrow Extending the ASP.NET TextField User Contr...
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 
Mobile Linux 
App Generation ROI 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
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

Extending the ASP.NET TextField User Control
By: Jagadish Chaterjee
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 17
    2007-03-21

    Table of Contents:
  • Extending the ASP.NET TextField User Control
  • Developing your own flexible NumericTextbox control: the beginning
  • Developing your own flexible NumericTextbox control: coding events
  • Developing your own flexible NumericTextbox control: properties to retrieve values

  • 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


    Extending the ASP.NET TextField User Control


    (Page 1 of 4 )

    This is an extension to the previous article "Developing a Wonderful ASP.NET TextField Control" for supporting numeric features (something like a Numeric Textbox). Before proceeding with this, I strongly suggest that you go through the previous article, as I am using the same core structure as the previous user control.
    A downloadable zip file is available for this application.

    The entire solution (source code) for this article is available as a free download (in the form of a zip). The source code in this article has been developed using Microsoft Visual Studio 2005 Professional Edition on Microsoft Windows Server 2003 Standard Edition. I didn't really test any of the code in any other tools/IDEs/servers/editions/versions. If you have any problems, please feel free to post in the discussion area.

    I will not be repeating the explanation of user controls in this article as I already introduced the same in my previous article. Along with the introduction, I also developed a sample TextField user control featuring new functions. Now, I would like to extend the same control to support a few more functions.

    A textbox which needs to have only numeric input is often required in ASP.NET applications. Numeric input is not only limited to digits. It may also have a decimal point (or period/dot) with decimal places. We may also include commas to separate thousands (say for a value of one billion). We may also want to have Max and Min values for the value being entered. I would like to include all of these features as part of this control.

    This control is a superset of my previous control "uctTextField" (developed as part of the previous article). So you need to have "uctTextField.ascx" as part of your solution before proceeding with the new control. Let us start the development now.

    More ASP.NET Articles
    More By Jagadish Chaterjee


       · Hello guys,This is an extension to my previous contribution focusing on...
     

    ASP.NET ARTICLES

    - Disadvantages of the ASP.NET MVC Framework
    - Advantages of the ASP.NET MVC Approach
    - ASP.NET Web Forms Weaknesses
    - ASP.NET Web Forms Meets ASP.NET MVC
    - Source Code for Saving and Retrieving Data w...
    - Using GridView to Save and Retrieve Data wit...
    - Handling Dynamic Images in ASP.NET 3.5 AJAX ...
    - Retrieving Data with AJAX and the GridView C...
    - Playing with Images in ASP.NET 3.5 AJAX Appl...
    - Saving and Retrieving Data with AJAX
    - Enhancing PHP Via the ASP.NET AJAX Framework...
    - Enhancing PHP Programming with the ASP.NET A...
    - Classes and ASP.NET AJAX
    - Using ASP.NET AJAX
    - Building a Simple Storefront with LINQ





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
    Stay green...Green IT