free ASP scripts
Outsource web development, offshore web development, offshore web application company from India
Launch Services Intro - Flash! Sample works! Search this site! Client Area :: Tracking, Documents etc.,
 
 
ASP Scripts - JavaScripts - Code Snippets

 
Related Resources
 
     

1. Search Engine Promotion tutorial for beginners - Learn to prepare your site for search engine optimization
2. Reaching the global market Some Practices to make your site go globally.
3. Web Application Development - Standards to make your products successful
4. Know the Web servers - Article compares almost all the commercial web servers.
5. Extreme Programming - Learn about the new programming standard, apply it in your web development activities.
6. CGI Installation Tutorial - Learn to install CGI scripts in NT,Linux or Unix
7. Creating VB COM for ASP - Create and use VB Dlls with ASP, a short tutorial
8. Install ASP Scripts - Learn to install and configure ASP Scripts and VB dlls in our web server.
9.Getting business with your web site - Some practices to keep your web site effective

 

 
What's New?
 
     

Oncoming wave with web services - Everything you want to know about Web services, standards and tools to develop them. - A New article

Prices down!- Prices has been slashed down up to 20%. See the new development rates.

News section: A new news section has been added. We will be updating regularly with latest trends and links. Keep an eye on the section.

Site Maintenance - We will take care your web site. Keep them updated and be worry free. New service from Macronimous.

 

 
Search the site
 
     
 
 
 


Back to Code snippet Home

1.Database value to List Box Open a database, Connect it, retrieve the values with sql and populate the Listbox with them.

<%
set objConn=server.createobject("adodb.connection")
objConn.open "DSN=dbDSN;uid=username;pwd=password"
set rsValues=objConn.execute("select field from table where )
%>
<Form>
<Select>
<%
do while not rsValues.eof %>
<option> <%=rsValues(0)%> </option>
<%
rsValues.movenext
loop
rsValues.close
set rsValues = nothing
objConn.close
set objConn=nothing
%>
</Select>
</form>

Explanation:

The code connectes the database, takes the values from the table and stores it in a recordset (rsValues). The values are added in to the option form filed one by one using the do...loop and the list has been populated. To use this code Modify the database connection details, and sql.

 
 

Home  I  About Us  I  Services  I  Price Quote  I  Resources  I  Privacy Policy  Contact Us

 
Copyright © 2001-2008 Macronimous.com. All rights Reserved.