473,396 Members | 2,082 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Creating a webform at run time

I know that I can create web controls on the fly and add them to a
placeholder. The problem with that is that I don't get any view state that
way.
I have a series webform templates defined in a database. Now I want to
create a series of text boxes and other controls on the fly can capture the
data input. How can I do that?

Nov 19 '05 #1
3 1048
If you are worried about dynamicly added controls dissapearing on viewstate,
you either have to roll your own solution, or you can useDenis Bauer's
(free) DynamicPlaceHolder control:
http://www.denisbauer.com/ASPNETCont...aceholder.aspx

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Arne" <Ar**@discussions.microsoft.com> wrote in message
news:B8**********************************@microsof t.com...
I know that I can create web controls on the fly and add them to a
placeholder. The problem with that is that I don't get any view state that
way.
I have a series webform templates defined in a database. Now I want to
create a series of text boxes and other controls on the fly can capture
the
data input. How can I do that?

Nov 19 '05 #2
Using CSS you should be able to set a specific width and specify
overflow-x:scroll;
Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Arne" <Ar**@discussions.microsoft.com> wrote in message
news:B8**********************************@microsof t.com...
I know that I can create web controls on the fly and add them to a
placeholder. The problem with that is that I don't get any view state that
way.
I have a series webform templates defined in a database. Now I want to
create a series of text boxes and other controls on the fly can capture
the
data input. How can I do that?

Nov 19 '05 #3
oopss...replied to wrong post, sorry

karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:e1**************@TK2MSFTNGP10.phx.gbl...
Using CSS you should be able to set a specific width and specify
overflow-x:scroll;
Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Arne" <Ar**@discussions.microsoft.com> wrote in message
news:B8**********************************@microsof t.com...
I know that I can create web controls on the fly and add them to a
placeholder. The problem with that is that I don't get any view state
that
way.
I have a series webform templates defined in a database. Now I want to
create a series of text boxes and other controls on the fly can capture
the
data input. How can I do that?


Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: owen | last post by:
Generally speaking, what does it mean when I see a "button" with red text showing this message instead of the control I've dragged onto the web form in Design View.? (But the page works fine at...
2
by: Anand Sagar | last post by:
I have a Panel1 and button1 on my webform. At runtime, I create 2 textboxes. I do it at the Page_Load event. I put the code within the " If Not isPostBack" For the button click event, I will do...
4
by: ray well | last post by:
hi, is it possible to create controls in a webform at run time in the Page_Load event. i would like to create a calculated amount of labels as the page loads, place them at certain places on...
2
by: jlopes151 | last post by:
Question: I'm creating an ASP.NET webform and I have questions about how the ASP.NET form works. In ASP or HTML a form with an action will transfer that forms items to another page. From the...
2
by: Patrick | last post by:
I want to define a set of web-form templates in XML and render the equivalent web-form with ASP.NET, then process any input server controls on the form. Reading the XML file from Page_load is...
0
by: Ravi Ambros Wallau | last post by:
Hi: I've created a custom control - a grid that uses Infragistics to display some filters, the grid itself, and some buttons. Well, when using this control directly on WebForm, everything works...
2
by: AG | last post by:
Is it possible to create properties in a webform that can be accessed via the Properties window at design-time? I have tried creating properties with attributes such as Bindable, Browsable,...
5
by: SalamElias | last post by:
I am creating several chkBoxes dynamically and assigning an event handler in the Page_load as foillows ***************************** Dim chkCatOption As CheckBox = New CheckBox chkCatOption.Text...
2
by: jkwasson | last post by:
I have a web application that is complete and published. I want to do some major enhancements, but I want to start a new project so I can continue to do maintenance on the current one without...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.