Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 17th, 2017, 01:02 PM
Registered User
 
Join Date: Dec 2017
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Dynamic Controls with ASP.NET

Hello all,

Migrating an existing site from classic to .net. This site allows a customer to pay their account, and each customer may have many accounts. The site presents two static tables, consisting of their demographic info and text boxes for credit card info. Below this, I dynamically build a table consisting of each account belonging to that customer. They have the ability to break their payment up and apply it to their account as they wish.

Account: 1234 | Apply: (txtBox1) | (btn1 = clears txtBox1)
Account: 1235 | Apply: (txtBox2) | (btn2 = clears txtBox2)
etc.

Since these are dynamic controls, I'm having an issue saving the value of each text box on post back. I'm also having an issue with the buttons, and writing the method to clear out the corresponding text box when clicked.

Any ideas, or can any steer me in the right direction?
 
Old June 8th, 2018, 07:34 AM
Registered User
 
Join Date: Jun 2018
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Dynamically Creates Control in ASP.Net

You can dynamically creates control in ASP.Net by following these steps,first of all you creates two text box controls then you must verifies the content of text box and the attributes have been saved across the server,at the end illustrates handling events,that all the post dynamically creates control.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Do we really need ASP.NET xyzDataSource controls? edurazee ASP.NET 3.5 Basics 1 December 21st, 2009 03:43 PM
Creating Dynamic ASP.NET Server Controls Using XML kwilliams XSLT 0 October 6th, 2006 01:42 PM
Dynamic .NET Controls. rupen ASP.NET 1.0 and 1.1 Basics 3 February 21st, 2006 05:30 AM
Dynamic generation of asp.net server controls shashi1312 Classic ASP XML 1 August 2nd, 2005 04:52 AM
Dynamic generation of controls in ASP.NET Maxood ASP.NET 1.0 and 1.1 Basics 2 March 8th, 2004 07:29 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.