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

how can i insert <br> between the items in the checkList ?

hi.

i have a checklist that is his items are created dynamcily.

the question is, how can i write "<br"> after the 4 item for example.

and in general,how can i write html code between each item.

hope im clear.

have a nice day.

chkListGeneralSearching.RepeatDirection = RepeatDirection.Horizontal

For Each dr In dsUserGeneralSearching.Tables(0).Rows

chkListGeneralSearching.Items.Add(New ListItem(CStr(dr("sf_sName")),
CStr(dr("sf_nID"))))

Next
Nov 19 '05 #1
2 1357
Roni,

Use the DataBound Event to customize the CheckBoxList

HTHs

Daniel

"roni" <xs*******@hotmail.com> schrieb im Newsbeitrag
news:db**********@news2.netvision.net.il...
hi.

i have a checklist that is his items are created dynamcily.

the question is, how can i write "<br"> after the 4 item for example.

and in general,how can i write html code between each item.

hope im clear.

have a nice day.

chkListGeneralSearching.RepeatDirection = RepeatDirection.Horizontal

For Each dr In dsUserGeneralSearching.Tables(0).Rows

chkListGeneralSearching.Items.Add(New ListItem(CStr(dr("sf_sName")),
CStr(dr("sf_nID"))))

Next

Nov 19 '05 #2
In general, if you would like a checklist to have a customized look, you
would use separate checkboxes in a table or repeater.

Eliyahu

"roni" <xs*******@hotmail.com> wrote in message
news:db**********@news2.netvision.net.il...
hi.

i have a checklist that is his items are created dynamcily.

the question is, how can i write "<br"> after the 4 item for example.

and in general,how can i write html code between each item.

hope im clear.

have a nice day.

chkListGeneralSearching.RepeatDirection = RepeatDirection.Horizontal

For Each dr In dsUserGeneralSearching.Tables(0).Rows

chkListGeneralSearching.Items.Add(New ListItem(CStr(dr("sf_sName")),
CStr(dr("sf_nID"))))

Next

Nov 19 '05 #3

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

Similar topics

4
by: fis | last post by:
Hi all, I've problem because there are needed break lines in my texts on the web site but i can't do it :( My pipeline looks like: XMS -> I18N -> XSLT -> HTML I have lot of texts in my...
6
by: Lasse | last post by:
I have done this simple function, it seems to work as intended, to solve a problem i have had for a while. I couldnt find any sample around that was working for me. I would like to test it with...
37
by: Haines Brown | last post by:
I understand that <br /> is marginal in CSS, and so am looking for a substitute for the EOL character. I've failed in both approaches and seek advice. The first thing I tried was to use the...
7
by: noor.rahman | last post by:
I have an XML file that stores data from an HTML form. I use XSL to display the data in HTML format. The data may have newline characters. However, XSL is not displaying the newlines properly in...
7
by: Rocky Moore | last post by:
I have a web site called HintsAndTips.com. On this site people post tips using a very simply webform with a multi line TextBox for inputing the tip text. This text is encode to HTML so that no...
2
by: Winshent | last post by:
I have a multi line text in an admin page on my cms. I am trying to capture carriage returns as and replace them with <p></p> bfore the string gets written to the database. I have tried all...
1
by: Winshent | last post by:
I have a multi line text in an admin page on my cms. I am trying to capture carriage returns as and replace them with <p></p> bfore the string gets written to the database. I have tried all...
2
by: xhe | last post by:
I met a very headache problem in javascript, I think this might be difference between IE and NS / Safari. I have a text area <form> <textarea name='tex1' onkeyup='displayit();'></textarea>...
7
by: Nathan Sokalski | last post by:
Something that I recently noticed in IE6 (I don't know whether it is true for other browsers or versions of IE) is that it renders <br/and <br></br> differently. With the <br/version, which is what...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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: 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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...

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.