473,554 Members | 3,768 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

asp and database access(sqlserve r) dropdown box

1 New Member
Hi Everyone,
I just started coding in asp and I have a dropdown box. If the user selects a quantity from this dropdown box, this needs to be saved in the database. How can I do that?
Mar 2 '07 #1
2 1248
3,406 Recognized Expert Specialist
Hi Everyone,
I just started coding in asp and I have a dropdown box. If the user selects a quantity from this dropdown box, this needs to be saved in the database. How can I do that?
So what have you tried so far? What kind of errors do you get?

Mar 5 '07 #2
Ashfaque Sayani
9 New Member
Hi Everyone,
I just started coding in asp and I have a dropdown box. If the user selects a quantity from this dropdown box, this needs to be saved in the database. How can I do that?
on change of the dropdownbox/or on submit of the form you can call a function which will fire an insert query and the value will be saved in the database.

You need to store the value in the variable

for eg - country = request.form("c ountry")

then sql = "insert into xyz (col name ) values ('"&counrty&" ')
Mar 7 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

by: aaj | last post by:
Hi all We have a small database that we host on our own local server. In order to get the information into the database I have a VB program that collates the information from a variety of sources and then over our local internal network writes it to the database tables. This information is then made available over the internet using the...
by: Saravanakumar | last post by:
Recently I have changed the VB Application for Authentication method to connect to the SQL Server 7.0 database using the Windows NT Authentication. Later I had created permissions for Select, Insert, Update, Delete, Exec everything based on the Windows NT Authentication on an Active Directory Group based. Now I am trying to use the...
by: dbuchanan | last post by:
I have a Windows Forms application that accesses SQL Server 2k from a small local network. The application has been used for weeks on other systmes but a new install on a new machine retruns errors. The machine is a new laptop Windows XP Pro SP2 The machine is up to date with respect to the dot net framework. Details: Dot Net Framework...
by: anonymoushamster | last post by:
Dropdown A is column from database Dropdown B is column from database Data in A and B must be from same row. If user click an item from A, then B is updated to display its data from relevant row. Any ideas how I approach this?
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.