Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to use a button to submit to database (not from form)

Status
Not open for further replies.

bobmoo79

IS-IT--Management
Oct 17, 2007
1
GB
Hello,
I am (very) new to web development and am having trouble with this problem.

I have created an asp page that displays all the records from a catalogue stored in an access database. I want to create a button (well a series of buttons) that when clicked add a specific value into the correct cell (i.e. for the same product), which can then be used for other purposes. I know how to do this using radio buttons or checkboxes, but I actually want to use a button.

Can anyone help?

Thanks,

CM
 
If you know how to do it with radio buttons or check boxes, the same principle applies to buttons. Use the OnClick event of the button to do what you need.

Code:
<button type=button OnClick="dowhatever();">

----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top