Repeater - rows

V

Viktor Popov

Hi,
I have the following problem. I read from a text file and than I would like
to show what I read in a Repeater control using this function:

ArrayList Words = new ArrayList();
StreamReader sr = File.OpenText("g:\\log1.txt");
while(sr.Peek() > 0)
{
string[] Data = sr.ReadLine().Split("*".ToCharArray());
foreach(string dt in Data)
{
Words.Add(dt);
}
}
sr.Close();
ExtRepeater.DataSource = Words;
ExtRepeater.DataBind();

Tha string is word*word*word*word*word.
It works, but I can't arrange the results in the Repeater in Rows. They are
in columns. How could be accomplished that?

Thanks,

Viktor
 
S

Shiva

Try giving a SeparatorTemplate with <br> in it:

<asp:Repeater ...>
....
....
<SeparatorTemplate>
<br>
</SeparatorTemplate>
</asp:Repater>

Hope this what you are looking for.

Hi,
I have the following problem. I read from a text file and than I would like
to show what I read in a Repeater control using this function:

ArrayList Words = new ArrayList();
StreamReader sr = File.OpenText("g:\\log1.txt");
while(sr.Peek() > 0)
{
string[] Data = sr.ReadLine().Split("*".ToCharArray());
foreach(string dt in Data)
{
Words.Add(dt);
}
}
sr.Close();
ExtRepeater.DataSource = Words;
ExtRepeater.DataBind();

Tha string is word*word*word*word*word.
It works, but I can't arrange the results in the Repeater in Rows. They are
in columns. How could be accomplished that?

Thanks,

Viktor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top