By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,851 Members | 1,047 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,851 IT Pros & Developers. It's quick & easy.

Combo/Dropdown box among other field

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.