?
Solved

Placeholder new line

Posted on 2003-11-12
3
Medium Priority
?
595 Views
Last Modified: 2009-11-03
I'm using a placeholder to hold rows of controls (textboxes and dropdownlists) and I'm looking for a way to add them so that I get eleven columns in each row.

My problem is now that if the controls don't take up the entire width of the page, then a control that I intended to go on the row below ends up on the row above.

To resolve the problem I am currently adding an invisible label to take up the rest of the space in the row, but is there some way to push the control down to the next line?

Thanks

0
Comment
Question by:Gezna
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 12

Accepted Solution

by:
roverm earned 2000 total points
ID: 9730944
Add a label to the control that has as text "<br>".
0
 
LVL 12

Expert Comment

by:roverm
ID: 9730947
Or place all controls inside a table. Then you can use <TR></TR> to define your rows.
0
 

Expert Comment

by:preeth
ID: 9739972
Hope this works for u,

For intCounter = 0 To l_dtDtattable.Rows.Count - 1 'ViewState("ProductFieldCount")
                Dim ll As Integer
                ll = intCounter

                Dim litLabel As System.Web.UI.LiteralControl
                Dim txtTextBox As System.Web.UI.WebControls.TextBox
                Dim radRadiolist As System.Web.UI.WebControls.RadioButtonList

                'add textbox control
                txtTextBox = New System.Web.UI.WebControls.TextBox()
                txtTextBox.ID = Trim(l_dtDtattable.Rows(ll).Item("QID"))
                txtTextBox.Text = Trim(l_dtDtattable.Rows(ll).Item("QID"))
                txtTextBox.Width = System.Web.UI.WebControls.Unit.Pixel(40)
                'txt_qid1.Width = System.Web.UI.WebControls.Unit.Pixel(60)
                Me.PlaceHolder1.Controls.Add(txtTextBox)

                'add literal Controls
                litLabel = New System.Web.UI.LiteralControl()
                litLabel.Text = "<b> " & l_dtDtattable.Rows(ll).Item("Questionn") & ":</b>"
                Me.PlaceHolder1.Controls.Add(litLabel)

                'add  Radiolist controls
                radRadiolist = New System.Web.UI.WebControls.RadioButtonList()
                radRadiolist.ID = "rad" & Trim(l_dtDtattable.Rows(ll).Item("QID"))
                radRadiolist.Items.Add(l_dtDtattable.Rows(ll).Item("Choice_1"))
                radRadiolist.Items.Add(l_dtDtattable.Rows(ll).Item("Choice_2"))
                radRadiolist.Items.Add(l_dtDtattable.Rows(ll).Item("Choice_3"))
                radRadiolist.Items.Add(l_dtDtattable.Rows(ll).Item("Choice_4"))
                Me.PlaceHolder1.Controls.Add(radRadiolist)
            Next


0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question