Wrox Programmer Forums
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms 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 January 7th, 2005, 07:46 AM
Registered User
 
Join Date: Oct 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default dynamic drop downs

I want to dunamic drop downs list please help

 
Old January 7th, 2005, 08:56 AM
Friend of Wrox
 
Join Date: Sep 2004
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to sureshbabu Send a message via Yahoo to sureshbabu
Default

Hi,
   Get the value and the text from the Database by using query...

let Query be strSql="select col_value,col_text from table_name"
let Recordset be ..."objRs"..


<select name=select1>
<%While not objRs.eof%>
<option value=<%=objRs("col_value")%>>objrs("col_text")</option>
<%
objrs.movenext
wend
%>



The above code will give you the dynamic dropdown..
thanks
Suresh






Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS Drop downs - 2 col socoolbrewster CSS Cascading Style Sheets 5 December 22nd, 2007 05:32 AM
dealing with drop downs lisabb ASP.NET 2.0 Basics 5 May 28th, 2007 12:29 AM
dependent drop downs p2pMember ASP.NET 1.0 and 1.1 Professional 0 July 19th, 2006 05:25 AM
Day of week Drop Downs jeffbarclay Javascript How-To 5 November 17th, 2003 08:28 PM





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