473,466 Members | 1,326 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Preserving form elements' contents in an asp:placeholder?


I want to create a data entry form consisting of X rows of HTML input
fields. X = number of rows that the user will determine when the web page is
running.

I was able to use an asp:placeholder control and put input tags into the
control using LiteralControl (to preserve my HTML formatting preceisely the
way I want it), but I discovered that I cannot take advantage of the .NET
framework to remember the contents of the input fields if I do it this way.

Is there a way to produce this effect? Am I going to have to add
HTMLInputText controls to the placeholder?

Thanks.
Nov 17 '05 #1
2 1333
Hi,

Stephen wrote:
I was able to use an asp:placeholder control and put input tags into
the control using LiteralControl (to preserve my HTML formatting
preceisely the way I want it), but I discovered that I cannot take
advantage of the .NET framework to remember the contents of the input
fields if I do it this way.


This is a classic problem with ASP.NET controls created at runtime and has
been discussed a lot, along with solutions. I doubt I could say it any
better, so please don't take the Google search response as unfriendly --
just pick one of the top results. :)

http://www.google.com/search?hl=en&l...rols+ViewState

--
Chris Priede
Nov 17 '05 #2
Hi Chris,
Thanks for suggesting some Google keywords. I didn't know what keywords
would be relevant for tihs search. This will help me do some further
research.

Thanks.

--Stephen

"Chris Priede" wrote:
Hi,

Stephen wrote:
I was able to use an asp:placeholder control and put input tags into
the control using LiteralControl (to preserve my HTML formatting
preceisely the way I want it), but I discovered that I cannot take
advantage of the .NET framework to remember the contents of the input
fields if I do it this way.


This is a classic problem with ASP.NET controls created at runtime and has
been discussed a lot, along with solutions. I doubt I could say it any
better, so please don't take the Google search response as unfriendly --
just pick one of the top results. :)

http://www.google.com/search?hl=en&l...rols+ViewState

--
Chris Priede

Nov 17 '05 #3

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

Similar topics

0
by: Chris Ericoli | last post by:
Hi, I am wanting to add a usercontrol programatically to a placeholder's control collection. The placeholder is coded within the ITEMTEMPLATE of a datalist. The problem that I am facing, is...
2
by: Brett Robichaud | last post by:
I'm trying to create a Page class that I derive all others from. This page class will look for an asp:placeholder and insert some html at that point. I can see how I can create new HTML controls...
2
by: leila | last post by:
I am developing an ASP.Net application for a client and they need to modify the page layout from within a form. like the way you edit a blog template in Blogger. what is the best approach to do...
7
by: Venus | last post by:
Hello, I am trying to generate a dynamic form at runtime and would like to do it using "<asp: ..." form elements as follows Build up the string that is placed somewhere in the HTML code the...
4
by: Venus | last post by:
Hello, Thanks for your reply. I understand that a control can be created dynamically in several ways: 1) using StringBuilder 2) using Controls.Add 3) using ASP PlaceHolder But this is just...
0
by: Venus | last post by:
Hello, After trying some ways to do it I wanted to use something like the code below but for some reason is not working (I have to generate the entire form dynamically (not only the controls)):...
1
by: IndyChris | last post by:
I am attempting to add a drill down datagrid to my webpage so the user will not have to leave the page to get further information on a row. There are 12 other columns before this column....
5
by: studio60podcast | last post by:
I have an ASP:Placeholder and I'm trying to populate with Label controls from the code behind after a button click, essentially creating a list of selections. But each time I click the button,...
1
by: ckb | last post by:
Hi, This bit of code throws error Expected End of statement at line1 <asp:Table Width="100%" > <asp:TableRow id="T2r1"> <asp:TableCell id="T2r1c1" Width="85%"> <asp:PlaceHolder ID="PlaceHolder1"...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.