Interesting question, help/advice/suggestions

TelTelTel

New Member
I have a listbox/drop down list bound to a table in my database, which lists all the companies in it.<BR><BR>Now, I want to add to that listbox, but in previous versions I had a seperate page which added it to the database, then went back to the page and choose the company via the drop down list. But I reckon I can circumvent all that with ASP.NET.<BR><BR>What I want is when I click on "add company" next to the drop down list of companies, the drop down list dissapears and a text field appears, where the person now has the option of typing in a company and inserting it with the event the user is busy creating, much like editing with a datagrid.<BR><BR>Has anyone got suggestions on how I would go about doing this?<BR>Thanks a milThe way i see it is to use a 2 panels.. one showing the dropdown, then when the user clicks the button to add a company you hide the panel with the dropdown and make visable the panel with the code to add to the database.. then when the user submits that it hides that panel and displays the one with your dropdown on it with the new company in there... simple... i think<BR>:)<BR>How would I hide these? Any idea how the code-behind will look like? :)
 
Back
Top