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

AJAX update panel inserting line breaks

Hi,

I've implemented an AJAX update panel on one of my ASP.NET web pages.
I generate and add controls to it dynamically. What I would like to do
is tell it to start a new line before adding the next batch of
controls.. Is that possible..? Currently it is just appending to the
current line and wrapping around when it reaches the end of the
display area.

E.g. The panel populates a list of questions and radio buttons for the
answers and it looks like this:

1.1 Question One goes here? [ ] Yes [ ] No 1.2 Question Two appears
here? [ ] Yes [ ] No 1.3 Question Three wraps around? [ ] Yes [ ] No

I would like them to be like this on the webpage:

1.1 Question One goes here? [ ] Yes [ ] No
1.2 Question Two appears here? [ ] Yes [ ] No
1.3 Question Three here? [ ] Yes [ ] No

I thought that maybe I could write out some html or something to the
output stream but I really have no idea.. Any help would be greatly
appreciated.

Thanks

Emma
Jun 27 '08 #1
1 1601
try inserting <br /between questions.

"Emma Middlebrook" wrote:
Hi,

I've implemented an AJAX update panel on one of my ASP.NET web pages.
I generate and add controls to it dynamically. What I would like to do
is tell it to start a new line before adding the next batch of
controls.. Is that possible..? Currently it is just appending to the
current line and wrapping around when it reaches the end of the
display area.

E.g. The panel populates a list of questions and radio buttons for the
answers and it looks like this:

1.1 Question One goes here? [ ] Yes [ ] No 1.2 Question Two appears
here? [ ] Yes [ ] No 1.3 Question Three wraps around? [ ] Yes [ ] No

I would like them to be like this on the webpage:

1.1 Question One goes here? [ ] Yes [ ] No
1.2 Question Two appears here? [ ] Yes [ ] No
1.3 Question Three here? [ ] Yes [ ] No

I thought that maybe I could write out some html or something to the
output stream but I really have no idea.. Any help would be greatly
appreciated.

Thanks

Emma
Jun 27 '08 #2

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

Similar topics

2
by: rodchar | last post by:
hey all, i saw an update panel example one time where they put a button outside the update panel and a textbox inside the panel and setup a trigger on the update panel to update when the button...
2
by: Rahul | last post by:
I am trying the following thing in AJAX <atlas:ScriptManager ID="scriptmanager1" runat="Server" EnablePartialRendering="true" /> <asp:DropDownList ID="cmbBranchname" cssclass="Combostyle"...
2
by: DanWeaver | last post by:
I have a page where layout of buttons and listboxes etc is important - I would like to make use of Ajax Update panel to asynchronously update various part of the page- in Vis studio whenever I use...
2
by: =?Utf-8?B?VG9u?= | last post by:
Hello, I want to understand teh benefits of ajax technology. Does anyone has a good website where AJAX EXTENSIONS is worked out so I really understand it. There a 2 main questions: 1) How about...
3
by: =?Utf-8?B?UnlhbiBTbWl0aA==?= | last post by:
I have a form that has a ModalPopupExtender on it. I have un updatepanel on a panel control that is displayed when an Button (outside of the update panel) is clicked. What I am trying to do is...
0
by: nityaprashant | last post by:
hello.. i used ajax update panel in my cart form now i want to use paypal button for redirect online transaction because of ajax update panel round trip is not possible.. so paypal button gives...
5
by: simon | last post by:
hello, I have a server set up on my local (home) network and can not get an ajax application to run on the box. it works fine on our developement server and also works fine locally. I...
1
by: db007 | last post by:
Hi, I have a problem with a current project and the scroll position. I have an AJAX enabled website using Visual Studio 2005 and ASP.Net 2.0. The project also uses masterpages. On the...
3
by: SAL | last post by:
Hello, I'm using vs2005 and ajax exentions 1.0.61025.0. I have a page with a Gridview control that's inside of an update panel. I also have a DetailsView on this page inside of another update...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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
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...

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.