Click here to Skip to main content
15,899,937 members
Please Sign up or sign in to vote.
3.67/5 (2 votes)
See more:
Hi!
I have a table called product in my db and with this I want to set some control like button,textbox to specific productId like how e-commerce work.
ex: as you know on e-commerce website some product can be bought by clicking on a button buy and other not,like on ebay you can have a buy button or place bid button and a textbox to enter the amount.how to do this kind of control?
Posted
Comments
Kschuler 19-Apr-13 17:06pm    
Why does it have to be one control? Can't you just have both a button and a textbox on the form?
El Dev 20-Apr-13 9:36am    
but what if I want to control it in admin like whenever I upload an item in the database with the admin right,I can also check if the button buy can be visible or not to the user depending of the item.

1 solution

You should use an AJAX form an inside this form to have a text box for the amount and your Buy button.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900