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

How To Create columns to ListBox control in ASP.Net

i have 1 asp.page and i want to displayname and codes in list box.
how do i perform this operation?

thank
Jun 27 '07 #1
2 1561
r035198x
13,262 8TB
i have 1 asp.page and i want to displayname and codes in list box.
how do i perform this operation?

thank
You posted this in the cafe/lounge. I've moved it to the ASP forum.

P.S If ASP mods feel that this should be in the .NET forum then they may move that there.
Jun 27 '07 #2
misogsk
39
i have 1 asp.page and i want to displayname and codes in list box.
how do i perform this operation?

thank
Use DataGrid!

If you still want to have names and codes, you have to join name and code to one string and then add this string do ListBox.
Jun 27 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: sheree | last post by:
I would like to create a query where one of the columns of the queries comes from a combo list box on a form. For example, if my table has the following fields: id name interest1 interest2...
3
by: msnews.microsoft.com | last post by:
Hello All, I am trying to write Web Controls and in most of the samples I came across, I am seeing the following function where a HTML string is written to create HTML Controls. ///...
9
by: James Radke | last post by:
Hello, I would like to create a sorted listbox which has one property that I can set to true or false to show if the listbox should be sorted (I may potentially add another one for the sort...
1
by: James Radke | last post by:
Hello, I would like to create a windows form custom listbox which allows me to set two new properties: 1.) Bound Field Name which contains a boolean flag. (named ChangeBackgroundFlag) 2.) ...
2
by: =?Utf-8?B?R3VzIENodWNo?= | last post by:
I’m Working on a List Box that I would like to have 4 Columns with a Top row as a header. In Access VB I can use the following code to Display 4 rows | Mo | Interest | Principal | Balance | ...
1
by: captainphoenix | last post by:
all in vb2005 I have three arrays: one 2d array, two 1d arrays. I need to output them into a listbox and align them to columns, which I know how to do using string.format(blahblahblah). However, in...
2
by: Doug | last post by:
Hi, I can't figure out how to create a drop-down list box. The help file says it exists. The icon in the help file matches the combobox in the toolbox. I tried using a combox box, both with and...
3
by: John | last post by:
Hi Does listbox in vs2008 support multiple columns? I have not been able to set the column widths property to 10, 20, 30 for instance as it expects an int32 value. Thanks Regards
2
by: Greg | last post by:
I have a listbox control that displays it's data using the DataSource, DisplayMember and ValueMember properties. I've worked a thrid party control (DevExpress) that a similar ListBox control that...
6
by: zalek | last post by:
Maybe someone can show me an example of a listbox with 2 columns and a vertical bar created by HTML (JavaScript is OK). Thanks, Zalek
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
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
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
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.