Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 2nd, 2003, 03:25 AM
Friend of Wrox
 
Join Date: Aug 2003
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to life_s Ng Send a message via MSN to life_s Ng
Default dropdownlist question... pls help

hi, im doing a page that have a dropdownlist to let ppl choose some info, if the user choose "New.." item, i redirect the person to another page which is same as the previous 1, the different is only the page contain a text box instead of dropdownlist. the text box is for the user to key in the new value.
i wonder if the user choose "New...", can i just show a textbox beside the dropdownlist in the same page without redirect to another page? i cant found any artical or example for this... n i got no idea for this... can any1 pls help? thanks.

best regard
life's Ng

 
Old September 2nd, 2003, 08:57 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Put the textbox on the page next to the drop down list. Set it's "visible" property to False in the HTML part of the control. When the user chooses "New...", in the code-behind, you set the Visible property to true so when the page draws again, the user can see and use the textbox. You might also like to add a "Save New" button next to the text box. Use the same technique for showing the button.

Peter
 
Old September 26th, 2003, 05:11 AM
Friend of Wrox
 
Join Date: Aug 2003
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to life_s Ng Send a message via MSN to life_s Ng
Default

yeah! thanks Peter!

Best Regards
life's Ng






Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 5 Aricles/SiteProvider question HELP PLS crazy BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 9 March 7th, 2008 01:10 PM
about DropDownList question jason_lai ASP.NET 2.0 Basics 3 June 5th, 2007 08:40 PM
HELP!!! (DropdownList in GridView question) Aaron Edwards ASP.NET 2.0 Basics 10 June 25th, 2006 05:08 AM
asp:dropdownlist question khng ASP.NET 1.0 and 1.1 Basics 3 April 1st, 2005 06:50 AM
DropDownList Question khng Classic ASP Components 3 April 1st, 2005 12:56 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.