AspNetAtoms.com daily updates on ASP.NET Tutorials, Articles, Authors and more. Subscribe to our newsletter and receive updates on ASP.NET resources on the Internet.

Categories

Recent Posts

ASP.NET Tip: Creating a Form Using PlaceHolder Controls : Eric Smith

Saturday, November 15 2008

When you create a PlaceHolder control, an empty container to which you can add your controls, ASP.NET will remember the values for your dynamic controls and repopulate the data automatically. Previous tips explained how to use a Repeater control to build a dynamic form containing some number of text box controls. However, you may have a case in which you want to use a different control, such as a check box, in addition to the text boxes. In this case, you'll need to use a PlaceHolder control. You can think of a PlaceHolder control as an empty container to which you can add your controls. ASP.NET will remember the values for your dynamic controls; however, you do have to create the controls both on non-postback and postback calls. Once the controls are created in postback mode, ASP.NET will re-associate the posted data with the dynamic controls and repopulate the data automatically....

Read More:
ASP.NET Tip: Creating a Form Using PlaceHolder Controls : Eric Smith
Also See:
Building a Simple Blog Engine with ASP.NET MVC and LINQ - Part 1 : Keyvan Nayyeri
Building a Database Driven Hierarchical Menu using ASP.NET 2.0 : Michael Libby
Managing Distributed Transactions with ADO.NET 2.0 using TransactionScope : Muhammad Mosa
Using Master Pages : Packt Publishing
Restart ASP.NET apps Programmatically, Log Application_End Events, and use Web Management logging : Peter A Bromberg

Post your comment

Comment