windows controls on asp.net pages

U

Uwe Thiemann

hi,

is it possible to put a windows control on an asp.net page? I need a windows
listbox on an asp.net page to store objects in it. the listbox control of
asp.net can't store objects (only strings).

thank you very much

uwe from germany
(sorry for my bad english)
 
M

Mark Rae

Theoretically you can do this, but you would need every client to have
dotnet installed in his/her machine. On sever site there is plenty of
classes capable of holding objects.

Quite so.

Let's say, for the sake of argument, the objects in question have a unique
identifier, a description, and then a load more properties e.g.

MyObject.ID
MyObject.Description
MyObject.OtherProperty1
MyObject.OtherProperty2

etc

I would store the objects in a Dictionary<string, MyObject> where the key of
the Dictionary is MyObject.ID.

Then I would create a DropDownList using MyObject.ID as internal value and
MyObject.Description as visible text for the users to select.

Thereafter it would be a simple matter to interrogate the SelectedValue of
the DropDownList, fetch the associated MyObject out of the Dictionary and
carry out whatever processing was necessary...
 
R

Riki

Theoretically you can do this, but you would need every client to have
Meaning that only Windows clients (excluding Windows 95 clients)
will be able to use your pages.
Linux or Mac users will be left out.

But I guess you knew that already.
 
E

Eliyahu Goldin

Theoretically you can do this, but you would need every client to have
dotnet installed in his/her machine. On sever site there is plenty of
classes capable of holding objects. What are you trying to achieve?
 

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