469,576 Members | 1,770 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,576 developers. It's quick & easy.

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 993
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by ray well | last post: by
2 posts views Thread by jlopes151 | last post: by
5 posts views Thread by SalamElias | last post: by
2 posts views Thread by jkwasson | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.