473,324 Members | 2,400 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,324 software developers and data experts.

Combo/Dropdown box among other field

SF
Hi,

I am new to ASP.NET. I have started to create a new ASP.NET web. I can
succesfully insert a table into a form but my form does not look good
becuase some filed (from table) are foreigh key that link to other table to
lookup for information and it is displaying only number. I want to change
that fields into combo/dropdown field but do not khow how. In Access, in can
right click on specific field and change to combo/dropdown on the fly. How
do I change filed to dropdown control?

SF
Feb 25 '07 #1
2 1578
In web programming you should be ready to invest significant (or at least
some) efforts to achieve things easily available in other environments.

Likely, you are using a GridView control to display the table. You can have
a dropdown list in a field if you use a TemplateField with asp.net
DropDownList control in the ItemTemplate. You can find more info on it in
the msdn library.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"SF" <ss@yahoo.comwrote in message
news:eX**************@TK2MSFTNGP04.phx.gbl...
Hi,

I am new to ASP.NET. I have started to create a new ASP.NET web. I can
succesfully insert a table into a form but my form does not look good
becuase some filed (from table) are foreigh key that link to other table
to lookup for information and it is displaying only number. I want to
change that fields into combo/dropdown field but do not khow how. In
Access, in can right click on specific field and change to combo/dropdown
on the fly. How do I change filed to dropdown control?

SF

Feb 25 '07 #2
Well there is no such thing as web combobox control because HTML simply does
not support it.

So therefore you could fake it with some fancy server & client code. Here
is a link for controls that do just that:
http://www.metabuilders.com/Tools/ComboBox.aspx
http://SteveOrr.net/articles/ComboBox.aspx

And here's some more info:
http://SteveOrr.net/articles/WinformControls.aspx

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net

"SF" <ss@yahoo.comwrote in message
news:eX**************@TK2MSFTNGP04.phx.gbl...
Hi,

I am new to ASP.NET. I have started to create a new ASP.NET web. I can
succesfully insert a table into a form but my form does not look good
becuase some filed (from table) are foreigh key that link to other table
to lookup for information and it is displaying only number. I want to
change that fields into combo/dropdown field but do not khow how. In
Access, in can right click on specific field and change to combo/dropdown
on the fly. How do I change filed to dropdown control?

SF
Feb 26 '07 #3

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

Similar topics

2
by: Smythe32 | last post by:
Hi, I have this code below that will add a new item to a combo box if it is not in the combo box. I also would like the user to add the description for the new addition to the combo box and...
9
by: Bob Alston | last post by:
In 2002, "GrayJay" posted the following code: I did this in a jazz record catalogue to find composers - On a form "frmComposers" Create a text box - txtFindComposer, and add the following sub...
8
by: Lyn | last post by:
Hi, Can anyone tell me how the initial value displayed in Combo Box is determined when a form is opened? I am loading the dropdown from one field ("CategoryName") of a table, with "ORDER BY ". ...
0
by: Jeremy Wallace | last post by:
Folks, Here's a write-up I did for our developer wiki. I don't know if the whole rest of the world has already figured out how to do this, but I hadn't ever seen it implemented, and had spent a...
3
by: Cagey | last post by:
What I'm trying for: If this selection or if click on selection (highlighted line choice/ which ever selection change) w/in query's combo dropdown list box (on Switchboard), then Open in...
8
by: AA Arens | last post by:
Hi I do have a products table and products-parts table in my Access 2003 database and log all services into a form. I do have at least the following two combo boxes on my form: - Choose...
2
by: dancole42 | last post by:
So I have a subform that lists the various items on a particular invoice. First, the user selects a product class from the Class dropdown. This is bound to the Class field in the InvioceLines...
1
by: kashifsulemani | last post by:
Combo Box DropDown Style. A combo box is bound to a data table field name. When combo box has simple / drop down style then bound is successful. Other hand if Combo box has drop down list...
2
by: biganthony via AccessMonster.com | last post by:
Hi, I decided to install Office 2003 Service Pack 3 on my home computer to test (in full knowledge that there may be some issues with it). After installation, I have noticed that with a small...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.