Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases 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 28th, 2004, 01:48 PM
Authorized User
 
Join Date: Sep 2004
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default Updating Records in db using select boxes

I have an intranet site where I provide a screen for
engineers to update information. The updatable fields are text boxes like this:

<Input Type="text" name="eTransit1" value="<%=Server.HTMLEncode(rsUpdate.Fields("EastC oastPort1").Value)%>

A need has arisen to provide select boxes in place of these text boxes. I have tried for example:

<select name="EastCoastPort1">
<option value="">All</option>
<option value="<%=Server.HTMLEncode(rsUpdate.Fields("EastC oastPort1").Value)%>" Selected>New York</option>
<option value="<%=Server.HTMLEncode(rsUpdate.Fields("EastC oastPort1").Value)%>" Selected>New Jersey</option>
</select>

but obviously doesn;t work. I want to provide a listing here which will point to the saved value but can also be modified and updated to something else.

Thanks.

 
Old September 28th, 2004, 02:23 PM
Authorized User
 
Join Date: Sep 2004
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Answered my own question. It wasn't working because of another problem which I overlooked. Thanks.






Similar Threads
Thread Thread Starter Forum Replies Last Post
problem in updating records & finding records naveed77 VB Databases Basics 1 January 16th, 2007 12:12 PM
problem in updating records & finding records naveed77 VB How-To 1 January 16th, 2007 12:10 PM
updating db records using asp Version: 2000 devasi Access ASP 0 February 7th, 2005 05:25 PM
Multiple records to be put in text boxes Moumou Classic ASP Databases 3 September 3rd, 2004 06:33 PM





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