473,378 Members | 1,330 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,378 software developers and data experts.

How to programatically add a text field to a page

I know how to programatically add a text field to a web page. What I
don't know is how to adjust the position of any controls below the one
I am adding. (The page layout is grid layout).
There could be 100s of fields positioned below the one I am adding and
I know I can probably update the TOP portion of the style attribute for
each control belwo the one being added but there are so many and this
would take a long time.
Is there any other way I can add my fields to the middle of the page
and have the others still visible when using grid layout?
thanks for any help ;-),
Des.

Nov 19 '05 #1
3 1618
In short, you should set the pageLayout property to FlowLayout instead of
GridLayout.

I'm not surprised that you've been confused by all the control positioning
options in ASP.NET. There is a lot of confusion about this, which is why I
wrote this article on the subject which will hopefully clear things up for
you:
http://www.aspnetpro.com/NewsletterA...200504so_l.asp

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
<de****@gmail.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
I know how to programatically add a text field to a web page. What I
don't know is how to adjust the position of any controls below the one
I am adding. (The page layout is grid layout).
There could be 100s of fields positioned below the one I am adding and
I know I can probably update the TOP portion of the style attribute for
each control belwo the one being added but there are so many and this
would take a long time.
Is there any other way I can add my fields to the middle of the page
and have the others still visible when using grid layout?
thanks for any help ;-),
Des.

Nov 19 '05 #2
thanks for the reply. Read the interresting article. Steve, if I add a
placeholder control at design time, and at run time I add fields to
this, in grid layout mode, will all controls below this reposition
themselves automatically ?

I can't change the page layout for now, so if I don't use a placeholder
control, I will most likely have to determine the controls below the
ones I am adding and adjust their TOP portion of the style attribute. I
would assume this is not straightforward ?

Given I can't change the page layout for now what option would you
suggest ? Inserting a flow or grid panel sounds good, but Surely the
controls below this would still need repositioned to make space for the
flow/grid panel ?

thanks,
Des.

Nov 19 '05 #3
Hi Steve. Thanks for the reply. I read the article and found it very
interesting. Given I can't change the page layout currently, what
option would be available for me to add fields that would mean that any
controls below in the grid layout page would automatically have their
top position updated. Its lookin like I am going to have to do worst
case scenario which is to traverse through all controls and adjust all
top positions of all controls below the one I am adding. Any other
easier suggestions ?

Your article mentions grid/flow panels but I would expect that if I add
one of these the controls below will still have to have their top
positions adjusted by my code ?

thanks,
Des.

Nov 19 '05 #4

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

Similar topics

4
by: Andrea Williams | last post by:
Does anyone know of some in depth documentation regarding how to add user controls programatically? I have a User Control, which has some basic html controls, and depending on the number selected...
4
by: Kevin Vogler | last post by:
I need to read the value of a hidden field on a remote HTML page and then use that value in a form submit on my local page. How can I read the hidden field programatically? Thanks in advance....
14
by: Paul | last post by:
I want to set the page title and/or a form hidden field programatically through ASP.Net. I do not want to use something like... <% sTitle ="My Title" %> <html><title><%=sTitle%></title>..... ...
1
by: desmcc | last post by:
I know how to programatically add a text field to a web page. What I don't know is how to adjust the position of any controls below the one I am adding. (The page layout is grid layout). There...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.