Home | Advertising Info95 USERS CURRENTLY ONLINE   
   Site Search Contact Us Friday, March 14, 2025  
 
 


 
ASPProtect
User Management Application with web based screens that allow you to manage users.
www.ASPProtect.com
 
ASPBanner
Banner Rotation system. Advertisers can monitor online statistical reports via their web browsers.
www.ASPBanner.com
 
ASP Photo Gallery
Upload an unlimited amount of albums. Set up categories.Image resizing thumbnail creation.
www.ASPPhotoGallery.com
 
ASPClassifieds
Classifieds system. Set up categories. Users can register themselves. Supports picture uploads.
www.ASPClassifieds.com



DISCUSSION ARCHIVES
 



We didn't realize
the site was so popular.

Other Stuff
 

 
 
Active Server Pages asp source code database MS SQL MS Access .mdb adovbs.inc cookies calendar codes sql commands scripts asp programming tutorials iis web server components CJWSoft ASPProtect ASPBanner ASPClassifieds



(Advanced)  (Components)  (Database)  (General)  (Vbscript)




ASPProtect

 
Subject: drop down list box
From: suresh
Date: 2/24/2001 6:28:04 AM
IP: 203.199.228.246



 


Iam new to asp development. I have a problem in drop down list box. Iam using a vb component and

ms-access2000 to fetch the empnos into drop down list box. All the records ie (empno) gets

populated in drop down list box.

Iam successful in displaying a single records like firstname,lastname,type into the respective

input box ie(text boxes). If i have many empno into the drop down list, iam not able to display

its corressponding item selected. Do i have to write any function.

I have pasted my coding below for yr reference. If my coding is wrong pls let me know.

Kindly provide me an sample code to retrived records based on item selected from drop down list

box. Pls Help me...


I don't know where i have gone wrong in my coding.

I want to send the fetched records into another function called MyFunction() which takes some

parameters like date,no... etc.

Thanks in advance
Suresh





<Html>
<Body>
<Select Name="No">
<%
Dim objDC, objRS, objRsLoc
Dim Nos, Names
Set objDC=Server.CreateObject("ABC.MyClass") -'Calling my component

Set objRS = Server.CreateObject("ADODB.Recordset")

Set objRs=objDC.MyList 'Calling my function

Nos = Request("Empno")
If Not objRS.EOF Then
objRS.MoveFirst%>

<% Do while not objRs.EOF%>
<Option Value="<%=objRs("Empno") %>"><%=objRs("Empno") %> </Options>
<TABLE BORDER=1>
<TR>
<TD><B>Emp Number</B></TD>
<TD><B>First Name</B></TD>
<TD><B>Last


 

   Active Server Pages Rule The World
Contact Us  
All artwork, design & content contained in this site are Copyright © 1998 - 2025 PowerASP.com and Christopher J. Williams
Banner ads ,other site logos, etc are copyright of their respective companies.
STATS Unless otherwise noted - All Rights Reserved.

Active Server Pages what is asp programming how to sample asp example code scripts software asp forum mail sessions applications global.asa CJWSoft ASPProtect ASPBanner ASPClassifieds www.aspclassifieds.com, www.powerasp.com,www.cjwsoft.com,www.aspphotogallery.com,www.codewanker.com,www.aspprotect.com,www.aspbanner.com