AJAX update panel inserting line breaks

AJAX update panel inserting line breaks

am 23.04.2008 16:21:30 von Emma Middlebrook

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

RE: AJAX update panel inserting line breaks

am 23.04.2008 18:00:13 von murtaza

try inserting
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
>