473,395 Members | 1,676 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.

Where on earth is system.windows - Multicolumn Listbox

Hi.
I attempted to create a multicolumn listbox for my web based aspx
application. I search the net, all I get is something like listview or
I need to have system.windwos.form. But for the goodness of my brain,
I cant seem to find it anywhere and just not able to do a "using
System.WIndows.form". WHere on earth can I get this work? Please help!
I just need a simple multicolumn listbox. Why is this so difficult? :(
Nov 18 '05 #1
4 2594
This is so difficult because it is impossible. You can't use windows form
components, they are not for ASP.NET. The task of ASP.NET is to translate
server code to HTML pages that will run on client browsers. Client can have
any platform. It doesn't have to be neither Windows nor .NET. You can make
use of System.Windows.Forms on client side only if you decide to target only
clients who have .NET installed on their machines.

Eliyahu

"kackson" <ka*****@yahoo.com> wrote in message
news:90**************************@posting.google.c om...
Hi.
I attempted to create a multicolumn listbox for my web based aspx
application. I search the net, all I get is something like listview or
I need to have system.windwos.form. But for the goodness of my brain,
I cant seem to find it anywhere and just not able to do a "using
System.WIndows.form". WHere on earth can I get this work? Please help!
I just need a simple multicolumn listbox. Why is this so difficult? :(

Nov 18 '05 #2
You need to add a reference to system.windows to use those classes (add a
reference in VS.net, right click on "reference" and selec "add" in the
solution explorer). But you can't use Windows.Form classes in a web
application (that's mild crazyness!) Instead you'll have to make due with
System.Web.UI....consider taking a closer look at the repeater, datalist or
datagrid, one of those ought to do the trick.

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"kackson" <ka*****@yahoo.com> wrote in message
news:90**************************@posting.google.c om...
Hi.
I attempted to create a multicolumn listbox for my web based aspx
application. I search the net, all I get is something like listview or
I need to have system.windwos.form. But for the goodness of my brain,
I cant seem to find it anywhere and just not able to do a "using
System.WIndows.form". WHere on earth can I get this work? Please help!
I just need a simple multicolumn listbox. Why is this so difficult? :(

Nov 18 '05 #3
I'm having the same issue. The datagrid will not allow selectin without a
postback so there is no real answer in asp.net to the multicolumn listbox
unless you don't mind a postback to the server upon any selection. This
would be a good webcontrol.
T
"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:OK**************@TK2MSFTNGP15.phx.gbl...
You need to add a reference to system.windows to use those classes (add a
reference in VS.net, right click on "reference" and selec "add" in the
solution explorer). But you can't use Windows.Form classes in a web
application (that's mild crazyness!) Instead you'll have to make due
with
System.Web.UI....consider taking a closer look at the repeater, datalist
or
datagrid, one of those ought to do the trick.

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"kackson" <ka*****@yahoo.com> wrote in message
news:90**************************@posting.google.c om...
Hi.
I attempted to create a multicolumn listbox for my web based aspx
application. I search the net, all I get is something like listview or
I need to have system.windwos.form. But for the goodness of my brain,
I cant seem to find it anywhere and just not able to do a "using
System.WIndows.form". WHere on earth can I get this work? Please help!
I just need a simple multicolumn listbox. Why is this so difficult? :(


Nov 18 '05 #4
The datagrid allows selection without postback very well. You just need to
make some efforts on client side.

Eliyahu

"Tina" <ti**********@removespamexcite.com> wrote in message
news:es**************@TK2MSFTNGP14.phx.gbl...
I'm having the same issue. The datagrid will not allow selectin without a
postback so there is no real answer in asp.net to the multicolumn listbox
unless you don't mind a postback to the server upon any selection. This
would be a good webcontrol.
T
"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:OK**************@TK2MSFTNGP15.phx.gbl...
You need to add a reference to system.windows to use those classes (add a reference in VS.net, right click on "reference" and selec "add" in the
solution explorer). But you can't use Windows.Form classes in a web
application (that's mild crazyness!) Instead you'll have to make due
with
System.Web.UI....consider taking a closer look at the repeater, datalist
or
datagrid, one of those ought to do the trick.

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"kackson" <ka*****@yahoo.com> wrote in message
news:90**************************@posting.google.c om...
Hi.
I attempted to create a multicolumn listbox for my web based aspx
application. I search the net, all I get is something like listview or
I need to have system.windwos.form. But for the goodness of my brain,
I cant seem to find it anywhere and just not able to do a "using
System.WIndows.form". WHere on earth can I get this work? Please help!
I just need a simple multicolumn listbox. Why is this so difficult? :(



Nov 18 '05 #5

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

Similar topics

1
by: Mazin Al-Noaimi | last post by:
Hi all, I want to add three values each time to the list box to be as one record for example I have first name, last name, phone number values I want to add them to a listbox once to be...
5
by: Silvio Matthes | last post by:
Hello, I'm new to the list and did not find a suitable answer to my question so here it is: I try to select the rows of a table where the content of a varchar-column is empty ('') and...
7
by: Paul Bromley | last post by:
How can I use this please - I need 2 columns. I have been having difficulty finding info on this and the 2005 Treeview control today. Many thanks for any links or info, Paul Bromley
1
by: mkhmer | last post by:
I am now trying to add a listbox with multicolumn data item into my ASP.Net page using VB.net language, but it seems to be impossible. Anybody got clue on this? Your suggestion is warmly...
2
by: dev.amit | last post by:
Hello Friends I am a new bee to the world of vb. I have an appication in the MS Access and now i have to convert it to the Vb. I am having problem creating multicolumn Listbox in the vb form....
6
by: is49460 | last post by:
Hello! I have two textboxes and a multicolumn listbox on the form. User enters first name in one textbox and last name in the other. After "submit" button is clicked I want first and last name to...
3
balabaster
by: balabaster | last post by:
Hey guys and gals, I'm not sure if this is the simplest way to do this or if someone can throw any other ideas out there. I'm looking to build a treeview inside a listbox...or have a multicolumn...
22
by: schneider | last post by:
I need to hook the system mouse down event. I'm trying to replicate how a context menu hides when the mouse clicks outside of the control. Thanks, Schneider
2
OuTCasT
by: OuTCasT | last post by:
hi i have 2 queries that i would like to insert next to each other into 1 listbox. eg City Countains ------------------------------------------- Johannesburg ...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.